Closed vlasatno closed 2 months ago
The current spec is weird and some generators may have problems with it, but the proposed fix is also wrong.
We should probably change it as
Duration:
type: object
properties:
value:
type: integer
example: 12
format: int32
minimum: 1
unit:
$ref: "#/components/schemas/TimeUnitEnum"
and remove the example or move it to the TimeUnitEnum schema
Fixed as part of #283
Describe the bug The Duration schema has an example that is dashed such that it is an element in an allOf list, whereas it should be a member of the $ref above it.
Should become:
To Reproduce Not applicable.
Expected behavior Not applicable.
Screenshots Not applicable.
Environment: Not applicable.
Additional context Found when generating
python-fastapi
code with openapi-generator