-
Notifications
You must be signed in to change notification settings - Fork 7
Update ajv to the latest version 🚀 #85
base: master
Are you sure you want to change the base?
Conversation
Version 5.0.1 just got published.Update to this version instead 🚀 CommitsThe new version differs by 17 commits0.
There are 17 commits in total. See the full diff |
Version 5.1.0 just got published.Update to this version instead 🚀 Release Notesv5.1.0Changed order of type validation - "type" keyword is now validated before keywords that apply to all types. CommitsThe new version differs by 7 commits0.
false See the full diff |
Version 5.1.1 just got published. |
Version 5.1.2 just got published.Update to this version instead 🚀 CommitsThe new version differs by 13 commits.
See the full diff |
Version 5.1.3 just got published. |
Version 5.1.4 just got published.Update to this version instead 🚀 CommitsThe new version differs by 7 commits.
See the full diff |
Version 5.1.6 just got published.Update to this version instead 🚀 CommitsThe new version differs by 8 commits.
See the full diff |
Version 5.2.0 just got published.Update to this version instead 🚀 Release Notes5.2.0Refactor: separate "equal" into package fast-deep-equal |
Version 5.2.1 just got published.Update to this version instead 🚀 CommitsThe new version differs by 13 commits.
See the full diff |
Version 5.2.2 just got published. |
Version 5.2.3 just got published.Update to this version instead 🚀 CommitsThe new version differs by 11 commits.
See the full diff |
Version 5.2.4 just got published.Update to this version instead 🚀 CommitsThe new version differs by 23 commits.
There are 23 commits in total. See the full diff |
Version 5.2.5 just got published. |
Update to this version instead 🚀 Release Notes for v6.6.0Keyword "nullable" from OpenAPI spec CommitsThe new version differs by 7 commits.
See the full diff |
|
Update to this version instead 🚀 CommitsThe new version differs by 9 commits.
See the full diff |
Update to this version instead 🚀 Release Notes for v6.7.0Option CommitsThe new version differs by 17 commits.
There are 17 commits in total. See the full diff |
Update to this version instead 🚀 Release Notes for v6.8.0Docs: security considerations. CommitsThe new version differs by 8 commits.
See the full diff |
|
Update to this version instead 🚀 Release Notes for v6.9.0OpenAPI keyword
CommitsThe new version differs by 14 commits.
See the full diff |
|
Update to this version instead 🚀 CommitsThe new version differs by 11 commits.
See the full diff |
Update to this version instead 🚀 Release Notes for v6.10.0Option CommitsThe new version differs by 8 commits.
See the full diff |
Update to this version instead 🚀 CommitsThe new version differs by 12 commits.
See the full diff |
|
|
|
|
Version 5.0.0 of ajv just got published.
The version 5.0.0 is not covered by your current version range.
Without accepting this pull request your project will work just like it did before. There might be a bunch of new features, fixes and perf improvements that the maintainers worked on for you though.
I recommend you look into these changes and try to get onto the latest version of ajv.
Given that you have a decent test suite, a passing build is a strong indicator that you can take advantage of these changes by merging the proposed change into your project. Otherwise this branch is a great starting point for you to work on the update.
Release Notes
5.0.0This release is fully backward compatible, but it is likely to require either migrating your schemas (recommended, e.g. using "migrate" command of ajv-cli) or changing your code using Ajv.
You can still use draft-04 and v5 schemas with this release (see Migration guide below).
The changes below are based on 4.11.7 version.
JSON-Schema draft-06 support
true
/false
can be used in order to always pass/fail validation.$id
keyword is used as schema URI (previouslyid
).exclusiveMaximum
andexclusiveMinimum
keywords must be numbers (previously boolean).See Internet drafts: JSON Schema, JSON Schema Validation.
Migrating from Ajv 4.x.x
Migrate your schemas
It is a recommended approach.
Required changes
id
with$id
$schema
exclusiveMaximum/Minimum
with numeric formconstant
withconst
Optional changes
enum
with a single allowed value withconst
true
{"not":{}}
withfalse
You can use "migrate" command of ajv-cli to make these changes to your schemas.
If you need to continue using draft-04 schemas
If you use need to continue using schemas requiring v5 mode of Ajv
Changes
Validation keywords
Moved/deprecated:
patternRequired
.Formats
Methods
compileAsync
method returns Promise and supports async loading of meta-schemas (#249, #334).Options
schemaId
determining whether $id, id or both are used.$data
for $data reference support.ownProperties
supports all keywords (#197).serialize
to replace json-stable-stringify with another function to serialise schemas.meta: false
is used withoutvalidateSchema: false
.processCode: function() {}
can be used to beautify/transpile generated code.beautify: true
is no longer supported.v5
is no longer used.Option defaults changed:
"ignore"
- when $ref is used other keywords are ignored (wastrue
) (#294).false
- do not store source code of validation functions (wastrue
) (#309).true
- fail schema compilation (was"ignore"
) (#324).Asynchronous validation
transpile
option support require ajv-async package."co*"
(co-wrapped generator functions).processCode
option. See Options.true
).Other
console.warn
andconsole.error
(#265).Related packages
Compatible versions are:
Commits
The new version differs by 144 commits .
8641c6b
version 5.0.0
fde7030
Merge pull request #464 from epoberezkin/5.0.0
21818c7
Merge branch 'master' into 5.0.0
2fc8a64
Merge branch 'master' into 5.0.0
67dd36a
version 5.0.4-beta.3
e82b62d
Merge branch 'master' into 5.0.0
b8fdbd1
Merge branch 'gajus-feat/add-url-record-format' into 5.0.0
8bb21dd
Merge branch 'feat/add-url-record-format' of https://github.com/gajus/ajv into gajus-feat/add-url-record-format
3b0eee3
Merge branch 'master' into 5.0.0
cc711fc
docs: migrate schemas with ajv-cli
d9ee511
fix: modifying custom keyword should not update parent data of root data
3f9ab64
feat: more comprehencive uri-reference format in {format: "full"} mode
0b308db
test: update JSON-Schema-Test-Suite, enable optional/bignum test
2daf587
version 5.0.4-beta.0
02f9a15
Merge branch 'master' into 5.0.0
There are 144 commits in total. See the full diff.
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴