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
Is there a specific reason for that? Because when I marshal the definitions to json, this ID is also added, but according to openapi the id field is not part of the spec and the validation in some validators fails.
Can we change that to json:"-,omitempty" or is there another way of marshalling the spec?
Activity
casualjim commentedon Mar 18, 2017
I found jsonschema compatibility more important. Do you have a concrete example of a validator that fails?
rmohr commentedon Mar 22, 2017
Sorry for the late response.
Examples are:
You can pass in the petshop example and add the id field there.
They do a schema validation too and since it is not part of the schema, they complain about it.
doc(faq): transfered questions to README
doc(faq): transfered questions to README