Skip to content

Commit

Permalink
docs(repo): update schema table formatting and available dialects to …
Browse files Browse the repository at this point in the history
…match table content (#2024)
  • Loading branch information
jeremyfiel committed Jan 21, 2022
1 parent cabd2a9 commit 6df4bd5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/reference/functions.md
Expand Up @@ -155,15 +155,15 @@ camel-case-name:

## schema

Use JSON Schema (draft 4, 6 or 7) to treat the contents of the \$given JSON Path as a JSON instance.
Use JSON Schema (draft 4, 6, 7, 2019-09, or 2020-12) to treat the contents of the \$given JSON Path as a JSON instance.

<!-- title: functionOptions -->

| name | description | type | required? |
| --------- | ---------------------------------------------------------------------- | ------------ | --------- | --------------------------------------------------- | --- |
| schema | a valid JSON Schema document | `JSONSchema` | yes |
| dialect | the JSON Schema draft used by function. "auto" by default | `'auto' | 'draft4' | 'draft6', 'draft7', 'draft2019-09', 'draft2020-12'` | no |
| allErrors | returns all errors when `true`; otherwise only returns the first error | `boolean` | no |
| name | description | type | required? |
| --------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | --------- |
| schema | a valid JSON Schema document | `JSONSchema` | yes |
| dialect | the JSON Schema draft used by function. "auto" by default | `'auto', 'draft4', 'draft6', 'draft7', 'draft2019-09', 'draft2020-12'` | no |
| allErrors | returns all errors when `true`; otherwise only returns the first error | `boolean` | no |

<!-- title: example -->

Expand Down

0 comments on commit 6df4bd5

Please sign in to comment.