@nikovirtala/projen-constructs 0.2.111 → 0.2.113
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/.jsii +4 -4
- package/lib/components/bundle-lambda-function-code.js +3 -3
- package/lib/components/colima.js +1 -1
- package/lib/components/homebrew.js +1 -1
- package/lib/components/lambda-function-construct-generator.js +1 -1
- package/lib/components/localstack.js +1 -1
- package/lib/components/mise.js +1 -1
- package/lib/components/typedoc.js +1 -1
- package/lib/components/vitest.js +1 -1
- package/lib/project-generator.js +1 -1
- package/lib/projects/awscdk-construct-library.generated.js +1 -1
- package/lib/projects/awscdk-typescript-app.generated.js +1 -1
- package/lib/projects/jsii.generated.js +1 -1
- package/lib/projects/typescript.generated.js +1 -1
- package/node_modules/@jsii/spec/jest.config.mjs +4 -1
- package/node_modules/@jsii/spec/lib/format-errors.d.ts +3 -0
- package/node_modules/@jsii/spec/lib/format-errors.js +12 -0
- package/node_modules/@jsii/spec/lib/redirect.js +5 -11
- package/node_modules/@jsii/spec/lib/validate-assembly.js +5 -11
- package/node_modules/@jsii/spec/lib/validators.js +43 -0
- package/node_modules/@jsii/spec/package.json +5 -7
- package/package.json +7 -7
- package/node_modules/ajv/.runkit_example.js +0 -23
- package/node_modules/ajv/LICENSE +0 -22
- package/node_modules/ajv/README.md +0 -207
- package/node_modules/ajv/dist/2019.d.ts +0 -19
- package/node_modules/ajv/dist/2019.js +0 -61
- package/node_modules/ajv/dist/2019.js.map +0 -1
- package/node_modules/ajv/dist/2020.d.ts +0 -19
- package/node_modules/ajv/dist/2020.js +0 -55
- package/node_modules/ajv/dist/2020.js.map +0 -1
- package/node_modules/ajv/dist/ajv.d.ts +0 -18
- package/node_modules/ajv/dist/ajv.js +0 -50
- package/node_modules/ajv/dist/ajv.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/code.d.ts +0 -40
- package/node_modules/ajv/dist/compile/codegen/code.js +0 -156
- package/node_modules/ajv/dist/compile/codegen/code.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/index.d.ts +0 -79
- package/node_modules/ajv/dist/compile/codegen/index.js +0 -697
- package/node_modules/ajv/dist/compile/codegen/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/codegen/scope.d.ts +0 -79
- package/node_modules/ajv/dist/compile/codegen/scope.js +0 -143
- package/node_modules/ajv/dist/compile/codegen/scope.js.map +0 -1
- package/node_modules/ajv/dist/compile/errors.d.ts +0 -13
- package/node_modules/ajv/dist/compile/errors.js +0 -123
- package/node_modules/ajv/dist/compile/errors.js.map +0 -1
- package/node_modules/ajv/dist/compile/index.d.ts +0 -80
- package/node_modules/ajv/dist/compile/index.js +0 -242
- package/node_modules/ajv/dist/compile/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/parse.d.ts +0 -4
- package/node_modules/ajv/dist/compile/jtd/parse.js +0 -350
- package/node_modules/ajv/dist/compile/jtd/parse.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/serialize.d.ts +0 -4
- package/node_modules/ajv/dist/compile/jtd/serialize.js +0 -229
- package/node_modules/ajv/dist/compile/jtd/serialize.js.map +0 -1
- package/node_modules/ajv/dist/compile/jtd/types.d.ts +0 -6
- package/node_modules/ajv/dist/compile/jtd/types.js +0 -14
- package/node_modules/ajv/dist/compile/jtd/types.js.map +0 -1
- package/node_modules/ajv/dist/compile/names.d.ts +0 -20
- package/node_modules/ajv/dist/compile/names.js +0 -28
- package/node_modules/ajv/dist/compile/names.js.map +0 -1
- package/node_modules/ajv/dist/compile/ref_error.d.ts +0 -6
- package/node_modules/ajv/dist/compile/ref_error.js +0 -12
- package/node_modules/ajv/dist/compile/ref_error.js.map +0 -1
- package/node_modules/ajv/dist/compile/resolve.d.ts +0 -12
- package/node_modules/ajv/dist/compile/resolve.js +0 -155
- package/node_modules/ajv/dist/compile/resolve.js.map +0 -1
- package/node_modules/ajv/dist/compile/rules.d.ts +0 -28
- package/node_modules/ajv/dist/compile/rules.js +0 -26
- package/node_modules/ajv/dist/compile/rules.js.map +0 -1
- package/node_modules/ajv/dist/compile/util.d.ts +0 -40
- package/node_modules/ajv/dist/compile/util.js +0 -178
- package/node_modules/ajv/dist/compile/util.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/applicability.d.ts +0 -6
- package/node_modules/ajv/dist/compile/validate/applicability.js +0 -19
- package/node_modules/ajv/dist/compile/validate/applicability.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +0 -4
- package/node_modules/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/node_modules/ajv/dist/compile/validate/boolSchema.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/dataType.d.ts +0 -17
- package/node_modules/ajv/dist/compile/validate/dataType.js +0 -203
- package/node_modules/ajv/dist/compile/validate/dataType.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/defaults.d.ts +0 -2
- package/node_modules/ajv/dist/compile/validate/defaults.js +0 -35
- package/node_modules/ajv/dist/compile/validate/defaults.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/index.d.ts +0 -42
- package/node_modules/ajv/dist/compile/validate/index.js +0 -520
- package/node_modules/ajv/dist/compile/validate/index.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/keyword.d.ts +0 -8
- package/node_modules/ajv/dist/compile/validate/keyword.js +0 -124
- package/node_modules/ajv/dist/compile/validate/keyword.js.map +0 -1
- package/node_modules/ajv/dist/compile/validate/subschema.d.ts +0 -47
- package/node_modules/ajv/dist/compile/validate/subschema.js +0 -81
- package/node_modules/ajv/dist/compile/validate/subschema.js.map +0 -1
- package/node_modules/ajv/dist/core.d.ts +0 -173
- package/node_modules/ajv/dist/core.js +0 -618
- package/node_modules/ajv/dist/core.js.map +0 -1
- package/node_modules/ajv/dist/jtd.d.ts +0 -47
- package/node_modules/ajv/dist/jtd.js +0 -72
- package/node_modules/ajv/dist/jtd.js.map +0 -1
- package/node_modules/ajv/dist/refs/data.json +0 -13
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +0 -2
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +0 -28
- package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +0 -1
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +0 -17
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +0 -57
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +0 -14
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +0 -39
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +0 -2
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +0 -1
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/node_modules/ajv/dist/refs/json-schema-draft-06.json +0 -137
- package/node_modules/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/node_modules/ajv/dist/refs/json-schema-secure.json +0 -88
- package/node_modules/ajv/dist/refs/jtd-schema.d.ts +0 -3
- package/node_modules/ajv/dist/refs/jtd-schema.js +0 -118
- package/node_modules/ajv/dist/refs/jtd-schema.js.map +0 -1
- package/node_modules/ajv/dist/runtime/equal.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/equal.js +0 -7
- package/node_modules/ajv/dist/runtime/equal.js.map +0 -1
- package/node_modules/ajv/dist/runtime/parseJson.d.ts +0 -18
- package/node_modules/ajv/dist/runtime/parseJson.js +0 -185
- package/node_modules/ajv/dist/runtime/parseJson.js.map +0 -1
- package/node_modules/ajv/dist/runtime/quote.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/quote.js +0 -30
- package/node_modules/ajv/dist/runtime/quote.js.map +0 -1
- package/node_modules/ajv/dist/runtime/re2.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/re2.js +0 -6
- package/node_modules/ajv/dist/runtime/re2.js.map +0 -1
- package/node_modules/ajv/dist/runtime/timestamp.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/timestamp.js +0 -42
- package/node_modules/ajv/dist/runtime/timestamp.js.map +0 -1
- package/node_modules/ajv/dist/runtime/ucs2length.d.ts +0 -5
- package/node_modules/ajv/dist/runtime/ucs2length.js +0 -24
- package/node_modules/ajv/dist/runtime/ucs2length.js.map +0 -1
- package/node_modules/ajv/dist/runtime/uri.d.ts +0 -6
- package/node_modules/ajv/dist/runtime/uri.js +0 -6
- package/node_modules/ajv/dist/runtime/uri.js.map +0 -1
- package/node_modules/ajv/dist/runtime/validation_error.d.ts +0 -7
- package/node_modules/ajv/dist/runtime/validation_error.js +0 -11
- package/node_modules/ajv/dist/runtime/validation_error.js.map +0 -1
- package/node_modules/ajv/dist/standalone/index.d.ts +0 -6
- package/node_modules/ajv/dist/standalone/index.js +0 -90
- package/node_modules/ajv/dist/standalone/index.js.map +0 -1
- package/node_modules/ajv/dist/standalone/instance.d.ts +0 -12
- package/node_modules/ajv/dist/standalone/instance.js +0 -35
- package/node_modules/ajv/dist/standalone/instance.js.map +0 -1
- package/node_modules/ajv/dist/types/index.d.ts +0 -183
- package/node_modules/ajv/dist/types/index.js +0 -3
- package/node_modules/ajv/dist/types/index.js.map +0 -1
- package/node_modules/ajv/dist/types/json-schema.d.ts +0 -125
- package/node_modules/ajv/dist/types/json-schema.js +0 -3
- package/node_modules/ajv/dist/types/json-schema.js.map +0 -1
- package/node_modules/ajv/dist/types/jtd-schema.d.ts +0 -174
- package/node_modules/ajv/dist/types/jtd-schema.js +0 -3
- package/node_modules/ajv/dist/types/jtd-schema.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -106
- package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +0 -7
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +0 -21
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/node_modules/ajv/dist/vocabularies/applicator/if.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +0 -13
- package/node_modules/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/node_modules/ajv/dist/vocabularies/applicator/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/node_modules/ajv/dist/vocabularies/applicator/items.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/node_modules/ajv/dist/vocabularies/applicator/not.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js +0 -54
- package/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/code.d.ts +0 -17
- package/node_modules/ajv/dist/vocabularies/code.js +0 -131
- package/node_modules/ajv/dist/vocabularies/code.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/id.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/core/id.js +0 -10
- package/node_modules/ajv/dist/vocabularies/core/id.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/core/index.js +0 -16
- package/node_modules/ajv/dist/vocabularies/core/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/core/ref.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/core/ref.js +0 -122
- package/node_modules/ajv/dist/vocabularies/core/ref.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js +0 -104
- package/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/draft2020.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/draft2020.js +0 -23
- package/node_modules/ajv/dist/vocabularies/draft2020.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/draft7.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/draft7.js +0 -17
- package/node_modules/ajv/dist/vocabularies/draft7.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/errors.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/errors.js +0 -3
- package/node_modules/ajv/dist/vocabularies/errors.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/format/format.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/format/format.js +0 -92
- package/node_modules/ajv/dist/vocabularies/format/format.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/format/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/format/index.js +0 -6
- package/node_modules/ajv/dist/vocabularies/format/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +0 -71
- package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js +0 -24
- package/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js +0 -43
- package/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/jtd/error.js +0 -20
- package/node_modules/ajv/dist/vocabularies/jtd/error.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/jtd/index.js +0 -29
- package/node_modules/ajv/dist/vocabularies/jtd/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +0 -25
- package/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +0 -22
- package/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +0 -15
- package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +0 -22
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js +0 -149
- package/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +0 -4
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js +0 -67
- package/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +0 -10
- package/node_modules/ajv/dist/vocabularies/jtd/type.js +0 -69
- package/node_modules/ajv/dist/vocabularies/jtd/type.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/jtd/union.js +0 -12
- package/node_modules/ajv/dist/vocabularies/jtd/union.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/jtd/values.js +0 -51
- package/node_modules/ajv/dist/vocabularies/jtd/values.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/metadata.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/metadata.js +0 -18
- package/node_modules/ajv/dist/vocabularies/metadata.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/next.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/next.js +0 -8
- package/node_modules/ajv/dist/vocabularies/next.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -65
- package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/const.d.ts +0 -6
- package/node_modules/ajv/dist/vocabularies/validation/const.js +0 -25
- package/node_modules/ajv/dist/vocabularies/validation/const.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +0 -5
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/node_modules/ajv/dist/vocabularies/validation/enum.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/index.d.ts +0 -16
- package/node_modules/ajv/dist/vocabularies/validation/index.js +0 -33
- package/node_modules/ajv/dist/vocabularies/validation/index.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +0 -11
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +0 -3
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/required.d.ts +0 -8
- package/node_modules/ajv/dist/vocabularies/validation/required.js +0 -79
- package/node_modules/ajv/dist/vocabularies/validation/required.js.map +0 -1
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +0 -9
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +0 -1
- package/node_modules/ajv/lib/2019.ts +0 -81
- package/node_modules/ajv/lib/2020.ts +0 -75
- package/node_modules/ajv/lib/ajv.ts +0 -70
- package/node_modules/ajv/lib/compile/codegen/code.ts +0 -169
- package/node_modules/ajv/lib/compile/codegen/index.ts +0 -852
- package/node_modules/ajv/lib/compile/codegen/scope.ts +0 -215
- package/node_modules/ajv/lib/compile/errors.ts +0 -184
- package/node_modules/ajv/lib/compile/index.ts +0 -324
- package/node_modules/ajv/lib/compile/jtd/parse.ts +0 -411
- package/node_modules/ajv/lib/compile/jtd/serialize.ts +0 -266
- package/node_modules/ajv/lib/compile/jtd/types.ts +0 -16
- package/node_modules/ajv/lib/compile/names.ts +0 -27
- package/node_modules/ajv/lib/compile/ref_error.ts +0 -13
- package/node_modules/ajv/lib/compile/resolve.ts +0 -149
- package/node_modules/ajv/lib/compile/rules.ts +0 -50
- package/node_modules/ajv/lib/compile/util.ts +0 -213
- package/node_modules/ajv/lib/compile/validate/applicability.ts +0 -22
- package/node_modules/ajv/lib/compile/validate/boolSchema.ts +0 -47
- package/node_modules/ajv/lib/compile/validate/dataType.ts +0 -230
- package/node_modules/ajv/lib/compile/validate/defaults.ts +0 -32
- package/node_modules/ajv/lib/compile/validate/index.ts +0 -582
- package/node_modules/ajv/lib/compile/validate/keyword.ts +0 -171
- package/node_modules/ajv/lib/compile/validate/subschema.ts +0 -135
- package/node_modules/ajv/lib/core.ts +0 -891
- package/node_modules/ajv/lib/jtd.ts +0 -132
- package/node_modules/ajv/lib/refs/data.json +0 -13
- package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +0 -28
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +0 -53
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +0 -17
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +0 -57
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +0 -14
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +0 -37
- package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +0 -90
- package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +0 -39
- package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +0 -30
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +0 -17
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +0 -51
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +0 -55
- package/node_modules/ajv/lib/refs/json-schema-draft-06.json +0 -137
- package/node_modules/ajv/lib/refs/json-schema-draft-07.json +0 -151
- package/node_modules/ajv/lib/refs/json-schema-secure.json +0 -88
- package/node_modules/ajv/lib/refs/jtd-schema.ts +0 -130
- package/node_modules/ajv/lib/runtime/equal.ts +0 -7
- package/node_modules/ajv/lib/runtime/parseJson.ts +0 -177
- package/node_modules/ajv/lib/runtime/quote.ts +0 -31
- package/node_modules/ajv/lib/runtime/re2.ts +0 -6
- package/node_modules/ajv/lib/runtime/timestamp.ts +0 -46
- package/node_modules/ajv/lib/runtime/ucs2length.ts +0 -20
- package/node_modules/ajv/lib/runtime/uri.ts +0 -6
- package/node_modules/ajv/lib/runtime/validation_error.ts +0 -13
- package/node_modules/ajv/lib/standalone/index.ts +0 -100
- package/node_modules/ajv/lib/standalone/instance.ts +0 -36
- package/node_modules/ajv/lib/types/index.ts +0 -244
- package/node_modules/ajv/lib/types/json-schema.ts +0 -187
- package/node_modules/ajv/lib/types/jtd-schema.ts +0 -273
- package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +0 -56
- package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +0 -118
- package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +0 -22
- package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +0 -14
- package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +0 -109
- package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +0 -112
- package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +0 -11
- package/node_modules/ajv/lib/vocabularies/applicator/if.ts +0 -80
- package/node_modules/ajv/lib/vocabularies/applicator/index.ts +0 -53
- package/node_modules/ajv/lib/vocabularies/applicator/items.ts +0 -59
- package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +0 -36
- package/node_modules/ajv/lib/vocabularies/applicator/not.ts +0 -38
- package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +0 -82
- package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +0 -91
- package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +0 -12
- package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +0 -57
- package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +0 -50
- package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +0 -13
- package/node_modules/ajv/lib/vocabularies/code.ts +0 -168
- package/node_modules/ajv/lib/vocabularies/core/id.ts +0 -10
- package/node_modules/ajv/lib/vocabularies/core/index.ts +0 -16
- package/node_modules/ajv/lib/vocabularies/core/ref.ts +0 -129
- package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +0 -113
- package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +0 -12
- package/node_modules/ajv/lib/vocabularies/draft2020.ts +0 -23
- package/node_modules/ajv/lib/vocabularies/draft7.ts +0 -17
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +0 -31
- package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +0 -51
- package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +0 -9
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +0 -14
- package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +0 -10
- package/node_modules/ajv/lib/vocabularies/errors.ts +0 -18
- package/node_modules/ajv/lib/vocabularies/format/format.ts +0 -120
- package/node_modules/ajv/lib/vocabularies/format/index.ts +0 -6
- package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +0 -89
- package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +0 -32
- package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +0 -45
- package/node_modules/ajv/lib/vocabularies/jtd/error.ts +0 -23
- package/node_modules/ajv/lib/vocabularies/jtd/index.ts +0 -37
- package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +0 -24
- package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +0 -21
- package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +0 -15
- package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +0 -184
- package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +0 -76
- package/node_modules/ajv/lib/vocabularies/jtd/type.ts +0 -75
- package/node_modules/ajv/lib/vocabularies/jtd/union.ts +0 -12
- package/node_modules/ajv/lib/vocabularies/jtd/values.ts +0 -58
- package/node_modules/ajv/lib/vocabularies/metadata.ts +0 -17
- package/node_modules/ajv/lib/vocabularies/next.ts +0 -8
- package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +0 -7
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +0 -47
- package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +0 -85
- package/node_modules/ajv/lib/vocabularies/validation/const.ts +0 -28
- package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +0 -23
- package/node_modules/ajv/lib/vocabularies/validation/enum.ts +0 -54
- package/node_modules/ajv/lib/vocabularies/validation/index.ts +0 -49
- package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +0 -16
- package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +0 -26
- package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +0 -30
- package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +0 -42
- package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +0 -26
- package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +0 -34
- package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +0 -28
- package/node_modules/ajv/lib/vocabularies/validation/required.ts +0 -98
- package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +0 -79
- package/node_modules/ajv/package.json +0 -126
- package/node_modules/fast-deep-equal/LICENSE +0 -21
- package/node_modules/fast-deep-equal/README.md +0 -96
- package/node_modules/fast-deep-equal/es6/index.d.ts +0 -2
- package/node_modules/fast-deep-equal/es6/index.js +0 -72
- package/node_modules/fast-deep-equal/es6/react.d.ts +0 -2
- package/node_modules/fast-deep-equal/es6/react.js +0 -79
- package/node_modules/fast-deep-equal/index.d.ts +0 -4
- package/node_modules/fast-deep-equal/index.js +0 -46
- package/node_modules/fast-deep-equal/package.json +0 -61
- package/node_modules/fast-deep-equal/react.d.ts +0 -2
- package/node_modules/fast-deep-equal/react.js +0 -53
- package/node_modules/fast-uri/.gitattributes +0 -2
- package/node_modules/fast-uri/.github/.stale.yml +0 -21
- package/node_modules/fast-uri/.github/dependabot.yml +0 -13
- package/node_modules/fast-uri/.github/tests_checker.yml +0 -8
- package/node_modules/fast-uri/.github/workflows/ci.yml +0 -101
- package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +0 -24
- package/node_modules/fast-uri/LICENSE +0 -32
- package/node_modules/fast-uri/README.md +0 -143
- package/node_modules/fast-uri/benchmark/benchmark.mjs +0 -159
- package/node_modules/fast-uri/benchmark/equal.mjs +0 -51
- package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +0 -22
- package/node_modules/fast-uri/benchmark/package.json +0 -17
- package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +0 -24
- package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +0 -65
- package/node_modules/fast-uri/eslint.config.js +0 -6
- package/node_modules/fast-uri/index.js +0 -340
- package/node_modules/fast-uri/lib/schemes.js +0 -267
- package/node_modules/fast-uri/lib/utils.js +0 -336
- package/node_modules/fast-uri/package.json +0 -69
- package/node_modules/fast-uri/test/ajv.test.js +0 -43
- package/node_modules/fast-uri/test/equal.test.js +0 -108
- package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +0 -501
- package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +0 -120
- package/node_modules/fast-uri/test/parse.test.js +0 -318
- package/node_modules/fast-uri/test/resolve.test.js +0 -78
- package/node_modules/fast-uri/test/rfc-3986.test.js +0 -90
- package/node_modules/fast-uri/test/serialize.test.js +0 -151
- package/node_modules/fast-uri/test/uri-js-compatibility.test.js +0 -33
- package/node_modules/fast-uri/test/uri-js.test.js +0 -912
- package/node_modules/fast-uri/test/util.test.js +0 -38
- package/node_modules/fast-uri/tsconfig.json +0 -9
- package/node_modules/fast-uri/types/index.d.ts +0 -60
- package/node_modules/fast-uri/types/index.test-d.ts +0 -17
- package/node_modules/json-schema-traverse/.eslintrc.yml +0 -27
- package/node_modules/json-schema-traverse/.github/FUNDING.yml +0 -2
- package/node_modules/json-schema-traverse/.github/workflows/build.yml +0 -28
- package/node_modules/json-schema-traverse/.github/workflows/publish.yml +0 -27
- package/node_modules/json-schema-traverse/LICENSE +0 -21
- package/node_modules/json-schema-traverse/README.md +0 -95
- package/node_modules/json-schema-traverse/index.d.ts +0 -40
- package/node_modules/json-schema-traverse/index.js +0 -93
- package/node_modules/json-schema-traverse/package.json +0 -43
- package/node_modules/json-schema-traverse/spec/.eslintrc.yml +0 -6
- package/node_modules/json-schema-traverse/spec/fixtures/schema.js +0 -125
- package/node_modules/json-schema-traverse/spec/index.spec.js +0 -171
- package/node_modules/require-from-string/index.js +0 -34
- package/node_modules/require-from-string/license +0 -21
- package/node_modules/require-from-string/package.json +0 -28
- package/node_modules/require-from-string/readme.md +0 -56
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import type {AnySchemaObject} from "./types"
|
|
2
|
-
import AjvCore, {Options} from "./core"
|
|
3
|
-
|
|
4
|
-
import draft7Vocabularies from "./vocabularies/draft7"
|
|
5
|
-
import dynamicVocabulary from "./vocabularies/dynamic"
|
|
6
|
-
import nextVocabulary from "./vocabularies/next"
|
|
7
|
-
import unevaluatedVocabulary from "./vocabularies/unevaluated"
|
|
8
|
-
import discriminator from "./vocabularies/discriminator"
|
|
9
|
-
import addMetaSchema2019 from "./refs/json-schema-2019-09"
|
|
10
|
-
|
|
11
|
-
const META_SCHEMA_ID = "https://json-schema.org/draft/2019-09/schema"
|
|
12
|
-
|
|
13
|
-
export class Ajv2019 extends AjvCore {
|
|
14
|
-
constructor(opts: Options = {}) {
|
|
15
|
-
super({
|
|
16
|
-
...opts,
|
|
17
|
-
dynamicRef: true,
|
|
18
|
-
next: true,
|
|
19
|
-
unevaluated: true,
|
|
20
|
-
})
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
_addVocabularies(): void {
|
|
24
|
-
super._addVocabularies()
|
|
25
|
-
this.addVocabulary(dynamicVocabulary)
|
|
26
|
-
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
|
|
27
|
-
this.addVocabulary(nextVocabulary)
|
|
28
|
-
this.addVocabulary(unevaluatedVocabulary)
|
|
29
|
-
if (this.opts.discriminator) this.addKeyword(discriminator)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
_addDefaultMetaSchema(): void {
|
|
33
|
-
super._addDefaultMetaSchema()
|
|
34
|
-
const {$data, meta} = this.opts
|
|
35
|
-
if (!meta) return
|
|
36
|
-
addMetaSchema2019.call(this, $data)
|
|
37
|
-
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
defaultMeta(): string | AnySchemaObject | undefined {
|
|
41
|
-
return (this.opts.defaultMeta =
|
|
42
|
-
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
module.exports = exports = Ajv2019
|
|
47
|
-
module.exports.Ajv2019 = Ajv2019
|
|
48
|
-
Object.defineProperty(exports, "__esModule", {value: true})
|
|
49
|
-
|
|
50
|
-
export default Ajv2019
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
Format,
|
|
54
|
-
FormatDefinition,
|
|
55
|
-
AsyncFormatDefinition,
|
|
56
|
-
KeywordDefinition,
|
|
57
|
-
KeywordErrorDefinition,
|
|
58
|
-
CodeKeywordDefinition,
|
|
59
|
-
MacroKeywordDefinition,
|
|
60
|
-
FuncKeywordDefinition,
|
|
61
|
-
Vocabulary,
|
|
62
|
-
Schema,
|
|
63
|
-
SchemaObject,
|
|
64
|
-
AnySchemaObject,
|
|
65
|
-
AsyncSchema,
|
|
66
|
-
AnySchema,
|
|
67
|
-
ValidateFunction,
|
|
68
|
-
AsyncValidateFunction,
|
|
69
|
-
ErrorObject,
|
|
70
|
-
ErrorNoParams,
|
|
71
|
-
} from "./types"
|
|
72
|
-
|
|
73
|
-
export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core"
|
|
74
|
-
export {SchemaCxt, SchemaObjCxt} from "./compile"
|
|
75
|
-
export {KeywordCxt} from "./compile/validate"
|
|
76
|
-
export {DefinedError} from "./vocabularies/errors"
|
|
77
|
-
export {JSONType} from "./compile/rules"
|
|
78
|
-
export {JSONSchemaType} from "./types/json-schema"
|
|
79
|
-
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
|
|
80
|
-
export {default as ValidationError} from "./runtime/validation_error"
|
|
81
|
-
export {default as MissingRefError} from "./compile/ref_error"
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import type {AnySchemaObject} from "./types"
|
|
2
|
-
import AjvCore, {Options} from "./core"
|
|
3
|
-
|
|
4
|
-
import draft2020Vocabularies from "./vocabularies/draft2020"
|
|
5
|
-
import discriminator from "./vocabularies/discriminator"
|
|
6
|
-
import addMetaSchema2020 from "./refs/json-schema-2020-12"
|
|
7
|
-
|
|
8
|
-
const META_SCHEMA_ID = "https://json-schema.org/draft/2020-12/schema"
|
|
9
|
-
|
|
10
|
-
export class Ajv2020 extends AjvCore {
|
|
11
|
-
constructor(opts: Options = {}) {
|
|
12
|
-
super({
|
|
13
|
-
...opts,
|
|
14
|
-
dynamicRef: true,
|
|
15
|
-
next: true,
|
|
16
|
-
unevaluated: true,
|
|
17
|
-
})
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
_addVocabularies(): void {
|
|
21
|
-
super._addVocabularies()
|
|
22
|
-
draft2020Vocabularies.forEach((v) => this.addVocabulary(v))
|
|
23
|
-
if (this.opts.discriminator) this.addKeyword(discriminator)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
_addDefaultMetaSchema(): void {
|
|
27
|
-
super._addDefaultMetaSchema()
|
|
28
|
-
const {$data, meta} = this.opts
|
|
29
|
-
if (!meta) return
|
|
30
|
-
addMetaSchema2020.call(this, $data)
|
|
31
|
-
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
defaultMeta(): string | AnySchemaObject | undefined {
|
|
35
|
-
return (this.opts.defaultMeta =
|
|
36
|
-
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
module.exports = exports = Ajv2020
|
|
41
|
-
module.exports.Ajv2020 = Ajv2020
|
|
42
|
-
Object.defineProperty(exports, "__esModule", {value: true})
|
|
43
|
-
|
|
44
|
-
export default Ajv2020
|
|
45
|
-
|
|
46
|
-
export {
|
|
47
|
-
Format,
|
|
48
|
-
FormatDefinition,
|
|
49
|
-
AsyncFormatDefinition,
|
|
50
|
-
KeywordDefinition,
|
|
51
|
-
KeywordErrorDefinition,
|
|
52
|
-
CodeKeywordDefinition,
|
|
53
|
-
MacroKeywordDefinition,
|
|
54
|
-
FuncKeywordDefinition,
|
|
55
|
-
Vocabulary,
|
|
56
|
-
Schema,
|
|
57
|
-
SchemaObject,
|
|
58
|
-
AnySchemaObject,
|
|
59
|
-
AsyncSchema,
|
|
60
|
-
AnySchema,
|
|
61
|
-
ValidateFunction,
|
|
62
|
-
AsyncValidateFunction,
|
|
63
|
-
ErrorObject,
|
|
64
|
-
ErrorNoParams,
|
|
65
|
-
} from "./types"
|
|
66
|
-
|
|
67
|
-
export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core"
|
|
68
|
-
export {SchemaCxt, SchemaObjCxt} from "./compile"
|
|
69
|
-
export {KeywordCxt} from "./compile/validate"
|
|
70
|
-
export {DefinedError} from "./vocabularies/errors"
|
|
71
|
-
export {JSONType} from "./compile/rules"
|
|
72
|
-
export {JSONSchemaType} from "./types/json-schema"
|
|
73
|
-
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
|
|
74
|
-
export {default as ValidationError} from "./runtime/validation_error"
|
|
75
|
-
export {default as MissingRefError} from "./compile/ref_error"
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type {AnySchemaObject} from "./types"
|
|
2
|
-
import AjvCore from "./core"
|
|
3
|
-
import draft7Vocabularies from "./vocabularies/draft7"
|
|
4
|
-
import discriminator from "./vocabularies/discriminator"
|
|
5
|
-
import * as draft7MetaSchema from "./refs/json-schema-draft-07.json"
|
|
6
|
-
|
|
7
|
-
const META_SUPPORT_DATA = ["/properties"]
|
|
8
|
-
|
|
9
|
-
const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema"
|
|
10
|
-
|
|
11
|
-
export class Ajv extends AjvCore {
|
|
12
|
-
_addVocabularies(): void {
|
|
13
|
-
super._addVocabularies()
|
|
14
|
-
draft7Vocabularies.forEach((v) => this.addVocabulary(v))
|
|
15
|
-
if (this.opts.discriminator) this.addKeyword(discriminator)
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
_addDefaultMetaSchema(): void {
|
|
19
|
-
super._addDefaultMetaSchema()
|
|
20
|
-
if (!this.opts.meta) return
|
|
21
|
-
const metaSchema = this.opts.$data
|
|
22
|
-
? this.$dataMetaSchema(draft7MetaSchema, META_SUPPORT_DATA)
|
|
23
|
-
: draft7MetaSchema
|
|
24
|
-
this.addMetaSchema(metaSchema, META_SCHEMA_ID, false)
|
|
25
|
-
this.refs["http://json-schema.org/schema"] = META_SCHEMA_ID
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
defaultMeta(): string | AnySchemaObject | undefined {
|
|
29
|
-
return (this.opts.defaultMeta =
|
|
30
|
-
super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : undefined))
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
module.exports = exports = Ajv
|
|
35
|
-
module.exports.Ajv = Ajv
|
|
36
|
-
Object.defineProperty(exports, "__esModule", {value: true})
|
|
37
|
-
|
|
38
|
-
export default Ajv
|
|
39
|
-
|
|
40
|
-
export {
|
|
41
|
-
Format,
|
|
42
|
-
FormatDefinition,
|
|
43
|
-
AsyncFormatDefinition,
|
|
44
|
-
KeywordDefinition,
|
|
45
|
-
KeywordErrorDefinition,
|
|
46
|
-
CodeKeywordDefinition,
|
|
47
|
-
MacroKeywordDefinition,
|
|
48
|
-
FuncKeywordDefinition,
|
|
49
|
-
Vocabulary,
|
|
50
|
-
Schema,
|
|
51
|
-
SchemaObject,
|
|
52
|
-
AnySchemaObject,
|
|
53
|
-
AsyncSchema,
|
|
54
|
-
AnySchema,
|
|
55
|
-
ValidateFunction,
|
|
56
|
-
AsyncValidateFunction,
|
|
57
|
-
SchemaValidateFunction,
|
|
58
|
-
ErrorObject,
|
|
59
|
-
ErrorNoParams,
|
|
60
|
-
} from "./types"
|
|
61
|
-
|
|
62
|
-
export {Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions} from "./core"
|
|
63
|
-
export {SchemaCxt, SchemaObjCxt} from "./compile"
|
|
64
|
-
export {KeywordCxt} from "./compile/validate"
|
|
65
|
-
export {DefinedError} from "./vocabularies/errors"
|
|
66
|
-
export {JSONType} from "./compile/rules"
|
|
67
|
-
export {JSONSchemaType} from "./types/json-schema"
|
|
68
|
-
export {_, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions} from "./compile/codegen"
|
|
69
|
-
export {default as ValidationError} from "./runtime/validation_error"
|
|
70
|
-
export {default as MissingRefError} from "./compile/ref_error"
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
2
|
-
export abstract class _CodeOrName {
|
|
3
|
-
abstract readonly str: string
|
|
4
|
-
abstract readonly names: UsedNames
|
|
5
|
-
abstract toString(): string
|
|
6
|
-
abstract emptyStr(): boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export const IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i
|
|
10
|
-
|
|
11
|
-
export class Name extends _CodeOrName {
|
|
12
|
-
readonly str: string
|
|
13
|
-
constructor(s: string) {
|
|
14
|
-
super()
|
|
15
|
-
if (!IDENTIFIER.test(s)) throw new Error("CodeGen: name must be a valid identifier")
|
|
16
|
-
this.str = s
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
toString(): string {
|
|
20
|
-
return this.str
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
emptyStr(): boolean {
|
|
24
|
-
return false
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
get names(): UsedNames {
|
|
28
|
-
return {[this.str]: 1}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export class _Code extends _CodeOrName {
|
|
33
|
-
readonly _items: readonly CodeItem[]
|
|
34
|
-
private _str?: string
|
|
35
|
-
private _names?: UsedNames
|
|
36
|
-
|
|
37
|
-
constructor(code: string | readonly CodeItem[]) {
|
|
38
|
-
super()
|
|
39
|
-
this._items = typeof code === "string" ? [code] : code
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
toString(): string {
|
|
43
|
-
return this.str
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
emptyStr(): boolean {
|
|
47
|
-
if (this._items.length > 1) return false
|
|
48
|
-
const item = this._items[0]
|
|
49
|
-
return item === "" || item === '""'
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
get str(): string {
|
|
53
|
-
return (this._str ??= this._items.reduce((s: string, c: CodeItem) => `${s}${c}`, ""))
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
get names(): UsedNames {
|
|
57
|
-
return (this._names ??= this._items.reduce((names: UsedNames, c) => {
|
|
58
|
-
if (c instanceof Name) names[c.str] = (names[c.str] || 0) + 1
|
|
59
|
-
return names
|
|
60
|
-
}, {}))
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export type CodeItem = Name | string | number | boolean | null
|
|
65
|
-
|
|
66
|
-
export type UsedNames = Record<string, number | undefined>
|
|
67
|
-
|
|
68
|
-
export type Code = _Code | Name
|
|
69
|
-
|
|
70
|
-
export type SafeExpr = Code | number | boolean | null
|
|
71
|
-
|
|
72
|
-
export const nil = new _Code("")
|
|
73
|
-
|
|
74
|
-
type CodeArg = SafeExpr | string | undefined
|
|
75
|
-
|
|
76
|
-
export function _(strs: TemplateStringsArray, ...args: CodeArg[]): _Code {
|
|
77
|
-
const code: CodeItem[] = [strs[0]]
|
|
78
|
-
let i = 0
|
|
79
|
-
while (i < args.length) {
|
|
80
|
-
addCodeArg(code, args[i])
|
|
81
|
-
code.push(strs[++i])
|
|
82
|
-
}
|
|
83
|
-
return new _Code(code)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
const plus = new _Code("+")
|
|
87
|
-
|
|
88
|
-
export function str(strs: TemplateStringsArray, ...args: (CodeArg | string[])[]): _Code {
|
|
89
|
-
const expr: CodeItem[] = [safeStringify(strs[0])]
|
|
90
|
-
let i = 0
|
|
91
|
-
while (i < args.length) {
|
|
92
|
-
expr.push(plus)
|
|
93
|
-
addCodeArg(expr, args[i])
|
|
94
|
-
expr.push(plus, safeStringify(strs[++i]))
|
|
95
|
-
}
|
|
96
|
-
optimize(expr)
|
|
97
|
-
return new _Code(expr)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function addCodeArg(code: CodeItem[], arg: CodeArg | string[]): void {
|
|
101
|
-
if (arg instanceof _Code) code.push(...arg._items)
|
|
102
|
-
else if (arg instanceof Name) code.push(arg)
|
|
103
|
-
else code.push(interpolate(arg))
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function optimize(expr: CodeItem[]): void {
|
|
107
|
-
let i = 1
|
|
108
|
-
while (i < expr.length - 1) {
|
|
109
|
-
if (expr[i] === plus) {
|
|
110
|
-
const res = mergeExprItems(expr[i - 1], expr[i + 1])
|
|
111
|
-
if (res !== undefined) {
|
|
112
|
-
expr.splice(i - 1, 3, res)
|
|
113
|
-
continue
|
|
114
|
-
}
|
|
115
|
-
expr[i++] = "+"
|
|
116
|
-
}
|
|
117
|
-
i++
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function mergeExprItems(a: CodeItem, b: CodeItem): CodeItem | undefined {
|
|
122
|
-
if (b === '""') return a
|
|
123
|
-
if (a === '""') return b
|
|
124
|
-
if (typeof a == "string") {
|
|
125
|
-
if (b instanceof Name || a[a.length - 1] !== '"') return
|
|
126
|
-
if (typeof b != "string") return `${a.slice(0, -1)}${b}"`
|
|
127
|
-
if (b[0] === '"') return a.slice(0, -1) + b.slice(1)
|
|
128
|
-
return
|
|
129
|
-
}
|
|
130
|
-
if (typeof b == "string" && b[0] === '"' && !(a instanceof Name)) return `"${a}${b.slice(1)}`
|
|
131
|
-
return
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
export function strConcat(c1: Code, c2: Code): Code {
|
|
135
|
-
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// TODO do not allow arrays here
|
|
139
|
-
function interpolate(x?: string | string[] | number | boolean | null): SafeExpr | string {
|
|
140
|
-
return typeof x == "number" || typeof x == "boolean" || x === null
|
|
141
|
-
? x
|
|
142
|
-
: safeStringify(Array.isArray(x) ? x.join(",") : x)
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
export function stringify(x: unknown): Code {
|
|
146
|
-
return new _Code(safeStringify(x))
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export function safeStringify(x: unknown): string {
|
|
150
|
-
return JSON.stringify(x)
|
|
151
|
-
.replace(/\u2028/g, "\\u2028")
|
|
152
|
-
.replace(/\u2029/g, "\\u2029")
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export function getProperty(key: Code | string | number): Code {
|
|
156
|
-
return typeof key == "string" && IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
//Does best effort to format the name properly
|
|
160
|
-
export function getEsmExportName(key: Code | string | number): Code {
|
|
161
|
-
if (typeof key == "string" && IDENTIFIER.test(key)) {
|
|
162
|
-
return new _Code(`${key}`)
|
|
163
|
-
}
|
|
164
|
-
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`)
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export function regexpCode(rx: RegExp): Code {
|
|
168
|
-
return new _Code(rx.toString())
|
|
169
|
-
}
|