@kubb/agent 4.27.2 → 4.27.4
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/.output/nitro.json +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +64 -62
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +5 -5
- package/.output/server/index.mjs +5 -5
- package/.output/server/package.json +1 -10
- package/LICENSE +21 -0
- package/package.json +17 -17
- package/.output/server/node_modules/@redocly/ajv/dist/2020.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +0 -156
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +0 -697
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +0 -143
- package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +0 -123
- package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +0 -249
- package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +0 -155
- package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +0 -178
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +0 -203
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +0 -35
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +0 -534
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +0 -124
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +0 -81
- package/.output/server/node_modules/@redocly/ajv/dist/core.js +0 -632
- package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +0 -56
- package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -107
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +0 -132
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +0 -139
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +0 -92
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +0 -8
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +0 -25
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +0 -86
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/package.json +0 -130
- package/.output/server/node_modules/@redocly/config/lib/common.js +0 -90
- package/.output/server/node_modules/@redocly/config/lib/constants.js +0 -73
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -54
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -661
- package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
- package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
- package/.output/server/node_modules/@redocly/config/lib/index.js +0 -38
- package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -43
- package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
- package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
- package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -25
- package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -551
- package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -244
- package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
- package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
- package/.output/server/node_modules/@redocly/config/package.json +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -85
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -257
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -310
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -335
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -338
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -116
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
- package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -49
- package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
- package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
- package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -52
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -269
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -78
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -125
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -172
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -174
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -306
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -555
- package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -303
- package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
- package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
- package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
- package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
- package/.output/server/node_modules/ajv-formats/package.json +0 -74
- package/.output/server/node_modules/colorette/index.js +0 -82
- package/.output/server/node_modules/colorette/package.json +0 -39
- package/.output/server/node_modules/js-levenshtein/index.js +0 -105
- package/.output/server/node_modules/js-levenshtein/package.json +0 -49
- package/.output/server/node_modules/picomatch/index.js +0 -17
- package/.output/server/node_modules/picomatch/lib/constants.js +0 -180
- package/.output/server/node_modules/picomatch/lib/parse.js +0 -1085
- package/.output/server/node_modules/picomatch/lib/picomatch.js +0 -341
- package/.output/server/node_modules/picomatch/lib/scan.js +0 -391
- package/.output/server/node_modules/picomatch/lib/utils.js +0 -72
- package/.output/server/node_modules/picomatch/package.json +0 -83
- package/.output/server/node_modules/pluralize/package.json +0 -40
- package/.output/server/node_modules/pluralize/pluralize.js +0 -503
- package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
- package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
- package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
- package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
- package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
- package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
- package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
// https://mathiasbynens.be/notes/javascript-encoding
|
|
4
|
-
// https://github.com/bestiejs/punycode.js - punycode.ucs2.decode
|
|
5
|
-
function ucs2length(str) {
|
|
6
|
-
const len = str.length;
|
|
7
|
-
let length = 0;
|
|
8
|
-
let pos = 0;
|
|
9
|
-
let value;
|
|
10
|
-
while (pos < len) {
|
|
11
|
-
length++;
|
|
12
|
-
value = str.charCodeAt(pos++);
|
|
13
|
-
if (value >= 0xd800 && value <= 0xdbff && pos < len) {
|
|
14
|
-
// high surrogate, and there is a next character
|
|
15
|
-
value = str.charCodeAt(pos);
|
|
16
|
-
if ((value & 0xfc00) === 0xdc00)
|
|
17
|
-
pos++; // low surrogate
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
return length;
|
|
21
|
-
}
|
|
22
|
-
exports.default = ucs2length;
|
|
23
|
-
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
24
|
-
//# sourceMappingURL=ucs2length.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class ValidationError extends Error {
|
|
4
|
-
constructor(errors) {
|
|
5
|
-
super("validation failed");
|
|
6
|
-
this.errors = errors;
|
|
7
|
-
this.ajv = this.validation = true;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.default = ValidationError;
|
|
11
|
-
//# sourceMappingURL=validation_error.js.map
|
package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateAdditionalItems = void 0;
|
|
4
|
-
const codegen_1 = require("../../compile/codegen");
|
|
5
|
-
const util_1 = require("../../compile/util");
|
|
6
|
-
const error = {
|
|
7
|
-
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
8
|
-
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
9
|
-
};
|
|
10
|
-
const def = {
|
|
11
|
-
keyword: "additionalItems",
|
|
12
|
-
type: "array",
|
|
13
|
-
schemaType: ["boolean", "object"],
|
|
14
|
-
before: "uniqueItems",
|
|
15
|
-
error,
|
|
16
|
-
code(cxt) {
|
|
17
|
-
const { parentSchema, it } = cxt;
|
|
18
|
-
const { items } = parentSchema;
|
|
19
|
-
if (!Array.isArray(items)) {
|
|
20
|
-
(0, util_1.checkStrictMode)(it, '"additionalItems" is ignored when "items" is not an array of schemas');
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
validateAdditionalItems(cxt, items);
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
function validateAdditionalItems(cxt, items) {
|
|
27
|
-
const { gen, schema, data, keyword, it } = cxt;
|
|
28
|
-
it.items = true;
|
|
29
|
-
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
|
|
30
|
-
if (schema === false) {
|
|
31
|
-
cxt.setParams({ len: items.length });
|
|
32
|
-
cxt.pass((0, codegen_1._) `${len} <= ${items.length}`);
|
|
33
|
-
}
|
|
34
|
-
else if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
35
|
-
const valid = gen.var("valid", (0, codegen_1._) `${len} <= ${items.length}`); // TODO var
|
|
36
|
-
gen.if((0, codegen_1.not)(valid), () => validateItems(valid));
|
|
37
|
-
cxt.ok(valid);
|
|
38
|
-
}
|
|
39
|
-
function validateItems(valid) {
|
|
40
|
-
gen.forRange("i", items.length, len, (i) => {
|
|
41
|
-
cxt.subschema({ keyword, dataProp: i, dataPropType: util_1.Type.Num }, valid);
|
|
42
|
-
if (!it.allErrors)
|
|
43
|
-
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
exports.validateAdditionalItems = validateAdditionalItems;
|
|
48
|
-
exports.default = def;
|
|
49
|
-
//# sourceMappingURL=additionalItems.js.map
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const code_1 = require("../code");
|
|
4
|
-
const codegen_1 = require("../../compile/codegen");
|
|
5
|
-
const names_1 = require("../../compile/names");
|
|
6
|
-
const util_1 = require("../../compile/util");
|
|
7
|
-
const error = {
|
|
8
|
-
message: "must NOT have additional properties",
|
|
9
|
-
params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,
|
|
10
|
-
};
|
|
11
|
-
const def = {
|
|
12
|
-
keyword: "additionalProperties",
|
|
13
|
-
type: ["object"],
|
|
14
|
-
schemaType: ["boolean", "object"],
|
|
15
|
-
allowUndefined: true,
|
|
16
|
-
trackErrors: true,
|
|
17
|
-
error,
|
|
18
|
-
code(cxt) {
|
|
19
|
-
const { gen, parentSchema, data, errsCount, it } = cxt;
|
|
20
|
-
const { schema = it.opts.defaultAdditionalProperties } = cxt;
|
|
21
|
-
/* istanbul ignore if */
|
|
22
|
-
if (!errsCount)
|
|
23
|
-
throw new Error("ajv implementation error");
|
|
24
|
-
const { allErrors, opts } = it;
|
|
25
|
-
it.props = true;
|
|
26
|
-
if (opts.removeAdditional !== "all" && (0, util_1.alwaysValidSchema)(it, schema))
|
|
27
|
-
return;
|
|
28
|
-
const props = (0, code_1.allSchemaProperties)(parentSchema.properties);
|
|
29
|
-
const patProps = (0, code_1.allSchemaProperties)(parentSchema.patternProperties);
|
|
30
|
-
checkAdditionalProperties();
|
|
31
|
-
cxt.ok((0, codegen_1._) `${errsCount} === ${names_1.default.errors}`);
|
|
32
|
-
function checkAdditionalProperties() {
|
|
33
|
-
gen.forIn("key", data, (key) => {
|
|
34
|
-
if (!props.length && !patProps.length)
|
|
35
|
-
additionalPropertyCode(key);
|
|
36
|
-
else
|
|
37
|
-
gen.if(isAdditional(key), () => additionalPropertyCode(key));
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
function isAdditional(key) {
|
|
41
|
-
let definedProp;
|
|
42
|
-
if (props.length > 8) {
|
|
43
|
-
// TODO maybe an option instead of hard-coded 8?
|
|
44
|
-
const propsSchema = (0, util_1.schemaRefOrVal)(it, parentSchema.properties, "properties");
|
|
45
|
-
definedProp = (0, code_1.isOwnProperty)(gen, propsSchema, key);
|
|
46
|
-
}
|
|
47
|
-
else if (props.length) {
|
|
48
|
-
definedProp = (0, codegen_1.or)(...props.map((p) => (0, codegen_1._) `${key} === ${p}`));
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
definedProp = codegen_1.nil;
|
|
52
|
-
}
|
|
53
|
-
if (patProps.length) {
|
|
54
|
-
definedProp = (0, codegen_1.or)(definedProp, ...patProps.map((p) => (0, codegen_1._) `${(0, code_1.usePattern)(cxt, p)}.test(${key})`));
|
|
55
|
-
}
|
|
56
|
-
return (0, codegen_1.not)(definedProp);
|
|
57
|
-
}
|
|
58
|
-
function deleteAdditional(key) {
|
|
59
|
-
gen.code((0, codegen_1._) `delete ${data}[${key}]`);
|
|
60
|
-
}
|
|
61
|
-
function additionalPropertyCode(key) {
|
|
62
|
-
if (opts.removeAdditional === "all" || (opts.removeAdditional && schema === false)) {
|
|
63
|
-
deleteAdditional(key);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
if (schema === false) {
|
|
67
|
-
cxt.setParams({ additionalProperty: key });
|
|
68
|
-
cxt.error();
|
|
69
|
-
if (!allErrors)
|
|
70
|
-
gen.break();
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
if (typeof schema == "object" && !(0, util_1.alwaysValidSchema)(it, schema)) {
|
|
74
|
-
const valid = gen.name("valid");
|
|
75
|
-
if (opts.removeAdditional === "failing") {
|
|
76
|
-
applyAdditionalSchema(key, valid, false);
|
|
77
|
-
gen.if((0, codegen_1.not)(valid), () => {
|
|
78
|
-
cxt.reset();
|
|
79
|
-
deleteAdditional(key);
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
else {
|
|
83
|
-
applyAdditionalSchema(key, valid);
|
|
84
|
-
if (!allErrors)
|
|
85
|
-
gen.if((0, codegen_1.not)(valid), () => gen.break());
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
function applyAdditionalSchema(key, valid, errors) {
|
|
90
|
-
const subschema = {
|
|
91
|
-
keyword: "additionalProperties",
|
|
92
|
-
dataProp: key,
|
|
93
|
-
dataPropType: util_1.Type.Str,
|
|
94
|
-
};
|
|
95
|
-
if (errors === false) {
|
|
96
|
-
Object.assign(subschema, {
|
|
97
|
-
compositeRule: true,
|
|
98
|
-
createErrors: false,
|
|
99
|
-
allErrors: false,
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
cxt.subschema(subschema, valid);
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
};
|
|
106
|
-
exports.default = def;
|
|
107
|
-
//# sourceMappingURL=additionalProperties.js.map
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../../compile/util");
|
|
4
|
-
const def = {
|
|
5
|
-
keyword: "allOf",
|
|
6
|
-
schemaType: "array",
|
|
7
|
-
code(cxt) {
|
|
8
|
-
const { gen, schema, it } = cxt;
|
|
9
|
-
/* istanbul ignore if */
|
|
10
|
-
if (!Array.isArray(schema))
|
|
11
|
-
throw new Error("ajv implementation error");
|
|
12
|
-
const valid = gen.name("valid");
|
|
13
|
-
schema.forEach((sch, i) => {
|
|
14
|
-
if ((0, util_1.alwaysValidSchema)(it, sch))
|
|
15
|
-
return;
|
|
16
|
-
const schCxt = cxt.subschema({ keyword: "allOf", schemaProp: i }, valid, true);
|
|
17
|
-
cxt.ok(valid);
|
|
18
|
-
cxt.mergeEvaluated(schCxt);
|
|
19
|
-
});
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
exports.default = def;
|
|
23
|
-
//# sourceMappingURL=allOf.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const code_1 = require("../code");
|
|
4
|
-
const def = {
|
|
5
|
-
keyword: "anyOf",
|
|
6
|
-
schemaType: "array",
|
|
7
|
-
trackErrors: true,
|
|
8
|
-
code: code_1.validateUnion,
|
|
9
|
-
error: { message: "must match a schema in anyOf" },
|
|
10
|
-
};
|
|
11
|
-
exports.default = def;
|
|
12
|
-
//# sourceMappingURL=anyOf.js.map
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const codegen_1 = require("../../compile/codegen");
|
|
4
|
-
const util_1 = require("../../compile/util");
|
|
5
|
-
const error = {
|
|
6
|
-
message: ({ params: { min, max } }) => max === undefined
|
|
7
|
-
? (0, codegen_1.str) `must contain at least ${min} valid item(s)`
|
|
8
|
-
: (0, codegen_1.str) `must contain at least ${min} and no more than ${max} valid item(s)`,
|
|
9
|
-
params: ({ params: { min, max } }) => max === undefined ? (0, codegen_1._) `{minContains: ${min}}` : (0, codegen_1._) `{minContains: ${min}, maxContains: ${max}}`,
|
|
10
|
-
};
|
|
11
|
-
const def = {
|
|
12
|
-
keyword: "contains",
|
|
13
|
-
type: "array",
|
|
14
|
-
schemaType: ["object", "boolean"],
|
|
15
|
-
before: "uniqueItems",
|
|
16
|
-
trackErrors: true,
|
|
17
|
-
error,
|
|
18
|
-
code(cxt) {
|
|
19
|
-
const { gen, schema, parentSchema, data, it } = cxt;
|
|
20
|
-
let min;
|
|
21
|
-
let max;
|
|
22
|
-
const { minContains, maxContains } = parentSchema;
|
|
23
|
-
if (it.opts.next) {
|
|
24
|
-
min = minContains === undefined ? 1 : minContains;
|
|
25
|
-
max = maxContains;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
min = 1;
|
|
29
|
-
}
|
|
30
|
-
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
|
|
31
|
-
cxt.setParams({ min, max });
|
|
32
|
-
if (max === undefined && min === 0) {
|
|
33
|
-
(0, util_1.checkStrictMode)(it, `"minContains" == 0 without "maxContains": "contains" keyword ignored`);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
if (max !== undefined && min > max) {
|
|
37
|
-
(0, util_1.checkStrictMode)(it, `"minContains" > "maxContains" is always invalid`);
|
|
38
|
-
cxt.fail();
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
if ((0, util_1.alwaysValidSchema)(it, schema)) {
|
|
42
|
-
let cond = (0, codegen_1._) `${len} >= ${min}`;
|
|
43
|
-
if (max !== undefined)
|
|
44
|
-
cond = (0, codegen_1._) `${cond} && ${len} <= ${max}`;
|
|
45
|
-
cxt.pass(cond);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
it.items = true;
|
|
49
|
-
const valid = gen.name("valid");
|
|
50
|
-
if (max === undefined && min === 1) {
|
|
51
|
-
validateItems(valid, () => gen.if(valid, () => gen.break()));
|
|
52
|
-
}
|
|
53
|
-
else if (min === 0) {
|
|
54
|
-
gen.let(valid, true);
|
|
55
|
-
if (max !== undefined)
|
|
56
|
-
gen.if((0, codegen_1._) `${data}.length > 0`, validateItemsWithCount);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
gen.let(valid, false);
|
|
60
|
-
validateItemsWithCount();
|
|
61
|
-
}
|
|
62
|
-
cxt.result(valid, () => cxt.reset());
|
|
63
|
-
function validateItemsWithCount() {
|
|
64
|
-
const schValid = gen.name("_valid");
|
|
65
|
-
const count = gen.let("count", 0);
|
|
66
|
-
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count)));
|
|
67
|
-
}
|
|
68
|
-
function validateItems(_valid, block) {
|
|
69
|
-
gen.forRange("i", 0, len, (i) => {
|
|
70
|
-
cxt.subschema({
|
|
71
|
-
keyword: "contains",
|
|
72
|
-
dataProp: i,
|
|
73
|
-
dataPropType: util_1.Type.Num,
|
|
74
|
-
compositeRule: true,
|
|
75
|
-
}, _valid);
|
|
76
|
-
block();
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
function checkLimits(count) {
|
|
80
|
-
gen.code((0, codegen_1._) `${count}++`);
|
|
81
|
-
if (max === undefined) {
|
|
82
|
-
gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true).break());
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
gen.if((0, codegen_1._) `${count} > ${max}`, () => gen.assign(valid, false).break());
|
|
86
|
-
if (min === 1)
|
|
87
|
-
gen.assign(valid, true);
|
|
88
|
-
else
|
|
89
|
-
gen.if((0, codegen_1._) `${count} >= ${min}`, () => gen.assign(valid, true));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
exports.default = def;
|
|
95
|
-
//# sourceMappingURL=contains.js.map
|
package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
4
|
-
const codegen_1 = require("../../compile/codegen");
|
|
5
|
-
const util_1 = require("../../compile/util");
|
|
6
|
-
const code_1 = require("../code");
|
|
7
|
-
exports.error = {
|
|
8
|
-
message: ({ params: { property, depsCount, deps } }) => {
|
|
9
|
-
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
10
|
-
return (0, codegen_1.str) `must have ${property_ies} ${deps} when property ${property} is present`;
|
|
11
|
-
},
|
|
12
|
-
params: ({ params: { property, depsCount, deps, missingProperty } }) => (0, codegen_1._) `{property: ${property},
|
|
13
|
-
missingProperty: ${missingProperty},
|
|
14
|
-
depsCount: ${depsCount},
|
|
15
|
-
deps: ${deps}}`, // TODO change to reference
|
|
16
|
-
};
|
|
17
|
-
const def = {
|
|
18
|
-
keyword: "dependencies",
|
|
19
|
-
type: "object",
|
|
20
|
-
schemaType: "object",
|
|
21
|
-
error: exports.error,
|
|
22
|
-
code(cxt) {
|
|
23
|
-
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
24
|
-
validatePropertyDeps(cxt, propDeps);
|
|
25
|
-
validateSchemaDeps(cxt, schDeps);
|
|
26
|
-
},
|
|
27
|
-
};
|
|
28
|
-
function splitDependencies({ schema }) {
|
|
29
|
-
const propertyDeps = {};
|
|
30
|
-
const schemaDeps = {};
|
|
31
|
-
for (const key in schema) {
|
|
32
|
-
if (key === "__proto__")
|
|
33
|
-
continue;
|
|
34
|
-
const deps = Array.isArray(schema[key]) ? propertyDeps : schemaDeps;
|
|
35
|
-
deps[key] = schema[key];
|
|
36
|
-
}
|
|
37
|
-
return [propertyDeps, schemaDeps];
|
|
38
|
-
}
|
|
39
|
-
function validatePropertyDeps(cxt, propertyDeps = cxt.schema) {
|
|
40
|
-
const { gen, data, it } = cxt;
|
|
41
|
-
if (Object.keys(propertyDeps).length === 0)
|
|
42
|
-
return;
|
|
43
|
-
const missing = gen.let("missing");
|
|
44
|
-
for (const prop in propertyDeps) {
|
|
45
|
-
const deps = propertyDeps[prop];
|
|
46
|
-
if (deps.length === 0)
|
|
47
|
-
continue;
|
|
48
|
-
const hasProperty = (0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties);
|
|
49
|
-
cxt.setParams({
|
|
50
|
-
property: prop,
|
|
51
|
-
depsCount: deps.length,
|
|
52
|
-
deps: deps.join(", "),
|
|
53
|
-
});
|
|
54
|
-
if (it.allErrors) {
|
|
55
|
-
gen.if(hasProperty, () => {
|
|
56
|
-
for (const depProp of deps) {
|
|
57
|
-
(0, code_1.checkReportMissingProp)(cxt, depProp);
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
gen.if((0, codegen_1._) `${hasProperty} && (${(0, code_1.checkMissingProp)(cxt, deps, missing)})`);
|
|
63
|
-
(0, code_1.reportMissingProp)(cxt, missing);
|
|
64
|
-
gen.else();
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
exports.validatePropertyDeps = validatePropertyDeps;
|
|
69
|
-
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
70
|
-
const { gen, data, keyword, it } = cxt;
|
|
71
|
-
const valid = gen.name("valid");
|
|
72
|
-
for (const prop in schemaDeps) {
|
|
73
|
-
if ((0, util_1.alwaysValidSchema)(it, schemaDeps[prop]))
|
|
74
|
-
continue;
|
|
75
|
-
gen.if((0, code_1.propertyInData)(gen, data, prop, it.opts.ownProperties), () => {
|
|
76
|
-
const schCxt = cxt.subschema({ keyword, schemaProp: prop }, valid);
|
|
77
|
-
cxt.mergeValidEvaluated(schCxt, valid);
|
|
78
|
-
}, () => gen.var(valid, true) // TODO var
|
|
79
|
-
);
|
|
80
|
-
cxt.ok(valid);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
exports.validateSchemaDeps = validateSchemaDeps;
|
|
84
|
-
exports.default = def;
|
|
85
|
-
//# sourceMappingURL=dependencies.js.map
|
package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const dependencies_1 = require("./dependencies");
|
|
4
|
-
const def = {
|
|
5
|
-
keyword: "dependentSchemas",
|
|
6
|
-
type: "object",
|
|
7
|
-
schemaType: "object",
|
|
8
|
-
code: (cxt) => (0, dependencies_1.validateSchemaDeps)(cxt),
|
|
9
|
-
};
|
|
10
|
-
exports.default = def;
|
|
11
|
-
//# sourceMappingURL=dependentSchemas.js.map
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const codegen_1 = require("../../compile/codegen");
|
|
4
|
-
const util_1 = require("../../compile/util");
|
|
5
|
-
const error = {
|
|
6
|
-
message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`,
|
|
7
|
-
params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,
|
|
8
|
-
};
|
|
9
|
-
const def = {
|
|
10
|
-
keyword: "if",
|
|
11
|
-
schemaType: ["object", "boolean"],
|
|
12
|
-
trackErrors: true,
|
|
13
|
-
error,
|
|
14
|
-
code(cxt) {
|
|
15
|
-
const { gen, parentSchema, it } = cxt;
|
|
16
|
-
if (parentSchema.then === undefined && parentSchema.else === undefined) {
|
|
17
|
-
(0, util_1.checkStrictMode)(it, '"if" without "then" and "else" is ignored');
|
|
18
|
-
}
|
|
19
|
-
const hasThen = hasSchema(it, "then");
|
|
20
|
-
const hasElse = hasSchema(it, "else");
|
|
21
|
-
if (!hasThen && !hasElse)
|
|
22
|
-
return;
|
|
23
|
-
const valid = gen.let("valid", true);
|
|
24
|
-
const schValid = gen.name("_valid");
|
|
25
|
-
validateIf();
|
|
26
|
-
cxt.reset();
|
|
27
|
-
if (hasThen && hasElse) {
|
|
28
|
-
const ifClause = gen.let("ifClause");
|
|
29
|
-
cxt.setParams({ ifClause });
|
|
30
|
-
gen.if(schValid, validateClause("then", ifClause), validateClause("else", ifClause));
|
|
31
|
-
}
|
|
32
|
-
else if (hasThen) {
|
|
33
|
-
gen.if(schValid, validateClause("then"));
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
gen.if((0, codegen_1.not)(schValid), validateClause("else"));
|
|
37
|
-
}
|
|
38
|
-
cxt.pass(valid, () => cxt.error(true));
|
|
39
|
-
function validateIf() {
|
|
40
|
-
const schCxt = cxt.subschema({
|
|
41
|
-
keyword: "if",
|
|
42
|
-
compositeRule: true,
|
|
43
|
-
createErrors: false,
|
|
44
|
-
allErrors: false,
|
|
45
|
-
}, schValid);
|
|
46
|
-
cxt.mergeEvaluated(schCxt);
|
|
47
|
-
}
|
|
48
|
-
function validateClause(keyword, ifClause) {
|
|
49
|
-
return () => {
|
|
50
|
-
const schCxt = cxt.subschema({ keyword }, schValid);
|
|
51
|
-
gen.assign(valid, schValid);
|
|
52
|
-
cxt.mergeValidEvaluated(schCxt, valid);
|
|
53
|
-
if (ifClause)
|
|
54
|
-
gen.assign(ifClause, (0, codegen_1._) `${keyword}`);
|
|
55
|
-
else
|
|
56
|
-
cxt.setParams({ ifClause: keyword });
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
function hasSchema(it, keyword) {
|
|
62
|
-
const schema = it.schema[keyword];
|
|
63
|
-
return schema !== undefined && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
64
|
-
}
|
|
65
|
-
exports.default = def;
|
|
66
|
-
//# sourceMappingURL=if.js.map
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const additionalItems_1 = require("./additionalItems");
|
|
4
|
-
const prefixItems_1 = require("./prefixItems");
|
|
5
|
-
const items_1 = require("./items");
|
|
6
|
-
const items2020_1 = require("./items2020");
|
|
7
|
-
const contains_1 = require("./contains");
|
|
8
|
-
const dependencies_1 = require("./dependencies");
|
|
9
|
-
const propertyNames_1 = require("./propertyNames");
|
|
10
|
-
const additionalProperties_1 = require("./additionalProperties");
|
|
11
|
-
const properties_1 = require("./properties");
|
|
12
|
-
const patternProperties_1 = require("./patternProperties");
|
|
13
|
-
const not_1 = require("./not");
|
|
14
|
-
const anyOf_1 = require("./anyOf");
|
|
15
|
-
const oneOf_1 = require("./oneOf");
|
|
16
|
-
const allOf_1 = require("./allOf");
|
|
17
|
-
const if_1 = require("./if");
|
|
18
|
-
const thenElse_1 = require("./thenElse");
|
|
19
|
-
function getApplicator(draft2020 = false) {
|
|
20
|
-
const applicator = [
|
|
21
|
-
// any
|
|
22
|
-
not_1.default,
|
|
23
|
-
anyOf_1.default,
|
|
24
|
-
oneOf_1.default,
|
|
25
|
-
allOf_1.default,
|
|
26
|
-
if_1.default,
|
|
27
|
-
thenElse_1.default,
|
|
28
|
-
// object
|
|
29
|
-
propertyNames_1.default,
|
|
30
|
-
additionalProperties_1.default,
|
|
31
|
-
dependencies_1.default,
|
|
32
|
-
properties_1.default,
|
|
33
|
-
patternProperties_1.default,
|
|
34
|
-
];
|
|
35
|
-
// array
|
|
36
|
-
if (draft2020)
|
|
37
|
-
applicator.push(prefixItems_1.default, items2020_1.default);
|
|
38
|
-
else
|
|
39
|
-
applicator.push(additionalItems_1.default, items_1.default);
|
|
40
|
-
applicator.push(contains_1.default);
|
|
41
|
-
return applicator;
|
|
42
|
-
}
|
|
43
|
-
exports.default = getApplicator;
|
|
44
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateTuple = void 0;
|
|
4
|
-
const codegen_1 = require("../../compile/codegen");
|
|
5
|
-
const util_1 = require("../../compile/util");
|
|
6
|
-
const code_1 = require("../code");
|
|
7
|
-
const def = {
|
|
8
|
-
keyword: "items",
|
|
9
|
-
type: "array",
|
|
10
|
-
schemaType: ["object", "array", "boolean"],
|
|
11
|
-
before: "uniqueItems",
|
|
12
|
-
code(cxt) {
|
|
13
|
-
const { schema, it } = cxt;
|
|
14
|
-
if (Array.isArray(schema))
|
|
15
|
-
return validateTuple(cxt, "additionalItems", schema);
|
|
16
|
-
it.items = true;
|
|
17
|
-
if ((0, util_1.alwaysValidSchema)(it, schema))
|
|
18
|
-
return;
|
|
19
|
-
cxt.ok((0, code_1.validateArray)(cxt));
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
function validateTuple(cxt, extraItems, schArr = cxt.schema) {
|
|
23
|
-
const { gen, parentSchema, data, keyword, it } = cxt;
|
|
24
|
-
checkStrictTuple(parentSchema);
|
|
25
|
-
if (it.opts.unevaluated && schArr.length && it.items !== true) {
|
|
26
|
-
it.items = util_1.mergeEvaluated.items(gen, schArr.length, it.items);
|
|
27
|
-
}
|
|
28
|
-
const valid = gen.name("valid");
|
|
29
|
-
const len = gen.const("len", (0, codegen_1._) `${data}.length`);
|
|
30
|
-
schArr.forEach((sch, i) => {
|
|
31
|
-
if ((0, util_1.alwaysValidSchema)(it, sch))
|
|
32
|
-
return;
|
|
33
|
-
gen.if((0, codegen_1._) `${len} > ${i}`, () => cxt.subschema({
|
|
34
|
-
keyword,
|
|
35
|
-
schemaProp: i,
|
|
36
|
-
dataProp: i,
|
|
37
|
-
}, valid));
|
|
38
|
-
cxt.ok(valid);
|
|
39
|
-
});
|
|
40
|
-
function checkStrictTuple(sch) {
|
|
41
|
-
const { opts, errSchemaPath } = it;
|
|
42
|
-
const l = schArr.length;
|
|
43
|
-
const fullTuple = l === sch.minItems && (l === sch.maxItems || sch[extraItems] === false);
|
|
44
|
-
if (opts.strictTuples && !fullTuple) {
|
|
45
|
-
const msg = `"${keyword}" is ${l}-tuple, but minItems or maxItems/${extraItems} are not specified or different at path "${errSchemaPath}"`;
|
|
46
|
-
(0, util_1.checkStrictMode)(it, msg, opts.strictTuples);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
exports.validateTuple = validateTuple;
|
|
51
|
-
exports.default = def;
|
|
52
|
-
//# sourceMappingURL=items.js.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const codegen_1 = require("../../compile/codegen");
|
|
4
|
-
const util_1 = require("../../compile/util");
|
|
5
|
-
const code_1 = require("../code");
|
|
6
|
-
const additionalItems_1 = require("./additionalItems");
|
|
7
|
-
const error = {
|
|
8
|
-
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
9
|
-
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
10
|
-
};
|
|
11
|
-
const def = {
|
|
12
|
-
keyword: "items",
|
|
13
|
-
type: "array",
|
|
14
|
-
schemaType: ["object", "boolean"],
|
|
15
|
-
before: "uniqueItems",
|
|
16
|
-
error,
|
|
17
|
-
code(cxt) {
|
|
18
|
-
const { schema, parentSchema, it } = cxt;
|
|
19
|
-
const { prefixItems } = parentSchema;
|
|
20
|
-
it.items = true;
|
|
21
|
-
if ((0, util_1.alwaysValidSchema)(it, schema))
|
|
22
|
-
return;
|
|
23
|
-
if (prefixItems)
|
|
24
|
-
(0, additionalItems_1.validateAdditionalItems)(cxt, prefixItems);
|
|
25
|
-
else
|
|
26
|
-
cxt.ok((0, code_1.validateArray)(cxt));
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
exports.default = def;
|
|
30
|
-
//# sourceMappingURL=items2020.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const util_1 = require("../../compile/util");
|
|
4
|
-
const def = {
|
|
5
|
-
keyword: "not",
|
|
6
|
-
schemaType: ["object", "boolean"],
|
|
7
|
-
trackErrors: true,
|
|
8
|
-
code(cxt) {
|
|
9
|
-
const { gen, schema, it } = cxt;
|
|
10
|
-
if ((0, util_1.alwaysValidSchema)(it, schema)) {
|
|
11
|
-
cxt.fail();
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
const valid = gen.name("valid");
|
|
15
|
-
cxt.subschema({
|
|
16
|
-
keyword: "not",
|
|
17
|
-
compositeRule: true,
|
|
18
|
-
createErrors: false,
|
|
19
|
-
allErrors: false,
|
|
20
|
-
}, valid);
|
|
21
|
-
cxt.failResult(valid, () => cxt.reset(), () => cxt.error());
|
|
22
|
-
},
|
|
23
|
-
error: { message: "must NOT be valid" },
|
|
24
|
-
};
|
|
25
|
-
exports.default = def;
|
|
26
|
-
//# sourceMappingURL=not.js.map
|