Open Tithugues opened 7 months ago
Regarding the examples
, it seems it can't be used everywhere! Sorry for this mistake. :pray:
On the other hand, regarding the type
type, I'm not sure I made a mistake.
examples
should be supported on a number of types.
I have been wanting to add examples
to properties of a type: object
entity for example for properties that are of type string
, number
, or similar.
Describe the bug From OpenAPI 3.1, the
example
property is deprecated andexamples
is preferred andtype
property can be a string, but also an array of strings.The
examples
property and thetype
as an array seem not to be supported.To Reproduce
Expected behavior I would expect
examples
andtype
as an array to be allowed in the editor part.Screenshots Editor complains about those 2 properties:
On the other hand, the preview seems to "understand" the syntax:
Stack trace No exception.
Desktop (please complete the following information):
Additional context Swagger editor (https://editor-next.swagger.io) does not complain about this YAML file.
Am I wrong anywhere? Is the OpenAPI 3.1 not supported? If so, is it expected to be supported?
Thank you! :pray: