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: v8.0.3
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: v8.0.4
Choose a head ref
  • 13 commits
  • 10 files changed
  • 4 contributors

Commits on Apr 1, 2021

  1. site: subscribe to news

    epoberezkin committed Apr 1, 2021
    Copy the full SHA
    9a6b150 View commit details

Commits on Apr 2, 2021

  1. docs: fix link

    mighty1231 authored Apr 2, 2021

    Unverified

    The email in this signature doesn’t match the committer email.
    Copy the full SHA
    fb70fd2 View commit details
  2. Merge pull request #1527 from mighty1231/patch-1

    docs: fix link
    epoberezkin authored Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    529846f View commit details
  3. site: testimonials

    epoberezkin committed Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    712bdd9 View commit details
  4. remove travis.yml

    epoberezkin committed Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4dab77e View commit details
  5. Don't ship sourcemaps

    This slashed ~40% of the size of the dist folder
    realityking committed Apr 2, 2021
    Copy the full SHA
    3219808 View commit details
  6. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    145a4cf View commit details
  7. Copy the full SHA
    4b9c05e View commit details
  8. Merge pull request #1526 from realityking/smaller-package

    Smaller package
    epoberezkin authored Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    4dbce43 View commit details
  9. build(deps-dev): bump husky from 5.2.0 to 6.0.0

    Bumps [husky](https://github.com/typicode/husky) from 5.2.0 to 6.0.0.
    - [Release notes](https://github.com/typicode/husky/releases)
    - [Commits](typicode/husky@v5.2.0...v6.0.0)
    
    Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
    dependabot-preview[bot] authored Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    819982c View commit details
  10. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c4de1a4 View commit details
  11. Merge pull request #1520 from ajv-validator/dependabot/npm_and_yarn/h…

    …usky-6.0.0
    
    build(deps-dev): bump husky from 5.2.0 to 6.0.0
    epoberezkin authored Apr 2, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    359da93 View commit details
  12. 8.0.4

    epoberezkin committed Apr 2, 2021
    Copy the full SHA
    facbb23 View commit details
File renamed without changes.
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions docs/.vuepress/components/Button.vue
Original file line number Diff line number Diff line change
@@ -19,8 +19,8 @@ export default {
a.button
display block
width 114px
height 40px
line-height 40px
height 38px
line-height 38px
background-color $ajvGreenColor
border-radius 6px
color white
19 changes: 15 additions & 4 deletions docs/.vuepress/components/NewsHome.vue
Original file line number Diff line number Diff line change
@@ -13,7 +13,10 @@
</Column>
</Columns>
</div>
<p><a href="/news/" class="previous">All news</a></p>
<p class="subscribe">
<Subscribe />
<a href="/news/" class="all-news">All news</a>
</p>
</div>
</template>

@@ -42,7 +45,15 @@ export default {
float right
margin 28px 0
a.previous
display inline-block
float right
p.subscribe
margin-top 2em
a.all-news
display block
margin-top 1rem
@media only screen and (min-width: $MQMobileNarrow)
display inline-block
float right
margin-top 0
</style>
63 changes: 63 additions & 0 deletions docs/.vuepress/components/Subscribe.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<template>
<form
action="https://ajv.us1.list-manage.com/subscribe/post?u=4343a2a251fa30892c2360003&amp;id=304f51cbc3"
method="post"
target="_blank"
novalidate
>
<label for="subscription-email">Subscribe to Ajv news</label>
<input id="subscription-email" name="EMAIL" placeholder="Your email" />
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input type="text" name="b_4343a2a251fa30892c2360003_304f51cbc3" tabindex="-1" value="">
</div>
<button type="submit">Submit</button>
</form>
</template>

<style lang="stylus" scoped>
form
display inline-block
label
display block
margin-bottom 1rem
@media only screen and (min-width: $MQMobile)
display inline-block
margin-bottom 0
input, button
font-family Raleway
font-size 16px
border 0px solid
outline none
input
border 1px solid #cfd4db
height 2rem
width 180px
border-radius 2rem
padding 0 0.5rem
margin 0 0.5rem 0 0
&:focus
border-color: $accentColor
@media only screen and (min-width: $MQMobile)
width 200px
margin 0 1rem
button
width 114px
height 36px
line-height 36px
padding-top 0
background-color $ajvGreenColor
border-radius 6px
color white
text-align center
font-weight 600
display block
margin-top 1em
@media only screen and (min-width: $MQMobileSmall)
display inline-block
margin-top 0
</style>
9 changes: 8 additions & 1 deletion docs/.vuepress/components/Testimonial.vue
Original file line number Diff line number Diff line change
@@ -24,17 +24,24 @@ div.testimonial-content
background-image url(./Testimonial/testimonials-blue.svg)
&.green
background-image url(./Testimonial/testimonials-green.svg)
p
margin 0.9em 0
font-size 15px
@media only screen and (max-width 374px)
&.blue, &.green
background-image none
padding 0 0
p
font-size 15px
@media only screen and (max-width 500px)
width 100%
font-size 13px
background-size 350px 156px
padding 0 calc(50% - 100px)
box-sizing border-box
p
font-size 12px
@media only screen and (min-width 500px)
height 212px
11 changes: 8 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -117,18 +117,23 @@ if (!valid) console.log(ajv.errors)
<Testimonials>
<Testimonial color="green">

I always thought that built-in data validation is a key feature of any web framework. We decided to leverage JSON Schema in [Fastify](https://www.fastify.io), and Ajv fits our needs wonderfully: it’s fast, stable and well maintained. [@mcollina](https://github.com/mcollina)
Built-in data validation is a key feature of any web framework. We decided to leverage JSON Schema in [Fastify](https://www.fastify.io), and Ajv fits our needs wonderfully: it’s fast, stable and well maintained.

[Matteo Collina](https://github.com/mcollina), tech director [@nearform](https://github.com/nearform) and TSC member

</Testimonial>

<Testimonial color="blue">

Ajv has become a centerpiece of all data-validation logic in my open-source projects and businesses. It is spec-compliant, extensible, fast and has amazing support.
[ESLint](https://eslint.org/) has used Ajv for validating our complex configurations. Ajv has proven to be reliable over the years we’ve been using it and ESLint is proud to sponsor Ajv’s continued development.

[@gajus](https://github.com/gajus)
[Nicholas C. Zakas](https://github.com/nzakas), ESLint creator and TSC member

</Testimonial>
</Testimonials>

<span style="float:right;">[All testimonials](./testimonials.md)</span>

</HomeSection>

<HomeSection>
2 changes: 1 addition & 1 deletion docs/guide/modifying-data.md
Original file line number Diff line number Diff line change
@@ -268,4 +268,4 @@ console.log(data) // { "foo": [1], "bar": false }

The coercion rules, as you can see from the example, are different from JavaScript both to validate user input as expected and to have the coercion reversible (to correctly validate cases where different types are defined in subschemas of "anyOf" and other compound keywords).

See [Type coercion rules](./coercion.md) for details.
See [Type coercion rules](../coercion.md) for details.
17 changes: 17 additions & 0 deletions docs/testimonials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Testimonials

[ESLint](https://eslint.org/) has used Ajv for validating our complex configurations. Ajv has proven to be reliable over the years we’ve been using it and ESLint is proud to sponsor Ajv’s continued development.

[Nicholas C. Zakas](https://github.com/nzakas), ESLint creator and TSC member

<br>
I always thought that built-in data validation is a key feature of any web framework. We decided to leverage JSON Schema in [Fastify](https://www.fastify.io), and Ajv fits our needs wonderfully: it’s fast, stable and well maintained.

[Matteo Collina](https://github.com/mcollina), technical Director [@nearform](https://github.com/nearform) and TSC member

<br>

Ajv has become a centerpiece of all data-validation logic in my open-source projects and businesses. It is spec-compliant, extensible, fast and has amazing support.

[Gajus Kuizinas](https://github.com/gajus), Tech / Product Founder – building
[@contrahq](https://twitter.com/contrahq)
21 changes: 7 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{
"name": "ajv",
"version": "8.0.3",
"version": "8.0.4",
"description": "Another JSON Schema Validator",
"main": "dist/ajv.js",
"types": "dist/ajv.d.ts",
"files": [
"lib/",
"dist/",
"scripts/",
".tonic_example.js"
".runkit_example.js"
],
"scripts": {
"eslint": "eslint \"lib/**/*.ts\" \"spec/**/*.*s\" scripts --ignore-pattern spec/JSON-Schema-Test-Suite",
@@ -41,10 +39,7 @@
"text-summary"
]
},
"repository": {
"type": "git",
"url": "https://github.com/ajv-validator/ajv.git"
},
"repository": "ajv-validator/ajv",
"keywords": [
"JSON",
"schema",
@@ -57,11 +52,9 @@
],
"author": "Evgeny Poberezkin",
"license": "MIT",
"bugs": {
"url": "https://github.com/ajv-validator/ajv/issues"
},
"homepage": "https://github.com/ajv-validator/ajv",
"tonicExampleFilename": ".tonic_example.js",
"bugs": "https://github.com/ajv-validator/ajv/issues",
"homepage": "https://ajv.js.org",
"runkitExampleFilename": ".runkit_example.js",
"dependencies": {
"fast-deep-equal": "^3.1.1",
"json-schema-traverse": "^1.0.0",
@@ -86,7 +79,7 @@
"eslint": "^7.8.1",
"eslint-config-prettier": "^7.0.0",
"glob": "^7.0.0",
"husky": "^5.0.9",
"husky": "^6.0.0",
"if-node-version": "^1.0.0",
"jimp": "^0.16.1",
"js-beautify": "^1.7.3",