json-schema-library 10.3.0 → 10.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.editorconfig +1 -1
- package/.prettierrc +0 -1
- package/README.md +415 -409
- package/dist/index.d.mts +651 -0
- package/dist/index.d.ts +1125 -24
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/dist/jlib.js +12 -0
- package/index.ts +1 -0
- package/package.json +102 -100
- package/src/compileSchema.ts +1 -1
- package/src/draft2019-09/methods/getData.ts +10 -10
- package/src/methods/getData.ts +12 -12
- package/src/settings.test.ts +21 -0
- package/src/utils/joinId.test.ts +6 -0
- package/tsconfig.json +2 -2
- package/tsdown.config.ts +8 -0
- package/tsdown.iife.config.ts +10 -0
- package/dist/jsonSchemaLibrary.js +0 -1
- package/dist/module/index.js +0 -22
- package/dist/module/remotes/draft04.json +0 -150
- package/dist/module/remotes/draft06.json +0 -155
- package/dist/module/remotes/draft07.json +0 -155
- package/dist/module/remotes/draft2019-09.json +0 -41
- package/dist/module/remotes/draft2019-09_meta_applicator.json +0 -52
- package/dist/module/remotes/draft2019-09_meta_content.json +0 -12
- package/dist/module/remotes/draft2019-09_meta_core.json +0 -53
- package/dist/module/remotes/draft2019-09_meta_format.json +0 -10
- package/dist/module/remotes/draft2019-09_meta_meta-data.json +0 -32
- package/dist/module/remotes/draft2019-09_meta_validation.json +0 -94
- package/dist/module/remotes/draft2020-12.json +0 -54
- package/dist/module/remotes/draft2020-12_meta_applicator.json +0 -44
- package/dist/module/remotes/draft2020-12_meta_content.json +0 -12
- package/dist/module/remotes/draft2020-12_meta_core.json +0 -47
- package/dist/module/remotes/draft2020-12_meta_format_annotation.json +0 -10
- package/dist/module/remotes/draft2020-12_meta_format_assertion.json +0 -10
- package/dist/module/remotes/draft2020-12_meta_meta_data.json +0 -32
- package/dist/module/remotes/draft2020-12_meta_unevaluated.json +0 -11
- package/dist/module/remotes/draft2020-12_meta_validation.json +0 -86
- package/dist/module/remotes/index.js +0 -43
- package/dist/module/src/Draft.js +0 -51
- package/dist/module/src/Keyword.js +0 -1
- package/dist/module/src/SchemaNode.js +0 -281
- package/dist/module/src/compileSchema.js +0 -71
- package/dist/module/src/draft04/keywords/$ref.js +0 -132
- package/dist/module/src/draft04/keywords/exclusiveMaximum.js +0 -20
- package/dist/module/src/draft04/keywords/exclusiveMinimum.js +0 -20
- package/dist/module/src/draft04.js +0 -105
- package/dist/module/src/draft06/keywords/$ref.js +0 -60
- package/dist/module/src/draft06.js +0 -107
- package/dist/module/src/draft07.js +0 -99
- package/dist/module/src/draft2019-09/keywords/$ref.js +0 -199
- package/dist/module/src/draft2019-09/keywords/additionalItems.js +0 -57
- package/dist/module/src/draft2019-09/keywords/items.js +0 -64
- package/dist/module/src/draft2019-09/keywords/unevaluatedItems.js +0 -82
- package/dist/module/src/draft2019-09/methods/getChildSelection.js +0 -39
- package/dist/module/src/draft2019-09/methods/getData.js +0 -302
- package/dist/module/src/draft2019.js +0 -110
- package/dist/module/src/draft2020.js +0 -120
- package/dist/module/src/draftEditor.js +0 -31
- package/dist/module/src/errors/errors.js +0 -67
- package/dist/module/src/errors/render.js +0 -11
- package/dist/module/src/formats/formats.js +0 -297
- package/dist/module/src/getNode.js +0 -44
- package/dist/module/src/getNodeChild.js +0 -45
- package/dist/module/src/isItemEvaluated.js +0 -59
- package/dist/module/src/isPropertyEvaluated.js +0 -69
- package/dist/module/src/keywords/$defs.js +0 -25
- package/dist/module/src/keywords/$ref.js +0 -221
- package/dist/module/src/keywords/additionalProperties.js +0 -91
- package/dist/module/src/keywords/allOf.js +0 -48
- package/dist/module/src/keywords/anyOf.js +0 -46
- package/dist/module/src/keywords/const.js +0 -14
- package/dist/module/src/keywords/contains.js +0 -64
- package/dist/module/src/keywords/dependencies.js +0 -117
- package/dist/module/src/keywords/dependentRequired.js +0 -52
- package/dist/module/src/keywords/dependentSchemas.js +0 -85
- package/dist/module/src/keywords/enum.js +0 -27
- package/dist/module/src/keywords/exclusiveMaximum.js +0 -20
- package/dist/module/src/keywords/exclusiveMinimum.js +0 -20
- package/dist/module/src/keywords/format.js +0 -11
- package/dist/module/src/keywords/ifthenelse.js +0 -66
- package/dist/module/src/keywords/items.js +0 -55
- package/dist/module/src/keywords/maxItems.js +0 -18
- package/dist/module/src/keywords/maxLength.js +0 -23
- package/dist/module/src/keywords/maxProperties.js +0 -23
- package/dist/module/src/keywords/maximum.js +0 -31
- package/dist/module/src/keywords/minItems.js +0 -21
- package/dist/module/src/keywords/minLength.js +0 -24
- package/dist/module/src/keywords/minProperties.js +0 -22
- package/dist/module/src/keywords/minimum.js +0 -31
- package/dist/module/src/keywords/multipleOf.js +0 -38
- package/dist/module/src/keywords/not.js +0 -20
- package/dist/module/src/keywords/oneOf.js +0 -240
- package/dist/module/src/keywords/pattern.js +0 -27
- package/dist/module/src/keywords/patternProperties.js +0 -103
- package/dist/module/src/keywords/prefixItems.js +0 -46
- package/dist/module/src/keywords/properties.js +0 -42
- package/dist/module/src/keywords/propertyNames.js +0 -59
- package/dist/module/src/keywords/required.js +0 -25
- package/dist/module/src/keywords/type.js +0 -40
- package/dist/module/src/keywords/unevaluatedItems.js +0 -74
- package/dist/module/src/keywords/unevaluatedProperties.js +0 -61
- package/dist/module/src/keywords/uniqueItems.js +0 -30
- package/dist/module/src/mergeNode.js +0 -111
- package/dist/module/src/methods/createSchema.js +0 -33
- package/dist/module/src/methods/getChildSelection.js +0 -40
- package/dist/module/src/methods/getData.js +0 -299
- package/dist/module/src/methods/toDataNodes.js +0 -27
- package/dist/module/src/methods/toSchemaNodes.js +0 -37
- package/dist/module/src/settings.js +0 -20
- package/dist/module/src/tests/spec/draft04.spec.js +0 -11
- package/dist/module/src/tests/spec/draft06.spec.js +0 -11
- package/dist/module/src/tests/spec/draft07.spec.js +0 -11
- package/dist/module/src/tests/spec/draft2019-09.spec.js +0 -79
- package/dist/module/src/tests/spec/draft2020-12.spec.js +0 -63
- package/dist/module/src/tests/types.js +0 -13
- package/dist/module/src/tests/utils/addRemotes.js +0 -17
- package/dist/module/src/tests/utils/getDraftTests.js +0 -36
- package/dist/module/src/tests/utils/runTestCases.js +0 -102
- package/dist/module/src/types.js +0 -9
- package/dist/module/src/utils/copyDraft.js +0 -6
- package/dist/module/src/utils/getDefaultValue.js +0 -15
- package/dist/module/src/utils/getPrecision.js +0 -11
- package/dist/module/src/utils/getSchemaType.js +0 -122
- package/dist/module/src/utils/getTypeOf.js +0 -8
- package/dist/module/src/utils/getValue.js +0 -9
- package/dist/module/src/utils/hasProperty.js +0 -2
- package/dist/module/src/utils/isEmpty.js +0 -17
- package/dist/module/src/utils/isFile.js +0 -10
- package/dist/module/src/utils/isObject.js +0 -4
- package/dist/module/src/utils/isType.js +0 -1
- package/dist/module/src/utils/joinId.js +0 -40
- package/dist/module/src/utils/mergeSchema.js +0 -77
- package/dist/module/src/utils/omit.js +0 -19
- package/dist/module/src/utils/pick.js +0 -13
- package/dist/module/src/utils/punycode.ucs2decode.js +0 -43
- package/dist/module/src/utils/sanitizeErrors.js +0 -16
- package/dist/module/src/utils/splitRef.js +0 -18
- package/dist/module/src/validateNode.js +0 -28
- package/dist/remotes/index.d.ts +0 -3
- package/dist/src/Draft.d.ts +0 -35
- package/dist/src/Keyword.d.ts +0 -62
- package/dist/src/SchemaNode.d.ts +0 -220
- package/dist/src/compileSchema.d.ts +0 -15
- package/dist/src/draft04/keywords/$ref.d.ts +0 -2
- package/dist/src/draft04/keywords/exclusiveMaximum.d.ts +0 -2
- package/dist/src/draft04/keywords/exclusiveMinimum.d.ts +0 -2
- package/dist/src/draft04.d.ts +0 -22
- package/dist/src/draft06/keywords/$ref.d.ts +0 -2
- package/dist/src/draft06.d.ts +0 -22
- package/dist/src/draft07.d.ts +0 -12
- package/dist/src/draft2019-09/keywords/$ref.d.ts +0 -9
- package/dist/src/draft2019-09/keywords/additionalItems.d.ts +0 -4
- package/dist/src/draft2019-09/keywords/items.d.ts +0 -4
- package/dist/src/draft2019-09/keywords/unevaluatedItems.d.ts +0 -9
- package/dist/src/draft2019-09/methods/getChildSelection.d.ts +0 -7
- package/dist/src/draft2019-09/methods/getData.d.ts +0 -27
- package/dist/src/draft2019.d.ts +0 -15
- package/dist/src/draft2020.d.ts +0 -25
- package/dist/src/draftEditor.d.ts +0 -6
- package/dist/src/errors/errors.d.ts +0 -67
- package/dist/src/errors/render.d.ts +0 -3
- package/dist/src/formats/formats.d.ts +0 -3
- package/dist/src/getNode.d.ts +0 -9
- package/dist/src/getNodeChild.d.ts +0 -9
- package/dist/src/isItemEvaluated.d.ts +0 -22
- package/dist/src/isPropertyEvaluated.d.ts +0 -22
- package/dist/src/keywords/$defs.d.ts +0 -4
- package/dist/src/keywords/$ref.d.ts +0 -12
- package/dist/src/keywords/additionalProperties.d.ts +0 -4
- package/dist/src/keywords/allOf.d.ts +0 -4
- package/dist/src/keywords/anyOf.d.ts +0 -4
- package/dist/src/keywords/const.d.ts +0 -2
- package/dist/src/keywords/contains.d.ts +0 -4
- package/dist/src/keywords/dependencies.d.ts +0 -5
- package/dist/src/keywords/dependentRequired.d.ts +0 -5
- package/dist/src/keywords/dependentSchemas.d.ts +0 -6
- package/dist/src/keywords/enum.d.ts +0 -2
- package/dist/src/keywords/exclusiveMaximum.d.ts +0 -2
- package/dist/src/keywords/exclusiveMinimum.d.ts +0 -2
- package/dist/src/keywords/format.d.ts +0 -2
- package/dist/src/keywords/ifthenelse.d.ts +0 -4
- package/dist/src/keywords/items.d.ts +0 -4
- package/dist/src/keywords/maxItems.d.ts +0 -2
- package/dist/src/keywords/maxLength.d.ts +0 -2
- package/dist/src/keywords/maxProperties.d.ts +0 -2
- package/dist/src/keywords/maximum.d.ts +0 -2
- package/dist/src/keywords/minItems.d.ts +0 -2
- package/dist/src/keywords/minLength.d.ts +0 -2
- package/dist/src/keywords/minProperties.d.ts +0 -2
- package/dist/src/keywords/minimum.d.ts +0 -2
- package/dist/src/keywords/multipleOf.d.ts +0 -2
- package/dist/src/keywords/not.d.ts +0 -4
- package/dist/src/keywords/oneOf.d.ts +0 -16
- package/dist/src/keywords/pattern.d.ts +0 -2
- package/dist/src/keywords/patternProperties.d.ts +0 -4
- package/dist/src/keywords/prefixItems.d.ts +0 -4
- package/dist/src/keywords/properties.d.ts +0 -4
- package/dist/src/keywords/propertyNames.d.ts +0 -4
- package/dist/src/keywords/required.d.ts +0 -2
- package/dist/src/keywords/type.d.ts +0 -2
- package/dist/src/keywords/unevaluatedItems.d.ts +0 -9
- package/dist/src/keywords/unevaluatedProperties.d.ts +0 -4
- package/dist/src/keywords/uniqueItems.d.ts +0 -2
- package/dist/src/mergeNode.d.ts +0 -9
- package/dist/src/methods/createSchema.d.ts +0 -6
- package/dist/src/methods/getChildSelection.d.ts +0 -7
- package/dist/src/methods/getData.d.ts +0 -27
- package/dist/src/methods/toDataNodes.d.ts +0 -7
- package/dist/src/methods/toSchemaNodes.d.ts +0 -2
- package/dist/src/settings.d.ts +0 -7
- package/dist/src/tests/spec/draft04.spec.d.ts +0 -1
- package/dist/src/tests/spec/draft06.spec.d.ts +0 -1
- package/dist/src/tests/spec/draft07.spec.d.ts +0 -1
- package/dist/src/tests/spec/draft2019-09.spec.d.ts +0 -1
- package/dist/src/tests/spec/draft2020-12.spec.d.ts +0 -1
- package/dist/src/tests/types.d.ts +0 -3
- package/dist/src/tests/utils/addRemotes.d.ts +0 -3
- package/dist/src/tests/utils/getDraftTests.d.ts +0 -33
- package/dist/src/tests/utils/runTestCases.d.ts +0 -2
- package/dist/src/types.d.ts +0 -45
- package/dist/src/utils/copyDraft.d.ts +0 -26
- package/dist/src/utils/getDefaultValue.d.ts +0 -2
- package/dist/src/utils/getPrecision.d.ts +0 -4
- package/dist/src/utils/getSchemaType.d.ts +0 -8
- package/dist/src/utils/getTypeOf.d.ts +0 -2
- package/dist/src/utils/getValue.d.ts +0 -1
- package/dist/src/utils/hasProperty.d.ts +0 -1
- package/dist/src/utils/isEmpty.d.ts +0 -1
- package/dist/src/utils/isFile.d.ts +0 -2
- package/dist/src/utils/isObject.d.ts +0 -1
- package/dist/src/utils/isType.d.ts +0 -1
- package/dist/src/utils/joinId.d.ts +0 -1
- package/dist/src/utils/mergeSchema.d.ts +0 -3
- package/dist/src/utils/omit.d.ts +0 -11
- package/dist/src/utils/pick.d.ts +0 -3
- package/dist/src/utils/punycode.ucs2decode.d.ts +0 -16
- package/dist/src/utils/sanitizeErrors.d.ts +0 -5
- package/dist/src/utils/splitRef.d.ts +0 -1
- package/dist/src/validateNode.d.ts +0 -3
- package/webpack.config.js +0 -49
package/.editorconfig
CHANGED