close
Skip to content

Add option to allow custom annotations#2621

Open
Daniel15 wants to merge 1 commit into
ajv-validator:masterfrom
Daniel15:x-custom
Open

Add option to allow custom annotations#2621
Daniel15 wants to merge 1 commit into
ajv-validator:masterfrom
Daniel15:x-custom

Conversation

@Daniel15
Copy link
Copy Markdown

What issue does this pull request resolve?
N/A

What changes did you make?
Adds an allowCustomAnnotations() method to allow unknown schema keywords prefixed with x- when strictSchema is enabled. These should be treated as custom annotations.

This option is not enabled by default, so existing users are unaffected.

Is there anything that requires more attention while reviewing?
No

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