Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { Ajv as AjvDraft06And07 } from 'ajv'
import _Ajv2019 from 'ajv/dist/2019.js'
import _Ajv2020 from 'ajv/dist/2020.js'
import _addFormats from 'ajv-formats'
import _ajvKeywords from 'ajv-keywords'
import { ajvFormatsDraft2019 } from '@hyperupcall/ajv-formats-draft2019'
import schemasafe from '@exodus/schemasafe'
import TOML from 'smol-toml'
Expand Down Expand Up @@ -55,6 +56,9 @@ const Ajv2019 = /** @type {any} */ (_Ajv2019)
/** @type {typeof _Ajv2020.default} */
const Ajv2020 = /** @type {any} */ (_Ajv2020)

/** @type {any} */
const ajvKeywords = _ajvKeywords

/** @type {typeof _addFormats.default} */
const addFormats = /** @type {any} */ (_addFormats)

Expand Down Expand Up @@ -487,6 +491,8 @@ async function ajvFactory(
throw new Error('No JSON Schema version specified')
}

ajvKeywords(ajv, 'uniqueItemProperties')

/**
* In strict mode, Ajv will throw an error if it does not
* recognize any non-standard formats. That is, unrecognized
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"ajv": "^8.18.0",
"ajv-draft-04": "^1.0.0",
"ajv-formats": "^2.1.1",
"ajv-keywords": "^5.1.0",
"chalk": "^5.6.2",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.8",
Expand Down