You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an example I defined the schema for a data structure with a single property which has an enumeration type. I use the allOf keyword (as a wrapper construct) in order to be allowed to also specify a description for the property:
components:
schemas:
TestDTO:
required:
- choicetype: objectproperties:
choice:
description: Choice descriptionallOf:
- $ref: '#/components/schemas/TestEnum'TestEnum:
type: stringenum:
- One
- Two
- Three
I then use the Swagger Parser v3 to parse (and print afterwards) the above definition (embedded in a complete OpenAPI document).
In an example I defined the schema for a data structure with a single property which has an enumeration type. I use the allOf keyword (as a wrapper construct) in order to be allowed to also specify a description for the property:
I then use the Swagger Parser v3 to parse (and print afterwards) the above definition (embedded in a complete OpenAPI document).
The output is then as follows:
It seems the the parser cannot process the allOf construct correctly.
The text was updated successfully, but these errors were encountered: