Skip to content

Commit

Permalink
fixes #2217 - clarify custom keyword naming (#2457)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoniangreen authored Jul 10, 2024
1 parent a523784 commit f7831b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ Add validation keyword to Ajv instance.

Keyword should be different from all standard JSON Schema keywords and different from previously defined keywords. There is no way to redefine keywords or to remove keyword definition from the instance.

Keyword must start with a letter, `_` or `$`, and may continue with letters, numbers, `_`, `$`, or `-`.
Keyword must start with an ASCII letter, `_` or `$`, and may continue with ASCII letters, numbers, `_`, `$`, `-`, or `:`.
It is recommended to use an application-specific prefix for keywords to avoid current and future name collisions.

Example Keywords:
Expand Down

0 comments on commit f7831b4

Please sign in to comment.