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: v7.0.0
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: v7.0.1
Choose a head ref
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Dec 16, 2020

  1. Add user-friendly message for maxLength validation

    "should not have fewer than 5 items" feels weird for a string of characters. I think we should revert back to v6 terminology and say "characters" instead of "items".
    nicksrandall authored Dec 16, 2020
    Copy the full SHA
    b68927a View commit details
  2. Merge pull request #1353 from nicksrandall/patch-1

    Add user-friendly message for maxLength validation
    epoberezkin authored Dec 16, 2020

    Unverified

    The email in this signature doesn’t match the committer email.
    Copy the full SHA
    dc55ff2 View commit details
  3. 7.0.1

    epoberezkin authored Dec 16, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    616a725 View commit details
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/vocabularies/validation/limitLength.ts
  2. +1 −1 package.json
2 changes: 1 addition & 1 deletion lib/vocabularies/validation/limitLength.ts
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ import ucs2length from "../../compile/ucs2length"
const error: KeywordErrorDefinition = {
message({keyword, schemaCode}) {
const comp = keyword === "maxLength" ? "more" : "fewer"
return str`should NOT have ${comp} than ${schemaCode} items`
return str`should NOT have ${comp} than ${schemaCode} characters`
},
params: ({schemaCode}) => _`{limit: ${schemaCode}}`,
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ajv",
"version": "7.0.0",
"version": "7.0.1",
"description": "Another JSON Schema Validator",
"main": "dist/ajv.js",
"types": "dist/ajv.d.ts",