Skip to content

Commit

Permalink
docs: fix link for useDefaults (#1955)
Browse files Browse the repository at this point in the history
* Clarify validation errors and fix link for useDefaults.

* Make it clear the value, not the property, may be missing.

* remove correction

Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
  • Loading branch information
bradjones1 and epoberezkin committed Nov 13, 2022
1 parent d6f3ac9 commit 5d5c803
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/modifying-data.md
Expand Up @@ -154,7 +154,7 @@ See [discriminator](../json-schema.md#discriminator) keyword.

## Assigning defaults

With [option `useDefaults`](./api.md#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items.
With [option `useDefaults`](./options.md#options) Ajv will assign values from `default` keyword in the schemas of `properties` and `items` (when it is the array of schemas) to the missing properties and items.

With the option value `"empty"` properties and items equal to `null` or `""` (empty string) will be considered missing and assigned defaults.

Expand Down

0 comments on commit 5d5c803

Please sign in to comment.