Skip to content

fix: normalize equivalent object unions#55

Draft
sidsri14 wants to merge 1 commit into
getsentry:mainfrom
sidsri14:sidsri14/normalize-object-anyof
Draft

fix: normalize equivalent object unions#55
sidsri14 wants to merge 1 commit into
getsentry:mainfrom
sidsri14:sidsri14/normalize-object-anyof

Conversation

@sidsri14

Copy link
Copy Markdown

Summary

  • normalize pure top-level anyOf object branches when they differ only in one property's type
  • compare the normalized object union against an equivalent multi-type property in either direction
  • keep correlated multi-property unions intact to avoid widening their accepted values

Closes #22

Verification

  • cargo fmt --all -- --check
  • cargo test --workspace --all-features
  • cargo clippy --all-features --workspace --tests --examples -- -D clippy::all
  • git diff --check

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.

objects inside anyOf v.s. multiple types inside object

1 participant