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
The generated OpenAPI specification includes duplicate entries in the oneOf construct for the thing property:
components:
schemas:
Bar:
type: objectdescription: The type Bar.properties:
bar:
type: stringdescription: The Bar.Foo:
type: objectdescription: The type Foo.properties:
foo:
type: stringdescription: The Foo.MyModel:
type: objectdescription: The type My model.properties:
thing:
type: objectdescription: HellooneOf:
- $ref: '#/components/schemas/Foo'
- $ref: '#/components/schemas/Bar'
- $ref: '#/components/schemas/Foo'**# Duplicate**
- $ref: '#/components/schemas/Bar'**# Duplicate**
Expected Result:
The oneOf construct should only include unique schema references without duplicates:
components:
schemas:
Bar:
type: objectdescription: The type Bar.properties:
bar:
type: stringdescription: The Bar.Foo:
type: objectdescription: The type Foo.properties:
foo:
type: stringdescription: The Foo.MyModel:
type: objectdescription: The type My model.properties:
thing:
type: objectdescription: HellooneOf:
- $ref: '#/components/schemas/Foo'
- $ref: '#/components/schemas/Bar'
The text was updated successfully, but these errors were encountered:
Environment:
Given the Following Class Definition:
Current Result:
The generated OpenAPI specification includes duplicate entries in the
oneOf
construct for the thing property:Expected Result:
The
oneOf
construct should only include unique schema references without duplicates:The text was updated successfully, but these errors were encountered: