Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
akmjenkins committed Dec 30, 2021
1 parent 802a755 commit ddddcc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions README.md
Expand Up @@ -7,8 +7,7 @@

## What's this?

Good date validation has been conspicuously missing from the JSON schema spec. This adds some (configurable) keywords to [ajv](https://ajv.js.org/) to make date validation a snap.

Good date validation has been conspicuously missing from the JSON schema spec. `ajv-dates` adds a few (configurable) keywords to [ajv](https://ajv.js.org/) to make date validation a snap.

## Getting Started

Expand Down Expand Up @@ -161,7 +160,7 @@ instance.validate({

## Parser

Smart date parsers that can parse natural language relative strings into timestamps allow you to encode relative date logic into your schemas.
Even with [ajv-formats](), there's still something missing with date validation - the difficulty to encode "now", for validation purposes, in a schema. Fortunately, by using a smart date parser that can parse natural language relative strings into timestamps, you can now encode relative date logic into your schemas.

Two great options (tested with `ajv-dates`) are:

Expand Down Expand Up @@ -236,4 +235,4 @@ console.log(instance.errors);

## Contributing

PRs welcome!
Grab an issue, PRs welcome!

0 comments on commit ddddcc5

Please sign in to comment.