Skip to content

fix: distinguish between default and example set to null and not set at all #2050#2286

Open
ewaostrowska wants to merge 2 commits intomasterfrom
null-default-and-example
Open

fix: distinguish between default and example set to null and not set at all #2050#2286
ewaostrowska wants to merge 2 commits intomasterfrom
null-default-and-example

Conversation

@ewaostrowska
Copy link
Contributor

@ewaostrowska ewaostrowska commented Mar 5, 2026

This pull request improves how default values are handled when converting Swagger V2 specifications to OpenAPI V3, ensuring that defaults are only set in schemas when explicitly provided in the source and never set to null unintentionally. It also introduces comprehensive tests to verify correct null/default handling for parameters, properties, and examples.

Enhances the logic introduced in #2171.

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