fastify / ajv-compiler

Build and manage the AJV instances for the fastify framework
Other
18 stars 9 forks source link

docs: remove nullable default #34

Closed Eomm closed 3 years ago

Eomm commented 3 years ago

Removing the nullalble option since it has been removed from ajv >=7

https://github.com/ajv-validator/ajv/releases/tag/v7.0.0

Removed options:

  • nullable: nullable keyword is supported by default.
mcollina commented 3 years ago

How could somebody achieve the same result of nullable: true?

Eomm commented 3 years ago

How could somebody achieve the same result of nullable: true?

The user should add the nullable field in the json schema definition and ajv will read it. I have added a test as a check