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
type Response struct { field1 *string json:"field1,omitempty" field2 *string json:"field2,omitempty" }
json:"field1,omitempty"
json:"field2,omitempty"
I want to indicate that the response will either contain field1 or field2
Sample spec:
Response: oneOf: - $ref: '#/components/schemas/Response1' - $ref: '#/components/schemas/Response2'
The text was updated successfully, but these errors were encountered:
No branches or pull requests
type Response struct {
field1 *string
json:"field1,omitempty"
field2 *string
json:"field2,omitempty"
}
I want to indicate that the response will either contain field1 or field2
Sample spec:
The text was updated successfully, but these errors were encountered: