Skip to content

Fix/remove additional additional properties not true - #2663

Open
preeder wants to merge 3 commits into
ajv-validator:masterfrom
preeder:fix/removeAdditional_additionalProperties_notTrue
Open

Fix/remove additional additional properties not true#2663
preeder wants to merge 3 commits into
ajv-validator:masterfrom
preeder:fix/removeAdditional_additionalProperties_notTrue

Conversation

@preeder

@preeder preeder commented Aug 11, 2026

Copy link
Copy Markdown

What issue does this pull request resolve?
#2662 #2662

What changes did you make?
Added util method alwaysInvalidSchema to util, similar in nature to alwaysValidSchema. Used that in place of const false when deciding whether or not to remove a property due to removeAdditional.

Is there anything that requires more attention while reviewing?

Added an alwaysInvalidSchema method to test for falsy schemas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant