Skip to content
New issue

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

Fix definitions using oneOf or anyOf combined with allOf keyword #53

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

HiDeoo
Copy link
Owner

@HiDeoo HiDeoo commented Nov 25, 2024

Closes #52

allOf:
  - type: object
    properties:
      id:
        type: integer
        format: int64
  - type: object
    properties:
      name:
        type: string
  - anyOf:
      - type: object
        title: 'basic details'
        properties:
          color:
            type: string
      - type: object
        title: 'advanced details'
        properties:
          color:
            type: string
          age:
            type: integer
image

…could be ignored when combined using the `allOf` keyword
Copy link

vercel bot commented Nov 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
starlight-openapi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 25, 2024 3:17pm

@HiDeoo HiDeoo merged commit afc9856 into main Nov 25, 2024
3 checks passed
@HiDeoo HiDeoo deleted the hd-fix-anyof-oneof-nested-allof branch November 25, 2024 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support "anyOf" type
1 participant