We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the case where you have defined two structs as follows:
type NestedStruct struct { Field1 string `json:"field1,omitempty"` } type TopLevelStruct struct { *NestedStruct `json:",omitempty"` Field2 string `json:"field2,omitempty"` }
The current behaviour is to create a separate nested object schema for NestedStruct so you end up with:
NestedStruct
schema: properties: NestedStruct: type: object: properties: Field1: type: string Field2: type: string
but what you actually want is:
schema: properties: Field1: type: string Field2: type: string
@fenollp thoughts on this? Am I missing something?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the case where you have defined two structs as follows:
The current behaviour is to create a separate nested object schema for
NestedStruct
so you end up with:but what you actually want is:
@fenollp thoughts on this? Am I missing something?
The text was updated successfully, but these errors were encountered: