Skip to content

Commit dcfd992

Browse files
authored
Bring docs in line with ajv-serializer defaults (fastify#4544)
Signed-off-by: Matteo Collina <[email protected]>
1 parent 7829f48 commit dcfd992

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/Reference/Validation-and-Serialization.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,11 @@ configuration](https://github.com/fastify/ajv-compiler#ajv-configuration) is:
394394
395395
```js
396396
{
397-
coerceTypes: true, // change data type of data to match type keyword
397+
coerceTypes: 'array', // change data type of data to match type keyword
398398
useDefaults: true, // replace missing properties and items with the values from corresponding default keyword
399399
removeAdditional: true, // remove additional properties
400+
uriResolver: require('fast-uri'),
401+
addUsedSchema: false,
400402
// Explicitly set allErrors to `false`.
401403
// When set to `true`, a DoS attack is possible.
402404
allErrors: false

0 commit comments

Comments
 (0)