Skip to content

Commit

Permalink
Merge branch 'issue1364' of https://github.com/hello-weiran/ajv into …
Browse files Browse the repository at this point in the history
…hello-weiran-issue1364
  • Loading branch information
epoberezkin committed Jan 2, 2021
2 parents 9200e92 + 286ca0f commit d0b1368
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ This problem is related to the problem explained above - properties treated as a

See the example in [Filtering Data](https://github.com/ajv-validator/ajv#filtering-data) section of readme.

#### Using ajv v7 in ES5 environments

As of ajv v7, to support pre-ES6 env you will need to:
* recompile Typescript to es5 target - it's set to 2018 in the bundled compiled code.
* generate es5 code `(new Ajv({code:{es5:true}}))`, refs [Advanced options](https://github.com/ajv-validator/ajv/blob/master/docs/api.md#advanced-options).

## Generating schemas with resolved references (\$ref)

See [#22](https://github.com/ajv-validator/ajv/issues/22), [#125](https://github.com/ajv-validator/ajv/issues/125), [#146](https://github.com/ajv-validator/ajv/issues/146), [#228](https://github.com/ajv-validator/ajv/issues/228), [#336](https://github.com/ajv-validator/ajv/issues/336), [#454](https://github.com/ajv-validator/ajv/issues/454).
Expand Down

0 comments on commit d0b1368

Please sign in to comment.