@kubb/agent 4.33.1 → 4.33.2
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 +18 -87
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
- package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
- package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
- package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
- package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
- package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
- package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
- package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
- package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
- package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
- package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
- package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
- package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
- package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
- package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
- package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
- package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
- package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
- package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
- package/.output/server/node_modules/@redocly/config/package.json +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
- package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/colorette/index.js +82 -0
- package/.output/server/node_modules/colorette/package.json +39 -0
- package/.output/server/node_modules/js-levenshtein/index.js +105 -0
- package/.output/server/node_modules/js-levenshtein/package.json +49 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
- package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
- package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
- package/.output/server/package.json +9 -1
- package/package.json +16 -16
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
- /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
|
@@ -0,0 +1,64 @@
|
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent-prod",
|
|
3
|
-
"version": "4.33.
|
|
3
|
+
"version": "4.33.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
@@ -23,12 +23,17 @@
|
|
|
23
23
|
"@readme/openapi-parser": "5.5.0",
|
|
24
24
|
"@readme/openapi-schemas": "3.1.0",
|
|
25
25
|
"@readme/postman-to-openapi": "4.1.0",
|
|
26
|
+
"@redocly/ajv": "8.18.0",
|
|
27
|
+
"@redocly/config": "0.44.0",
|
|
28
|
+
"@redocly/openapi-core": "2.20.4",
|
|
26
29
|
"ajv": "8.17.1",
|
|
27
30
|
"ajv-draft-04": "1.0.0",
|
|
31
|
+
"ajv-formats": "3.0.1",
|
|
28
32
|
"anymatch": "3.1.3",
|
|
29
33
|
"buffer-from": "1.1.2",
|
|
30
34
|
"call-me-maybe": "1.0.2",
|
|
31
35
|
"chokidar": "5.0.0",
|
|
36
|
+
"colorette": "1.4.0",
|
|
32
37
|
"compute-gcd": "1.2.1",
|
|
33
38
|
"compute-lcm": "1.1.2",
|
|
34
39
|
"consola": "3.4.2",
|
|
@@ -47,6 +52,7 @@
|
|
|
47
52
|
"iconv-lite": "0.6.3",
|
|
48
53
|
"is-promise": "2.2.2",
|
|
49
54
|
"jiti": "2.5.1",
|
|
55
|
+
"js-levenshtein": "1.1.6",
|
|
50
56
|
"js-tokens": "4.0.0",
|
|
51
57
|
"js-yaml": "4.1.1",
|
|
52
58
|
"json-schema-compare": "0.2.2",
|
|
@@ -73,6 +79,7 @@
|
|
|
73
79
|
"path-to-regexp": "8.3.0",
|
|
74
80
|
"picocolors": "1.1.1",
|
|
75
81
|
"picomatch": "2.3.1",
|
|
82
|
+
"pluralize": "8.0.0",
|
|
76
83
|
"react-devtools-core": "6.1.5",
|
|
77
84
|
"readdirp": "5.0.0",
|
|
78
85
|
"reftools": "1.1.9",
|
|
@@ -97,6 +104,7 @@
|
|
|
97
104
|
"validate.io-number": "1.0.3",
|
|
98
105
|
"ws": "8.19.0",
|
|
99
106
|
"yaml": "1.10.2",
|
|
107
|
+
"yaml-ast-parser": "0.0.43",
|
|
100
108
|
"yocto-queue": "1.2.2"
|
|
101
109
|
}
|
|
102
110
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/agent",
|
|
3
|
-
"version": "4.33.
|
|
3
|
+
"version": "4.33.2",
|
|
4
4
|
"description": "Agent server for Kubb, enabling HTTP-based access to code generation capabilities.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"tinyexec": "^1.0.2",
|
|
41
41
|
"unstorage": "^1.17.4",
|
|
42
42
|
"ws": "^8.19.0",
|
|
43
|
-
"@kubb/core": "4.33.
|
|
44
|
-
"@kubb/plugin-client": "4.33.
|
|
45
|
-
"@kubb/plugin-cypress": "4.33.
|
|
46
|
-
"@kubb/plugin-faker": "4.33.
|
|
47
|
-
"@kubb/plugin-mcp": "4.33.
|
|
48
|
-
"@kubb/plugin-msw": "4.33.
|
|
49
|
-
"@kubb/plugin-oas": "4.33.
|
|
50
|
-
"@kubb/plugin-react-query": "4.33.
|
|
51
|
-
"@kubb/plugin-redoc": "4.33.
|
|
52
|
-
"@kubb/plugin-solid-query": "4.33.
|
|
53
|
-
"@kubb/plugin-svelte-query": "4.33.
|
|
54
|
-
"@kubb/plugin-swr": "4.33.
|
|
55
|
-
"@kubb/plugin-ts": "4.33.
|
|
56
|
-
"@kubb/plugin-vue-query": "4.33.
|
|
57
|
-
"@kubb/plugin-zod": "4.33.
|
|
43
|
+
"@kubb/core": "4.33.2",
|
|
44
|
+
"@kubb/plugin-client": "4.33.2",
|
|
45
|
+
"@kubb/plugin-cypress": "4.33.2",
|
|
46
|
+
"@kubb/plugin-faker": "4.33.2",
|
|
47
|
+
"@kubb/plugin-mcp": "4.33.2",
|
|
48
|
+
"@kubb/plugin-msw": "4.33.2",
|
|
49
|
+
"@kubb/plugin-oas": "4.33.2",
|
|
50
|
+
"@kubb/plugin-react-query": "4.33.2",
|
|
51
|
+
"@kubb/plugin-redoc": "4.33.2",
|
|
52
|
+
"@kubb/plugin-solid-query": "4.33.2",
|
|
53
|
+
"@kubb/plugin-svelte-query": "4.33.2",
|
|
54
|
+
"@kubb/plugin-swr": "4.33.2",
|
|
55
|
+
"@kubb/plugin-ts": "4.33.2",
|
|
56
|
+
"@kubb/plugin-vue-query": "4.33.2",
|
|
57
|
+
"@kubb/plugin-zod": "4.33.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/ws": "^8.18.1",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|