Feat/support examples property#999
Conversation
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
|
Hi. Thanks for contributing. |
Signed-off-by: F.N. Claessen <felix@seita.nl>
|
Thanks, indeed my use case is field examples rather than schema examples. Something like this? I noticed two things:
|
|
Thanks!
apispec doesn't check that the user uses properties that are valid wrt OpenAPI version. |
I realize you did some work yourself on supporting the
examplesproperty, but I'm not sure if that is still ongoing. Theexamplesbranch hasn't been updated in 3 years.Related discussion on supporting OpenAPI 3.1: #579
The OpenAPI upgrading docs suggest moving from
exampletoexamples, but as of now, both seem to be supported, so I haven't removed the singularexamplefrom the list of valid properties.