Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ajv-validator/ajv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 03198c2b6d52ec5eb7ffbf7623f05db5372689a1
Choose a base ref
...
head repository: ajv-validator/ajv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 521c3a53f15f5502fb4a734194932535d311267c
Choose a head ref

Commits on Sep 18, 2019

  1. Copy the full SHA
    7f6ae8c View commit details
  2. Copy the full SHA
    68b0080 View commit details

Commits on Sep 24, 2019

  1. Copy the full SHA
    7b574e7 View commit details

Commits on Jan 7, 2020

  1. Improved hostname validation. Allow trailing dot. Check for octet cou…

    …nt rather than string length.
    sambauers committed Jan 7, 2020
    Copy the full SHA
    f7beda0 View commit details

Commits on Jan 9, 2020

  1. Copy the full SHA
    c3bbc3e View commit details
  2. Copy the full SHA
    508f640 View commit details

Commits on Jan 22, 2020

  1. Copy the full SHA
    01cec67 View commit details
  2. Copy the full SHA
    d9661b4 View commit details

Commits on Feb 4, 2020

  1. Add custom logger example

    The current value description for the custom logger option is not easily understandable. Adding an example to this would be greatly beneficial.
    Tyharo1 authored Feb 4, 2020
    Copy the full SHA
    d348807 View commit details

Commits on Feb 11, 2020

  1. Copy the full SHA
    23ebb55 View commit details
  2. Merge pull request #1162 from boenrobot/patch-1

    fix(types) added undefined to getSchema()
    epoberezkin authored Feb 11, 2020
    Copy the full SHA
    a251ff6 View commit details
  3. Copy the full SHA
    10f6cba View commit details
  4. Adjusting Example

    - Converting example to ES5
    - Updating example to conform to other examples
    - Updating example to have custom warning message
    Tyharo1 authored Feb 11, 2020
    Copy the full SHA
    5a92f70 View commit details
  5. Copy the full SHA
    cb149a8 View commit details

Commits on Feb 12, 2020

  1. Copy the full SHA
    d601e48 View commit details
  2. Move Logging Sample To Error Section

    Updated and moved logging sample to new Error Logging subsection
    Tyharo1 authored Feb 12, 2020
    Copy the full SHA
    d127103 View commit details
  3. Merge pull request #1163 from MattiAstedrone/master

    Fixed the TypeScript type definition for Options' "format"
    epoberezkin authored Feb 12, 2020
    Copy the full SHA
    2320dc5 View commit details

Commits on Feb 13, 2020

  1. Copy the full SHA
    8d3320d View commit details
  2. Copy the full SHA
    46171d2 View commit details

Commits on Feb 14, 2020

  1. Copy the full SHA
    6057125 View commit details

Commits on Feb 16, 2020

  1. Copy the full SHA
    4d9dd8c View commit details
  2. Copy the full SHA
    384eec4 View commit details
  3. Copy the full SHA
    120748c View commit details

Commits on Feb 17, 2020

  1. Merge pull request #1143 from sambauers/master

    Improved hostname validation.
    epoberezkin authored Feb 17, 2020
    Copy the full SHA
    75aa5fd View commit details
  2. Merge pull request #1091 from thetric/typescript-usage-note

    docs(readme): add usage notes for TypeScript users
    epoberezkin authored Feb 17, 2020
    Copy the full SHA
    c1c0ba7 View commit details
  3. Copy the full SHA
    367527c View commit details

Commits on Feb 19, 2020

  1. Copy the full SHA
    f94db48 View commit details
  2. Copy the full SHA
    38191c2 View commit details

Commits on Feb 22, 2020

  1. Merge branch 'feature/keywords-options' of git://github.com/francisco…

    …morais/ajv into franciscomorais-feature/keywords-options
    epoberezkin committed Feb 22, 2020
    Copy the full SHA
    c90c189 View commit details
  2. Copy the full SHA
    e5bed30 View commit details
  3. Copy the full SHA
    8fd1e44 View commit details
  4. Merge branch 'patch-1' of git://github.com/RadiationSickness/ajv into…

    … RadiationSickness-patch-1
    epoberezkin committed Feb 22, 2020
    Copy the full SHA
    52adde5 View commit details
  5. Copy the full SHA
    0163e5c View commit details
  6. Copy the full SHA
    1021a00 View commit details
  7. 6.12.0

    epoberezkin committed Feb 22, 2020
    Copy the full SHA
    03d0012 View commit details

Commits on Feb 29, 2020

  1. Add to README

    carlo-quinonez committed Feb 29, 2020
    Copy the full SHA
    b15a73c View commit details

Commits on Mar 13, 2020

  1. Merge pull request #1155 from luzlab/master

    Add `ajv-formats` plugin to readme
    epoberezkin authored Mar 13, 2020
    Copy the full SHA
    4462cb1 View commit details

Commits on Mar 22, 2020

  1. Update FUNDING.yml

    epoberezkin authored Mar 22, 2020
    Copy the full SHA
    0775bc1 View commit details

Commits on Apr 4, 2020

  1. docs: sponsor

    epoberezkin authored Apr 4, 2020
    Copy the full SHA
    9f5752c View commit details
  2. Merge pull request #1185 from epoberezkin/sponsor

    docs: sponsor
    epoberezkin authored Apr 4, 2020
    Copy the full SHA
    7172b5a View commit details

Commits on Apr 5, 2020

  1. Copy the full SHA
    081aeb0 View commit details

Commits on Apr 7, 2020

  1. Copy the full SHA
    7c3648d View commit details

Commits on Apr 9, 2020

  1. Copy the full SHA
    4e7786f View commit details

Commits on Apr 13, 2020

  1. Copy the full SHA
    f5c284c View commit details

Commits on Apr 14, 2020

  1. Copy the full SHA
    591b36e View commit details

Commits on Apr 18, 2020

  1. "hostname" format does not have full method

    Since v6.12.0 via #1143
    sambauers authored Apr 18, 2020
    Copy the full SHA
    bfced3b View commit details
  2. Merge pull request #1190 from sambauers/master

    "hostname" format does not have full method
    epoberezkin authored Apr 18, 2020
    Copy the full SHA
    3408cd0 View commit details
  3. Merge pull request #1189 from epoberezkin/greenkeeper/karma-mocha-2.0.0

    Update karma-mocha to the latest version 🚀
    epoberezkin authored Apr 18, 2020
    Copy the full SHA
    f0e54ba View commit details
  4. Merge pull request #1187 from epoberezkin/greenkeeper/karma-5.0.0

    Update karma to the latest version 🚀
    epoberezkin authored Apr 18, 2020
    Copy the full SHA
    db9e73a View commit details
  5. Copy the full SHA
    0b641fe View commit details
Showing with 567 additions and 268 deletions.
  1. +1 −0 .github/FUNDING.yml
  2. +6 −6 .github/ISSUE_TEMPLATE.md
  3. +4 −4 .github/ISSUE_TEMPLATE/bug-or-error-report.md
  4. +2 −2 .github/ISSUE_TEMPLATE/change.md
  5. +2 −2 .github/ISSUE_TEMPLATE/compatibility.md
  6. +2 −2 .github/ISSUE_TEMPLATE/installation.md
  7. +2 −2 .github/ISSUE_TEMPLATE/typescript.md
  8. +1 −1 .github/PULL_REQUEST_TEMPLATE.md
  9. +2 −2 .github/config.yml
  10. +3 −4 .travis.yml
  11. +76 −0 CODE_OF_CONDUCT.md
  12. +1 −1 COERCION.md
  13. +9 −9 CONTRIBUTING.md
  14. +7 −7 CUSTOM.md
  15. +7 −7 FAQ.md
  16. +3 −3 KEYWORDS.md
  17. +169 −71 README.md
  18. +1 −1 bower.json
  19. +9 −4 lib/ajv.d.ts
  20. +9 −0 lib/ajv.js
  21. +1 −1 lib/compile/equal.js
  22. +2 −9 lib/compile/formats.js
  23. +1 −1 lib/compile/index.js
  24. +9 −44 lib/compile/util.js
  25. +1 −1 lib/data.js
  26. +1 −1 lib/definition_schema.js
  27. +9 −0 lib/dot/_limit.jst
  28. +2 −0 lib/dot/_limitItems.jst
  29. +2 −0 lib/dot/_limitLength.jst
  30. +2 −0 lib/dot/_limitProperties.jst
  31. +0 −2 lib/dot/allOf.jst
  32. +0 −2 lib/dot/anyOf.jst
  33. +0 −2 lib/dot/contains.jst
  34. +7 −6 lib/dot/definitions.def
  35. +1 −2 lib/dot/dependencies.jst
  36. +0 −2 lib/dot/if.jst
  37. +0 −2 lib/dot/items.jst
  38. +2 −0 lib/dot/multipleOf.jst
  39. +6 −5 lib/dot/properties.jst
  40. +0 −2 lib/dot/propertyNames.jst
  41. +1 −1 lib/dot/uniqueItems.jst
  42. +2 −8 lib/dot/validate.jst
  43. +1 −1 lib/keyword.js
  44. +1 −1 lib/refs/data.json
  45. +1 −1 lib/refs/json-schema-secure.json
  46. +18 −10 package.json
  47. +1 −1 scripts/publish-built-version
  48. +1 −1 scripts/travis-gh-pages
  49. +51 −0 spec/ajv.spec.js
  50. +0 −28 spec/issues/388_code_clean-up.spec.js
  51. +22 −0 spec/options/options_validation.spec.js
  52. +55 −0 spec/options/strictNumbers.spec.js
  53. +3 −3 spec/security/array.json
  54. +1 −1 spec/security/object.json
  55. +2 −2 spec/security/string.json
  56. +45 −0 spec/tests/rules/format.json
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
github: epoberezkin
tidelift: "npm/ajv"
open_collective: "ajv"
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
Please provide all info and reduce your schema and data to the smallest possible size.
This template is for bug or error reports. For other issues please use:
- security vulnerability: https://tidelift.com/security)
- a new feature/improvement: http://epoberezkin.github.io/ajv/contribute.html#changes
- browser/compatibility issues: http://epoberezkin.github.io/ajv/contribute.html#compatibility
- JSON-Schema standard: http://epoberezkin.github.io/ajv/contribute.html#json-schema
- a new feature/improvement: https://ajv.js.org/contribute.html#changes
- browser/compatibility issues: https://ajv.js.org/contribute.html#compatibility
- JSON-Schema standard: https://ajv.js.org/contribute.html#json-schema
- Ajv usage questions: https://gitter.im/ajv-validator/ajv
-->

@@ -16,7 +16,7 @@ This template is for bug or error reports. For other issues please use:

**Ajv options object**

<!-- See https://github.com/epoberezkin/ajv#options -->
<!-- See https://github.com/ajv-validator/ajv#options -->

```javascript

@@ -49,7 +49,7 @@ This template is for bug or error reports. For other issues please use:
<!--
Please:
- make it as small as posssible to reproduce the issue
- use one of the usage patterns from https://github.com/epoberezkin/ajv#getting-started
- use one of the usage patterns from https://github.com/ajv-validator/ajv#getting-started
- use `options`, `schema` and `data` as variables, do not repeat their values here
- post a working code sample in RunKit notebook cloned from https://runkit.com/esp/ajv-issue and include the link here.
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-or-error-report.md
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ assignees: ''
---

<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
Please provide all info and reduce your schema and data to the smallest possible size.
This template is for bug or error reports.
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
For other issues please see https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md
-->

**What version of Ajv are you using? Does the issue happen if you use the latest version?**
@@ -21,7 +21,7 @@ For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTR

**Ajv options object**

<!-- See https://github.com/epoberezkin/ajv#options -->
<!-- See https://github.com/ajv-validator/ajv#options -->

```javascript

@@ -54,7 +54,7 @@ For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTR
<!--
Please:
- make it as small as posssible to reproduce the issue
- use one of the usage patterns from https://github.com/epoberezkin/ajv#getting-started
- use one of the usage patterns from https://github.com/ajv-validator/ajv#getting-started
- use `options`, `schema` and `data` as variables, do not repeat their values here
- post a working code sample in RunKit notebook cloned from https://runkit.com/esp/ajv-issue and include the link here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/change.md
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ assignees: ''
---

<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
Please provide all info and reduce your schema and data to the smallest possible size.
This template is for change proposals.
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
For other issues please see https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md
-->

**What version of Ajv you are you using?**
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/compatibility.md
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ assignees: ''
---

<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
Please provide all info and reduce your schema and data to the smallest possible size.
This template is for compatibility issues.
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
For other issues please see https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md
-->

**The version of Ajv you are using**
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/installation.md
Original file line number Diff line number Diff line change
@@ -8,11 +8,11 @@ assignees: ''
---

<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
Please provide all info and reduce your schema and data to the smallest possible size.
This template is for installation and dependency issues.
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
For other issues please see https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md
Before submitting the issue, please try the following:
- use the latest stable Node.js and npm
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/typescript.md
Original file line number Diff line number Diff line change
@@ -8,10 +8,10 @@ assignees: ''
---

<!--
Frequently Asked Questions: https://github.com/epoberezkin/ajv/blob/master/FAQ.md
Frequently Asked Questions: https://github.com/ajv-validator/ajv/blob/master/FAQ.md
This template is for issues about missing or incorrect type definition and other typescript-related issues.
For other issues please see https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md
For other issues please see https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md
-->

**What version of Ajv are you using? Does the issue happen if you use the latest version?**
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
Thank you for submitting a pull request to Ajv.
Before continuing, please read the guidelines:
https://github.com/epoberezkin/ajv/blob/master/CONTRIBUTING.md#pull-requests
https://github.com/ajv-validator/ajv/blob/master/CONTRIBUTING.md#pull-requests
If the pull request contains code please make sure there is an issue that we agreed to resolve (if it is a documentation improvement there is no need for an issue).
4 changes: 2 additions & 2 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -25,8 +25,8 @@ githubLabels:
- [Tutorial by Space Telescope Science Institute](http://json-schema.org/understanding-json-schema/)
- [validation keywords](https://github.com/epoberezkin/ajv#validation-keywords) (in Ajv docs)
- [validation keywords](https://github.com/ajv-validator/ajv#validation-keywords) (in Ajv docs)
- [combining schemas](https://github.com/epoberezkin/ajv#ref) (in Ajv docs)
- [combining schemas](https://github.com/ajv-validator/ajv#ref) (in Ajv docs)
- [Tutorial by @epoberezkin](https://code.tutsplus.com/tutorials/validating-data-with-json-schema-part-1--cms-25343)
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -3,10 +3,9 @@ before_script:
- git submodule update --init
- npm install -g codeclimate-test-reporter
node_js:
- "8"
- "10"
- "11"
- "12"
- 10
- 12
- 14
after_script:
- codeclimate-test-reporter < coverage/lcov.info
- coveralls < coverage/lcov.info
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Contributor Covenant Code of Conduct

## Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at ajv.validator@gmail.com. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
2 changes: 1 addition & 1 deletion COERCION.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ajv type coercion rules

To enable type coercion pass option `coerceTypes` to Ajv with `true` or `array` (it is `false` by default). See [example](https://github.com/epoberezkin/ajv#coercing-data-types).
To enable type coercion pass option `coerceTypes` to Ajv with `true` or `array` (it is `false` by default). See [example](https://github.com/ajv-validator/ajv#coercing-data-types).

The coercion rules are different from JavaScript:
- to validate user input as expected
18 changes: 9 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ Ajv has a lot of features and maintaining documentation takes time. I appreciate

## Issues

Before submitting the issue please search the existing issues and also review [Frequently Asked Questions](https://github.com/epoberezkin/ajv/blob/master/FAQ.md).
Before submitting the issue please search the existing issues and also review [Frequently Asked Questions](https://github.com/ajv-validator/ajv/blob/master/FAQ.md).

I would really appreciate the time you spend providing all the information and reducing both your schema and data to the smallest possible size when they still have the issue. Simplifying the issue also makes it more valuable for other users (in cases it turns out to be an incorrect usage rather than a bug).

@@ -34,15 +34,15 @@ I would really appreciate the time you spend providing all the information and r
Please make sure to include the following information in the issue:

1. What version of Ajv are you using? Does the issue happen if you use the latest version?
2. Ajv options object (see https://github.com/epoberezkin/ajv#options).
2. Ajv options object (see https://github.com/ajv-validator/ajv#options).
3. JSON Schema and the data you are validating (please make it as small as possible to reproduce the issue).
4. Your code (please use `options`, `schema` and `data` as variables).
5. Validation result, data AFTER validation, error messages.
6. What results did you expect?

Please include the link to the working code sample at Runkit.com (please clone https://runkit.com/esp/ajv-issue) - it will speed up investigation and fixing.

[Create bug report](https://github.com/epoberezkin/ajv/issues/new?template=bug-or-error-report.md).
[Create bug report](https://github.com/ajv-validator/ajv/issues/new?template=bug-or-error-report.md).


#### Security vulnerabilities
@@ -56,7 +56,7 @@ Please do NOT report security vulnerabilities via GitHub issues.

#### <a name="changes"></a>Change proposals

[Create a proposal](https://github.com/epoberezkin/ajv/issues/new?template=change.md) for a new feature, option or some other improvement.
[Create a proposal](https://github.com/ajv-validator/ajv/issues/new?template=change.md) for a new feature, option or some other improvement.

Please include this information:

@@ -76,7 +76,7 @@ Please include as much details as possible.

#### <a name="compatibility"></a>Browser and compatibility issues

[Create an issue](https://github.com/epoberezkin/ajv/issues/new?template=compatibility.md) to report a compatibility problem that only happens in a particular environment (when your code works correctly in node.js v8+ in linux systems but fails in some other environment).
[Create an issue](https://github.com/ajv-validator/ajv/issues/new?template=compatibility.md) to report a compatibility problem that only happens in a particular environment (when your code works correctly in node.js v8+ in linux systems but fails in some other environment).

Please include this information:

@@ -90,7 +90,7 @@ Please include this information:

#### <a name="installation"></a>Installation and dependency issues

[Create an issue](https://github.com/epoberezkin/ajv/issues/new?template=installation.md) to report problems that happen during Ajv installation or when Ajv is missing some dependency.
[Create an issue](https://github.com/ajv-validator/ajv/issues/new?template=installation.md) to report problems that happen during Ajv installation or when Ajv is missing some dependency.

Before submitting the issue, please try the following:
- use the latest stable Node.js and `npm`
@@ -143,9 +143,9 @@ npm run test-fast
git commit -nm 'type: message'
```

All validation functions are generated using doT templates in [dot](https://github.com/epoberezkin/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency.
All validation functions are generated using doT templates in [dot](https://github.com/ajv-validator/ajv/tree/master/lib/dot) folder. Templates are precompiled so doT is not a run-time dependency.

`npm run build` - compiles templates to [dotjs](https://github.com/epoberezkin/ajv/tree/master/lib/dotjs) folder.
`npm run build` - compiles templates to [dotjs](https://github.com/ajv-validator/ajv/tree/master/lib/dotjs) folder.

`npm run watch` - automatically compiles templates when files in dot folder change

@@ -154,7 +154,7 @@ All validation functions are generated using doT templates in [dot](https://gith

To make accepting your changes faster please follow these steps:

1. Submit an [issue with the bug](https://github.com/epoberezkin/ajv/issues/new) or with the proposed change (unless the contribution is to fix the documentation typos and mistakes).
1. Submit an [issue with the bug](https://github.com/ajv-validator/ajv/issues/new) or with the proposed change (unless the contribution is to fix the documentation typos and mistakes).
2. Please describe the proposed api and implementation plan (unless the issue is a relatively simple bug and fixing it doesn't change any api).
3. Once agreed, please write as little code as possible to achieve the desired result.
4. Please avoid unnecessary changes, refactoring or changing coding styles as part of your change (unless the change was proposed as refactoring).
Loading