Skip to content

Treat null in an enum as no allowed value - #1742

Merged
jschoedl merged 1 commit into
mainfrom
fix-enum-null-allowed-values
Oct 13, 2026
Merged

jschoedl merged 1 commit into
mainfrom
fix-enum-null-allowed-values

Conversation

@jschoedl

Copy link
Copy Markdown
Collaborator

An enum (or validValues) now constrains only present values: a null entry no longer disables the enum check, export jsonschema allows null for optional enum properties, and lint rejects a null in the enum of a required property.

@jschoedl
jschoedl merged commit b3994d3 into main Oct 13, 2026
17 checks passed
@jschoedl
jschoedl deleted the fix-enum-null-allowed-values branch October 13, 2026 14:11
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.

1 participant