Skip to content

Commit f7831b4

Browse files
fixes #2217 - clarify custom keyword naming (#2457)
1 parent a523784 commit f7831b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ Add validation keyword to Ajv instance.
251251

252252
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.
253253

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

257257
Example Keywords:

0 commit comments

Comments
 (0)