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

Flatten oneOf/allOf property schemas #166

Merged
merged 5 commits into from
Mar 5, 2025
Merged

Conversation

andrii-balitskyi
Copy link
Contributor

@andrii-balitskyi andrii-balitskyi commented Mar 4, 2025

  • flattenAllOfSchema and flattenOneOfSchema should gather property enum values from all subschemas
  • Test flattening functions update
  • Flatten oneOf/allOf property schemas

@andrii-balitskyi andrii-balitskyi requested a review from a team as a code owner March 4, 2025 15:45
Copy link

vercel bot commented Mar 4, 2025

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

Name Status Preview Comments Updated (UTC)
blueprint ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 5, 2025 1:31pm

} else {
t.fail('Expected "type" property to exist')
}
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was a bit hard for me to follow. Should be simpler if you do all the nil checks up front.

if (foo == null) {
  t.fail('foo was null')
  return
}

Copy link
Contributor Author

@andrii-balitskyi andrii-balitskyi Mar 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrii-balitskyi andrii-balitskyi merged commit 93ad44f into main Mar 5, 2025
21 checks passed
@andrii-balitskyi andrii-balitskyi deleted the flatten-prop-schemas branch March 5, 2025 13:32
@andrii-balitskyi andrii-balitskyi self-assigned this Mar 7, 2025
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.

3 participants