Ambiguities Regarding Parameter Example Validation #3041
Labels
clarification
requests to clarify, but not change, part of the spec
example obj/keywords
Issues with the Example Object or exampel(s) keywords
Milestone
As part of a spec validation related research, I have run into some confusions in the OpenAPI v3.0.3 specification document Parameter Object section, in particular the one shown below:
Let's assume that a parameter
example
is present next to aschema
property.This indicates that the example is RECOMMENDED to be valid against the schema and encoding. By encoding I'm assuming it implies
style
,explode
andallowReserved
.Here, we are told that it is MANDATORY for the example to be valid against the serialization strategies specified for the parameter. I'm assuming again that the serialization strategies implies a combination of schema + style + explode at the very least. At least, that is what I understood from the rest of the text in this section and examples.
The two statements are clearly clashing with each other as one is making something mandatory while the other is simply recommending things. I'm using this section for interpretation of the words SHOULD and MUST.
Is my understanding of things correct or have I missed something? Any clarity on this would be much appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: