Skip to content

Flatten oneOf/allOf property schemas#166

Merged
andrii-balitskyi merged 5 commits intomainfrom
flatten-prop-schemas
Mar 5, 2025
Merged

Flatten oneOf/allOf property schemas#166
andrii-balitskyi merged 5 commits intomainfrom
flatten-prop-schemas

Conversation

@andrii-balitskyi
Copy link
Copy Markdown
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
@vercel
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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