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
anyOf could be encoded via tupling options
anyOf
paths: /pets: patch: requestBody: content: application/json: schema: anyOf: - $ref: '#/components/schemas/PetByAge' - $ref: '#/components/schemas/PetByType' responses: '200': description: Updated components: schemas: PetByAge: type: object properties: age: type: integer nickname: type: string required: - age PetByType: type: object properties: pet_type: type: string hunts: type: boolean required: - pet_type
could be encoded like
type PetByAge = { age: int nickname: string } type PetByType = { pet_type: string hunts: bool } type ``PetByAge or PetByType`` = { PetByAge: PetByAge option PetByType: PetByType option }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
anyOf
could be encoded via tupling optionscould be encoded like
The text was updated successfully, but these errors were encountered: