Skip to content

feat: flatten inside allOf when there are multiple oneOfs inside#988

Open
PolyProgrammist wants to merge 1 commit intooxidecomputer:mainfrom
PolyProgrammist:research-flatten
Open

feat: flatten inside allOf when there are multiple oneOfs inside#988
PolyProgrammist wants to merge 1 commit intooxidecomputer:mainfrom
PolyProgrammist:research-flatten

Conversation

@PolyProgrammist
Copy link

@PolyProgrammist PolyProgrammist commented Feb 25, 2026

for #897

.iter()
.filter(|s| schema_has_one_of_or_any_of(s, &self.definitions))
.count();
if subschema_count >= 2 {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this logic seem flawed. In particular it only seems sound if the fields of both subschemas are non-overlapping.

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.

2 participants