chore: update dependency ajv to v6 #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This Pull Request updates dependency ajv from
^4.11.5
to^6.0.0
Release Notes
v6.5.0
Compare Source
With option
passContext
, the context is now passed in recursive/mutually recursive refs (@cvlab, #768).v6.4.0
Compare Source
Support URNs in $id - core
url
package is replaced withurl-js
(#423, @sondrele).v6.3.0
Compare Source
Typescript declarations updated to use PromiseLike (#717, @krenor)
v6.2.1
Compare Source
v6.2.0
Compare Source
Parameter
allowedValue
in the error ofconst
keyword (#713, @marshall007).v6.1.1
Compare Source
v6.1.0
Compare Source
A different error message for additionalProperties error with
errorDataPath: 'property'
option (#671, @lehni)v6.0.1
Compare Source
v6.0.0
Compare Source
Changes from v5.5.2
draft-07 support:
if
/then
/else
keywords$comment
keywordSchema IDs
$id
keyword is used as schema ID by default.schemaId
option should be set to "id" or "auto" forid
keyword to be used.See Options.
Formats
date
,date-time
,time
: support leap year and leap secondjson-pointer
: only validates a string format of JSON pointerjson-pointer-uri-fragment
: to validate uri-fragment format of JSON pointerKeyword changes
uniqueItems
keyword to validate an array of same-type scalars in one passuniqueItems
andcontains
are validated afteritems
and type coercion (withcoerceTypes
option)oneOf
keywordpatternGroups
keywordexamples
,readOnly
,writeOnly
,contentEncoding
,contentMediaType
.Other
then
/else
keywords.$comment
to log/pass to a function strings from$comment
keyword.v5.5.2
Compare Source
v5.5.1
Compare Source
v5.5.0
Compare Source
Support chaining of methods add* and remove* (#625, @pithu), see Api.
v5.4.0
Compare Source
Option
logger
to disable logging or to specify a custom logger (#618, @meirotstein).v5.3.0
Compare Source
Replace json-stable-stringify with a faster fork without jsonify.
v5.2.5
Compare Source
v5.2.4
Compare Source
v5.2.3
Compare Source
v5.2.2
Compare Source
v5.2.1
Compare Source
v5.2.0
Compare Source
Refactor: separate "equal" into package fast-deep-equal
v5.1.6
Compare Source
v5.1.5
Compare Source
v5.1.4
Compare Source
v5.1.3
Compare Source
v5.1.2
Compare Source
v5.1.1
Compare Source
v5.1.0
Compare Source
Changed order of type validation - "type" keyword is now validated before keywords that apply to all types.
v5.0.1
Compare Source
v5.0.0
Compare Source
This release is fully backward compatible, but it may require either migrating your schemas (recommended, e.g. using "migrate" command of ajv-cli) or changing your code that uses 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 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:
🚀 This PR has been generated by Renovate using COB-LVS/renovate configuration.