Question regarding to SchemaProps.ID
rmohr opened this issue · 2 comments
rmohr commented
If I look at the SchemaProps
definition, I see that the ID is marshalled into json:
type SchemaProps struct {
ID string `json:"id,omitempty"`
}
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?
casualjim commented
I found jsonschema compatibility more important. Do you have a concrete example of a validator that fails?