@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,64 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../../type");
|
|
3
|
-
function resolveJavascriptRegExp(data) {
|
|
4
|
-
if (null === data) {
|
|
5
|
-
return false;
|
|
6
|
-
}
|
|
7
|
-
if (0 === data.length) {
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = '';
|
|
11
|
-
if ('/' === regexp[0]) {
|
|
12
|
-
if (tail) {
|
|
13
|
-
modifiers = tail[1];
|
|
14
|
-
}
|
|
15
|
-
if (modifiers.length > 3) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
if (regexp[regexp.length - modifiers.length - 1] !== '/') {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
|
|
22
|
-
}
|
|
23
|
-
try {
|
|
24
|
-
var dummy = new RegExp(regexp, modifiers);
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
catch (error) {
|
|
28
|
-
return false;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function constructJavascriptRegExp(data) {
|
|
32
|
-
var regexp = data, tail = /\/([gim]*)$/.exec(data), modifiers = '';
|
|
33
|
-
if ('/' === regexp[0]) {
|
|
34
|
-
if (tail) {
|
|
35
|
-
modifiers = tail[1];
|
|
36
|
-
}
|
|
37
|
-
regexp = regexp.slice(1, regexp.length - modifiers.length - 1);
|
|
38
|
-
}
|
|
39
|
-
return new RegExp(regexp, modifiers);
|
|
40
|
-
}
|
|
41
|
-
function representJavascriptRegExp(object) {
|
|
42
|
-
var result = '/' + object.source + '/';
|
|
43
|
-
if (object.global) {
|
|
44
|
-
result += 'g';
|
|
45
|
-
}
|
|
46
|
-
if (object.multiline) {
|
|
47
|
-
result += 'm';
|
|
48
|
-
}
|
|
49
|
-
if (object.ignoreCase) {
|
|
50
|
-
result += 'i';
|
|
51
|
-
}
|
|
52
|
-
return result;
|
|
53
|
-
}
|
|
54
|
-
function isRegExp(object) {
|
|
55
|
-
return '[object RegExp]' === Object.prototype.toString.call(object);
|
|
56
|
-
}
|
|
57
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:js/regexp', {
|
|
58
|
-
kind: 'scalar',
|
|
59
|
-
resolve: resolveJavascriptRegExp,
|
|
60
|
-
construct: constructJavascriptRegExp,
|
|
61
|
-
predicate: isRegExp,
|
|
62
|
-
represent: representJavascriptRegExp
|
|
63
|
-
});
|
|
64
|
-
//# sourceMappingURL=regexp.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../../type");
|
|
3
|
-
function resolveJavascriptUndefined() {
|
|
4
|
-
return true;
|
|
5
|
-
}
|
|
6
|
-
function constructJavascriptUndefined() {
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
function representJavascriptUndefined() {
|
|
10
|
-
return '';
|
|
11
|
-
}
|
|
12
|
-
function isUndefined(object) {
|
|
13
|
-
return 'undefined' === typeof object;
|
|
14
|
-
}
|
|
15
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:js/undefined', {
|
|
16
|
-
kind: 'scalar',
|
|
17
|
-
resolve: resolveJavascriptUndefined,
|
|
18
|
-
construct: constructJavascriptUndefined,
|
|
19
|
-
predicate: isUndefined,
|
|
20
|
-
represent: representJavascriptUndefined
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=undefined.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
function resolveYamlMerge(data) {
|
|
4
|
-
return '<<' === data || null === data;
|
|
5
|
-
}
|
|
6
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:merge', {
|
|
7
|
-
kind: 'scalar',
|
|
8
|
-
resolve: resolveYamlMerge
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=merge.js.map
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
function resolveYamlNull(data) {
|
|
4
|
-
if (null === data) {
|
|
5
|
-
return true;
|
|
6
|
-
}
|
|
7
|
-
var max = data.length;
|
|
8
|
-
return (max === 1 && data === '~') ||
|
|
9
|
-
(max === 4 && (data === 'null' || data === 'Null' || data === 'NULL'));
|
|
10
|
-
}
|
|
11
|
-
function constructYamlNull() {
|
|
12
|
-
return null;
|
|
13
|
-
}
|
|
14
|
-
function isNull(object) {
|
|
15
|
-
return null === object;
|
|
16
|
-
}
|
|
17
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:null', {
|
|
18
|
-
kind: 'scalar',
|
|
19
|
-
resolve: resolveYamlNull,
|
|
20
|
-
construct: constructYamlNull,
|
|
21
|
-
predicate: isNull,
|
|
22
|
-
represent: {
|
|
23
|
-
canonical: function () { return '~'; },
|
|
24
|
-
lowercase: function () { return 'null'; },
|
|
25
|
-
uppercase: function () { return 'NULL'; },
|
|
26
|
-
camelcase: function () { return 'Null'; }
|
|
27
|
-
},
|
|
28
|
-
defaultStyle: 'lowercase'
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=null.js.map
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
4
|
-
var _toString = Object.prototype.toString;
|
|
5
|
-
function resolveYamlOmap(data) {
|
|
6
|
-
if (null === data) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
|
|
10
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
11
|
-
pair = object[index];
|
|
12
|
-
pairHasKey = false;
|
|
13
|
-
if ('[object Object]' !== _toString.call(pair)) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
for (pairKey in pair) {
|
|
17
|
-
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
18
|
-
if (!pairHasKey) {
|
|
19
|
-
pairHasKey = true;
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (!pairHasKey) {
|
|
27
|
-
return false;
|
|
28
|
-
}
|
|
29
|
-
if (-1 === objectKeys.indexOf(pairKey)) {
|
|
30
|
-
objectKeys.push(pairKey);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
return false;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
return true;
|
|
37
|
-
}
|
|
38
|
-
function constructYamlOmap(data) {
|
|
39
|
-
return null !== data ? data : [];
|
|
40
|
-
}
|
|
41
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:omap', {
|
|
42
|
-
kind: 'sequence',
|
|
43
|
-
resolve: resolveYamlOmap,
|
|
44
|
-
construct: constructYamlOmap
|
|
45
|
-
});
|
|
46
|
-
//# sourceMappingURL=omap.js.map
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
var ast = require("../yamlAST");
|
|
4
|
-
var _toString = Object.prototype.toString;
|
|
5
|
-
function resolveYamlPairs(data) {
|
|
6
|
-
if (null === data) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
if (data.kind != ast.Kind.SEQ) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
var index, length, pair, keys, result, object = data.items;
|
|
13
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
14
|
-
pair = object[index];
|
|
15
|
-
if ('[object Object]' !== _toString.call(pair)) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
if (!Array.isArray(pair.mappings)) {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
if (1 !== pair.mappings.length) {
|
|
22
|
-
return false;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
function constructYamlPairs(data) {
|
|
28
|
-
if (null === data || !Array.isArray(data.items)) {
|
|
29
|
-
return [];
|
|
30
|
-
}
|
|
31
|
-
var index, length, keys, result, object = data.items;
|
|
32
|
-
result = ast.newItems();
|
|
33
|
-
result.parent = data.parent;
|
|
34
|
-
result.startPosition = data.startPosition;
|
|
35
|
-
result.endPosition = data.endPosition;
|
|
36
|
-
for (index = 0, length = object.length; index < length; index += 1) {
|
|
37
|
-
var pair = object[index];
|
|
38
|
-
var mapping = pair.mappings[0];
|
|
39
|
-
var pairSeq = ast.newItems();
|
|
40
|
-
pairSeq.parent = result;
|
|
41
|
-
pairSeq.startPosition = mapping.key.startPosition;
|
|
42
|
-
pairSeq.endPosition = mapping.value.startPosition;
|
|
43
|
-
mapping.key.parent = pairSeq;
|
|
44
|
-
mapping.value.parent = pairSeq;
|
|
45
|
-
pairSeq.items = [mapping.key, mapping.value];
|
|
46
|
-
result.items.push(pairSeq);
|
|
47
|
-
}
|
|
48
|
-
return result;
|
|
49
|
-
}
|
|
50
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:pairs', {
|
|
51
|
-
kind: 'sequence',
|
|
52
|
-
resolve: resolveYamlPairs,
|
|
53
|
-
construct: constructYamlPairs
|
|
54
|
-
});
|
|
55
|
-
//# sourceMappingURL=pairs.js.map
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
var ast = require("../yamlAST");
|
|
4
|
-
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
5
|
-
function resolveYamlSet(data) {
|
|
6
|
-
if (null === data) {
|
|
7
|
-
return true;
|
|
8
|
-
}
|
|
9
|
-
if (data.kind != ast.Kind.MAP) {
|
|
10
|
-
return false;
|
|
11
|
-
}
|
|
12
|
-
return true;
|
|
13
|
-
}
|
|
14
|
-
function constructYamlSet(data) {
|
|
15
|
-
return null !== data ? data : {};
|
|
16
|
-
}
|
|
17
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:set', {
|
|
18
|
-
kind: 'mapping',
|
|
19
|
-
resolve: resolveYamlSet,
|
|
20
|
-
construct: constructYamlSet
|
|
21
|
-
});
|
|
22
|
-
//# sourceMappingURL=set.js.map
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
var type_1 = require("../type");
|
|
3
|
-
var YAML_TIMESTAMP_REGEXP = new RegExp('^([0-9][0-9][0-9][0-9])' +
|
|
4
|
-
'-([0-9][0-9]?)' +
|
|
5
|
-
'-([0-9][0-9]?)' +
|
|
6
|
-
'(?:(?:[Tt]|[ \\t]+)' +
|
|
7
|
-
'([0-9][0-9]?)' +
|
|
8
|
-
':([0-9][0-9])' +
|
|
9
|
-
':([0-9][0-9])' +
|
|
10
|
-
'(?:\\.([0-9]*))?' +
|
|
11
|
-
'(?:[ \\t]*(Z|([-+])([0-9][0-9]?)' +
|
|
12
|
-
'(?::([0-9][0-9]))?))?)?$');
|
|
13
|
-
function resolveYamlTimestamp(data) {
|
|
14
|
-
if (null === data) {
|
|
15
|
-
return false;
|
|
16
|
-
}
|
|
17
|
-
var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
18
|
-
match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
19
|
-
if (null === match) {
|
|
20
|
-
return false;
|
|
21
|
-
}
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
function constructYamlTimestamp(data) {
|
|
25
|
-
var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
26
|
-
match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
27
|
-
if (null === match) {
|
|
28
|
-
throw new Error('Date resolve error');
|
|
29
|
-
}
|
|
30
|
-
year = +(match[1]);
|
|
31
|
-
month = +(match[2]) - 1;
|
|
32
|
-
day = +(match[3]);
|
|
33
|
-
if (!match[4]) {
|
|
34
|
-
return new Date(Date.UTC(year, month, day));
|
|
35
|
-
}
|
|
36
|
-
hour = +(match[4]);
|
|
37
|
-
minute = +(match[5]);
|
|
38
|
-
second = +(match[6]);
|
|
39
|
-
if (match[7]) {
|
|
40
|
-
fraction = match[7].slice(0, 3);
|
|
41
|
-
while (fraction.length < 3) {
|
|
42
|
-
fraction = fraction + '0';
|
|
43
|
-
}
|
|
44
|
-
fraction = +fraction;
|
|
45
|
-
}
|
|
46
|
-
if (match[9]) {
|
|
47
|
-
tz_hour = +(match[10]);
|
|
48
|
-
tz_minute = +(match[11] || 0);
|
|
49
|
-
delta = (tz_hour * 60 + tz_minute) * 60000;
|
|
50
|
-
if ('-' === match[9]) {
|
|
51
|
-
delta = -delta;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
55
|
-
if (delta) {
|
|
56
|
-
date.setTime(date.getTime() - delta);
|
|
57
|
-
}
|
|
58
|
-
return date;
|
|
59
|
-
}
|
|
60
|
-
function representYamlTimestamp(object) {
|
|
61
|
-
return object.toISOString();
|
|
62
|
-
}
|
|
63
|
-
module.exports = new type_1.Type('tag:yaml.org,2002:timestamp', {
|
|
64
|
-
kind: 'scalar',
|
|
65
|
-
resolve: resolveYamlTimestamp,
|
|
66
|
-
construct: constructYamlTimestamp,
|
|
67
|
-
instanceOf: Date,
|
|
68
|
-
represent: representYamlTimestamp
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=timestamp.js.map
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var YAMLException = require("./exception");
|
|
4
|
-
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
5
|
-
'kind',
|
|
6
|
-
'resolve',
|
|
7
|
-
'construct',
|
|
8
|
-
'instanceOf',
|
|
9
|
-
'predicate',
|
|
10
|
-
'represent',
|
|
11
|
-
'defaultStyle',
|
|
12
|
-
'styleAliases'
|
|
13
|
-
];
|
|
14
|
-
var YAML_NODE_KINDS = [
|
|
15
|
-
'scalar',
|
|
16
|
-
'sequence',
|
|
17
|
-
'mapping'
|
|
18
|
-
];
|
|
19
|
-
function compileStyleAliases(map) {
|
|
20
|
-
var result = {};
|
|
21
|
-
if (null !== map) {
|
|
22
|
-
Object.keys(map).forEach(function (style) {
|
|
23
|
-
map[style].forEach(function (alias) {
|
|
24
|
-
result[String(alias)] = style;
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
return result;
|
|
29
|
-
}
|
|
30
|
-
var Type = (function () {
|
|
31
|
-
function Type(tag, options) {
|
|
32
|
-
options = options || {};
|
|
33
|
-
Object.keys(options).forEach(function (name) {
|
|
34
|
-
if (-1 === TYPE_CONSTRUCTOR_OPTIONS.indexOf(name)) {
|
|
35
|
-
throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
this.tag = tag;
|
|
39
|
-
this.kind = options['kind'] || null;
|
|
40
|
-
this.resolve = options['resolve'] || function () { return true; };
|
|
41
|
-
this.construct = options['construct'] || function (data) { return data; };
|
|
42
|
-
this.instanceOf = options['instanceOf'] || null;
|
|
43
|
-
this.predicate = options['predicate'] || null;
|
|
44
|
-
this.represent = options['represent'] || null;
|
|
45
|
-
this.defaultStyle = options['defaultStyle'] || null;
|
|
46
|
-
this.styleAliases = compileStyleAliases(options['styleAliases'] || null);
|
|
47
|
-
if (-1 === YAML_NODE_KINDS.indexOf(this.kind)) {
|
|
48
|
-
throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return Type;
|
|
52
|
-
}());
|
|
53
|
-
exports.Type = Type;
|
|
54
|
-
//# sourceMappingURL=type.js.map
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var Kind;
|
|
4
|
-
(function (Kind) {
|
|
5
|
-
Kind[Kind["SCALAR"] = 0] = "SCALAR";
|
|
6
|
-
Kind[Kind["MAPPING"] = 1] = "MAPPING";
|
|
7
|
-
Kind[Kind["MAP"] = 2] = "MAP";
|
|
8
|
-
Kind[Kind["SEQ"] = 3] = "SEQ";
|
|
9
|
-
Kind[Kind["ANCHOR_REF"] = 4] = "ANCHOR_REF";
|
|
10
|
-
Kind[Kind["INCLUDE_REF"] = 5] = "INCLUDE_REF";
|
|
11
|
-
})(Kind = exports.Kind || (exports.Kind = {}));
|
|
12
|
-
function newMapping(key, value) {
|
|
13
|
-
var end = (value ? value.endPosition : key.endPosition + 1);
|
|
14
|
-
var node = {
|
|
15
|
-
key: key,
|
|
16
|
-
value: value,
|
|
17
|
-
startPosition: key.startPosition,
|
|
18
|
-
endPosition: end,
|
|
19
|
-
kind: Kind.MAPPING,
|
|
20
|
-
parent: null,
|
|
21
|
-
errors: []
|
|
22
|
-
};
|
|
23
|
-
return node;
|
|
24
|
-
}
|
|
25
|
-
exports.newMapping = newMapping;
|
|
26
|
-
function newAnchorRef(key, start, end, value) {
|
|
27
|
-
return {
|
|
28
|
-
errors: [],
|
|
29
|
-
referencesAnchor: key,
|
|
30
|
-
value: value,
|
|
31
|
-
startPosition: start,
|
|
32
|
-
endPosition: end,
|
|
33
|
-
kind: Kind.ANCHOR_REF,
|
|
34
|
-
parent: null
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
exports.newAnchorRef = newAnchorRef;
|
|
38
|
-
function newScalar(v) {
|
|
39
|
-
if (v === void 0) { v = ""; }
|
|
40
|
-
var result = {
|
|
41
|
-
errors: [],
|
|
42
|
-
startPosition: -1,
|
|
43
|
-
endPosition: -1,
|
|
44
|
-
value: "" + v,
|
|
45
|
-
kind: Kind.SCALAR,
|
|
46
|
-
parent: null,
|
|
47
|
-
doubleQuoted: false,
|
|
48
|
-
rawValue: "" + v,
|
|
49
|
-
};
|
|
50
|
-
if (typeof v !== "string") {
|
|
51
|
-
result.valueObject = v;
|
|
52
|
-
}
|
|
53
|
-
return result;
|
|
54
|
-
}
|
|
55
|
-
exports.newScalar = newScalar;
|
|
56
|
-
function newItems() {
|
|
57
|
-
return {
|
|
58
|
-
errors: [],
|
|
59
|
-
startPosition: -1,
|
|
60
|
-
endPosition: -1,
|
|
61
|
-
items: [],
|
|
62
|
-
kind: Kind.SEQ,
|
|
63
|
-
parent: null
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
exports.newItems = newItems;
|
|
67
|
-
function newSeq() {
|
|
68
|
-
return newItems();
|
|
69
|
-
}
|
|
70
|
-
exports.newSeq = newSeq;
|
|
71
|
-
function newMap(mappings) {
|
|
72
|
-
return {
|
|
73
|
-
errors: [],
|
|
74
|
-
startPosition: -1,
|
|
75
|
-
endPosition: -1,
|
|
76
|
-
mappings: mappings ? mappings : [],
|
|
77
|
-
kind: Kind.MAP,
|
|
78
|
-
parent: null
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
exports.newMap = newMap;
|
|
82
|
-
//# sourceMappingURL=yamlAST.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "yaml-ast-parser",
|
|
3
|
-
"version": "0.0.43",
|
|
4
|
-
"main": "dist/src/index.js",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "rimraf dist && tsc",
|
|
7
|
-
"pullall": "dev-env-installer pullall",
|
|
8
|
-
"buildall": "dev-env-installer buildall",
|
|
9
|
-
"testall": "dev-env-installer testall",
|
|
10
|
-
"devInstall": "dev-env-installer install",
|
|
11
|
-
"test": "npm run build && mocha --ui tdd dist/test"
|
|
12
|
-
},
|
|
13
|
-
"dependencies": {},
|
|
14
|
-
"typings": "dist/src/index.d.ts",
|
|
15
|
-
"repository": {
|
|
16
|
-
"type": "git",
|
|
17
|
-
"url": "https://github.com/mulesoft-labs/yaml-ast-parser.git"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"raml",
|
|
21
|
-
"ast",
|
|
22
|
-
"yaml"
|
|
23
|
-
],
|
|
24
|
-
"homepage": "https://github.com/mulesoft-labs/yaml-ast-parser",
|
|
25
|
-
"license": "Apache-2.0",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/mulesoft-labs/yaml-ast-parser/issues"
|
|
28
|
-
},
|
|
29
|
-
"devDependencies": {
|
|
30
|
-
"@types/chai": "4.0.1",
|
|
31
|
-
"@types/mocha": "2.2.41",
|
|
32
|
-
"@types/node": "4.2.20",
|
|
33
|
-
"chai": "4.0.2",
|
|
34
|
-
"dev-env-installer": "0.0.14",
|
|
35
|
-
"mocha": "3.4.2",
|
|
36
|
-
"rimraf": "*",
|
|
37
|
-
"typescript": "3.0.1"
|
|
38
|
-
}
|
|
39
|
-
}
|