Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

fix polymoprhic with nullable patching#2636

Merged
niclim merged 1 commit intomainfrom
polymorphic-nullable
Jan 2, 2024
Merged

fix polymoprhic with nullable patching#2636
niclim merged 1 commit intomainfrom
polymorphic-nullable

Conversation

@niclim
Copy link
Copy Markdown
Contributor

@niclim niclim commented Jan 2, 2024

🍗 Description

What does this PR do? Anything folks should know?

fixes the case where nullable is next to a polymorphic keyword (allOf, oneOf, anyOf)

📚 References

Links to relevant docs (Notion, Twist, GH issues, etc.), if applicable.

👹 QA

How can other humans verify that this PR is correct?

@niclim niclim requested a review from acunniffe as a code owner January 2, 2024 16:49

test('with nullable', async () => {
// nullable keyword only valid in 3.0.1
if (version !== '3.0.1') return;
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.

I believe it's valid in 3.0.0 and 3.0.1

Copy link
Copy Markdown
Member

@acunniffe acunniffe left a comment

Choose a reason for hiding this comment

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

Looks good -- let's get this out and back to them

@niclim niclim added this pull request to the merge queue Jan 2, 2024
Merged via the queue into main with commit 2849178 Jan 2, 2024
@niclim niclim deleted the polymorphic-nullable branch January 2, 2024 18:50
niclim added a commit that referenced this pull request Jan 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants