@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,190 @@
|
|
|
1
|
+
export const StatsOAS = (statsAccumulator) => {
|
|
2
|
+
return {
|
|
3
|
+
ExternalDocs: {
|
|
4
|
+
leave() {
|
|
5
|
+
statsAccumulator.externalDocs.total++;
|
|
6
|
+
},
|
|
7
|
+
},
|
|
8
|
+
ref: {
|
|
9
|
+
enter(ref) {
|
|
10
|
+
statsAccumulator.refs.items.add(ref['$ref']);
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
Tag: {
|
|
14
|
+
leave(tag) {
|
|
15
|
+
statsAccumulator.tags.items.add(tag.name);
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
Link: {
|
|
19
|
+
leave(link) {
|
|
20
|
+
statsAccumulator.links.items.add(link.operationId);
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
WebhooksMap: {
|
|
24
|
+
Operation: {
|
|
25
|
+
leave(operation) {
|
|
26
|
+
statsAccumulator.webhooks.total++;
|
|
27
|
+
if (operation.tags) {
|
|
28
|
+
for (const tag of operation.tags) {
|
|
29
|
+
statsAccumulator.tags.items.add(tag);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
Paths: {
|
|
36
|
+
PathItem: {
|
|
37
|
+
leave() {
|
|
38
|
+
statsAccumulator.pathItems.total++;
|
|
39
|
+
},
|
|
40
|
+
Operation: {
|
|
41
|
+
leave(operation) {
|
|
42
|
+
statsAccumulator.operations.total++;
|
|
43
|
+
if (operation.tags) {
|
|
44
|
+
for (const tag of operation.tags) {
|
|
45
|
+
statsAccumulator.tags.items.add(tag);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
Parameter: {
|
|
51
|
+
leave(parameter) {
|
|
52
|
+
statsAccumulator.parameters.items.add(parameter.name);
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
NamedSchemas: {
|
|
58
|
+
Schema: {
|
|
59
|
+
leave() {
|
|
60
|
+
statsAccumulator.schemas.total++;
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
Root: {
|
|
65
|
+
leave() {
|
|
66
|
+
statsAccumulator.parameters.total = statsAccumulator.parameters.items.size;
|
|
67
|
+
statsAccumulator.refs.total = statsAccumulator.refs.items.size;
|
|
68
|
+
statsAccumulator.links.total = statsAccumulator.links.items.size;
|
|
69
|
+
statsAccumulator.tags.total = statsAccumulator.tags.items.size;
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
export const StatsAsync2 = (statsAccumulator) => {
|
|
75
|
+
return {
|
|
76
|
+
ExternalDocs: {
|
|
77
|
+
leave() {
|
|
78
|
+
statsAccumulator.externalDocs.total++;
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
ref: {
|
|
82
|
+
enter(ref) {
|
|
83
|
+
statsAccumulator.refs.items.add(ref['$ref']);
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
Tag: {
|
|
87
|
+
leave(tag) {
|
|
88
|
+
statsAccumulator.tags.items.add(tag.name);
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
ChannelMap: {
|
|
92
|
+
Channel: {
|
|
93
|
+
leave() {
|
|
94
|
+
statsAccumulator.channels.total++;
|
|
95
|
+
},
|
|
96
|
+
Operation: {
|
|
97
|
+
leave(operation) {
|
|
98
|
+
statsAccumulator.operations.total++;
|
|
99
|
+
if (operation.tags) {
|
|
100
|
+
for (const tag of operation.tags) {
|
|
101
|
+
statsAccumulator.tags.items.add(tag);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
Parameter: {
|
|
107
|
+
leave(parameter) {
|
|
108
|
+
if (parameter.name) {
|
|
109
|
+
statsAccumulator.parameters.items.add(parameter.name);
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
NamedSchemas: {
|
|
116
|
+
Schema: {
|
|
117
|
+
leave() {
|
|
118
|
+
statsAccumulator.schemas.total++;
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
Root: {
|
|
123
|
+
leave() {
|
|
124
|
+
statsAccumulator.parameters.total = statsAccumulator.parameters.items.size;
|
|
125
|
+
statsAccumulator.refs.total = statsAccumulator.refs.items.size;
|
|
126
|
+
statsAccumulator.tags.total = statsAccumulator.tags.items.size;
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export const StatsAsync3 = (statsAccumulator) => {
|
|
132
|
+
return {
|
|
133
|
+
ExternalDocs: {
|
|
134
|
+
leave() {
|
|
135
|
+
statsAccumulator.externalDocs.total++;
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
ref: {
|
|
139
|
+
enter(ref) {
|
|
140
|
+
statsAccumulator.refs.items.add(ref['$ref']);
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
Tag: {
|
|
144
|
+
leave(tag) {
|
|
145
|
+
statsAccumulator.tags.items.add(tag.name);
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
NamedChannels: {
|
|
149
|
+
Channel: {
|
|
150
|
+
leave() {
|
|
151
|
+
statsAccumulator.channels.total++;
|
|
152
|
+
},
|
|
153
|
+
Parameter: {
|
|
154
|
+
leave(parameter) {
|
|
155
|
+
if (parameter.name) {
|
|
156
|
+
statsAccumulator.parameters.items.add(parameter.name);
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
NamedOperations: {
|
|
163
|
+
Operation: {
|
|
164
|
+
leave(operation) {
|
|
165
|
+
statsAccumulator.operations.total++;
|
|
166
|
+
if (operation.tags) {
|
|
167
|
+
for (const tag of operation.tags) {
|
|
168
|
+
statsAccumulator.tags.items.add(tag);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
NamedSchemas: {
|
|
175
|
+
Schema: {
|
|
176
|
+
leave() {
|
|
177
|
+
statsAccumulator.schemas.total++;
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
Root: {
|
|
182
|
+
leave() {
|
|
183
|
+
statsAccumulator.parameters.total = statsAccumulator.parameters.items.size;
|
|
184
|
+
statsAccumulator.refs.total = statsAccumulator.refs.items.size;
|
|
185
|
+
statsAccumulator.tags.total = statsAccumulator.tags.items.size;
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
//# sourceMappingURL=stats.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Assertions } from '../common/assertions/index.js';
|
|
2
|
+
import { InfoContact } from '../common/info-contact.js';
|
|
3
|
+
import { NoUnresolvedRefs } from '../common/no-unresolved-refs.js';
|
|
4
|
+
import { Struct } from '../common/struct.js';
|
|
5
|
+
export const rules = {
|
|
6
|
+
'info-contact': InfoContact,
|
|
7
|
+
struct: Struct,
|
|
8
|
+
'no-unresolved-refs': NoUnresolvedRefs,
|
|
9
|
+
assertions: Assertions,
|
|
10
|
+
};
|
|
11
|
+
export const preprocessors = {};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isPlainObject } from '../../utils/is-plain-object.js';
|
|
2
|
+
export const NoCriteriaXpath = () => {
|
|
3
|
+
return {
|
|
4
|
+
CriterionObject: {
|
|
5
|
+
enter(criteria, { report, location }) {
|
|
6
|
+
if (!criteria.type) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
if (criteria.type === 'xpath' ||
|
|
10
|
+
(isPlainObject(criteria.type) && criteria.type.type === 'xpath')) {
|
|
11
|
+
report({
|
|
12
|
+
message: 'The `xpath` type criteria is not supported by Respect.',
|
|
13
|
+
location: location.child(['type']),
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=no-criteria-xpath.js.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { getOwn } from '../../utils/get-own.js';
|
|
2
|
+
export const NoXSecurityBothSchemeAndSchemeName = () => {
|
|
3
|
+
function validate(extendedSecurity, { report, location }) {
|
|
4
|
+
if (!Array.isArray(extendedSecurity))
|
|
5
|
+
return;
|
|
6
|
+
for (const security of extendedSecurity) {
|
|
7
|
+
const hasScheme = getOwn(security, 'scheme');
|
|
8
|
+
const hasSchemeName = getOwn(security, 'schemeName');
|
|
9
|
+
if (hasScheme && hasSchemeName) {
|
|
10
|
+
report({
|
|
11
|
+
message: '`x-security` item must not contain both `scheme` and `schemeName`.',
|
|
12
|
+
location: location.child(['x-security', extendedSecurity.indexOf(security)]),
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return {
|
|
18
|
+
Workflow: {
|
|
19
|
+
enter(workflow, context) {
|
|
20
|
+
validate(workflow?.['x-security'], context);
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
Step: {
|
|
24
|
+
enter(step, context) {
|
|
25
|
+
validate(step?.['x-security'], context);
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=no-x-security-both-scheme-and-scheme-name.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const NoXSecuritySchemeNameWithoutOpenAPI = () => {
|
|
2
|
+
return {
|
|
3
|
+
Step: {
|
|
4
|
+
enter(step, { report, location }) {
|
|
5
|
+
const hasExtendedOperation = step?.['x-operation'];
|
|
6
|
+
if (!hasExtendedOperation) {
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
const extendedSecurity = step?.['x-security'];
|
|
10
|
+
if (!extendedSecurity) {
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
for (const security of extendedSecurity) {
|
|
14
|
+
if ('schemeName' in security) {
|
|
15
|
+
report({
|
|
16
|
+
message: 'The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.',
|
|
17
|
+
location: location.child(['x-security', extendedSecurity.indexOf(security)]),
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=no-x-security-scheme-name-without-openapi.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT } from '../../typings/arazzo.js';
|
|
2
|
+
import { pluralize } from '../../utils/pluralize.js';
|
|
3
|
+
export const RespectSupportedVersions = () => {
|
|
4
|
+
const supportedVersions = ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.join(', ');
|
|
5
|
+
return {
|
|
6
|
+
Root: {
|
|
7
|
+
enter(root, { report, location }) {
|
|
8
|
+
if (!ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.includes(root.arazzo)) {
|
|
9
|
+
report({
|
|
10
|
+
message: `Only ${supportedVersions} Arazzo ${pluralize('version is', ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT.length)} fully supported by Respect.`,
|
|
11
|
+
location: location.child('arazzo'),
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=respect-supported-versions.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const XSecuritySchemeNameReference = () => {
|
|
2
|
+
let sourceDescriptionsCount = 0;
|
|
3
|
+
return {
|
|
4
|
+
SourceDescriptions: {
|
|
5
|
+
enter(sourceDescriptions) {
|
|
6
|
+
sourceDescriptionsCount = Array.isArray(sourceDescriptions) ? sourceDescriptions.length : 0;
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
Workflow: {
|
|
10
|
+
leave(workflow, { report, location }) {
|
|
11
|
+
const extendedSecurity = workflow?.['x-security'];
|
|
12
|
+
if (!extendedSecurity || sourceDescriptionsCount <= 1) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
for (const security of extendedSecurity) {
|
|
16
|
+
if ('schemeName' in security) {
|
|
17
|
+
const schemeName = security.schemeName;
|
|
18
|
+
const isReference = typeof schemeName === 'string' && schemeName.startsWith('$sourceDescriptions.');
|
|
19
|
+
if (!isReference) {
|
|
20
|
+
report({
|
|
21
|
+
message: 'When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)',
|
|
22
|
+
location: location.child([
|
|
23
|
+
'x-security',
|
|
24
|
+
extendedSecurity.indexOf(security),
|
|
25
|
+
'schemeName',
|
|
26
|
+
]),
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=x-security-scheme-name-reference.js.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { logger } from '../../logger.js';
|
|
2
|
+
const REQUIRED_VALUES_BY_AUTH_TYPE = {
|
|
3
|
+
apiKey: ['apiKey'],
|
|
4
|
+
basic: ['username', 'password'],
|
|
5
|
+
digest: ['username', 'password'],
|
|
6
|
+
bearer: ['token'],
|
|
7
|
+
oauth2: ['accessToken'],
|
|
8
|
+
openIdConnect: ['accessToken'],
|
|
9
|
+
mutualTLS: [],
|
|
10
|
+
};
|
|
11
|
+
function validateSecuritySchemas(extendedSecurity, { report, location }) {
|
|
12
|
+
if (!extendedSecurity) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
for (const securitySchema of extendedSecurity) {
|
|
16
|
+
// TODO: Handle schemeName case, this will require bundled OpenAPI definitions
|
|
17
|
+
if ('schemeName' in securitySchema) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
const { scheme, values } = securitySchema;
|
|
21
|
+
// TODO: Struct rule does not check before this point, so we need to check it here. Investigate if we can move this check to the Struct rule.
|
|
22
|
+
const authType = scheme?.type === 'http' ? scheme.scheme : scheme?.type;
|
|
23
|
+
if (authType === 'mutualTLS') {
|
|
24
|
+
logger.warn('Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.');
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
const requiredValues = REQUIRED_VALUES_BY_AUTH_TYPE[authType];
|
|
28
|
+
if (requiredValues) {
|
|
29
|
+
for (const requiredValue of requiredValues) {
|
|
30
|
+
if (!values || !(requiredValue in values)) {
|
|
31
|
+
report({
|
|
32
|
+
message: `The \`${requiredValue}\` is required when using the ${authType} authentication security schema.`,
|
|
33
|
+
location: location.child(['x-security', extendedSecurity.indexOf(securitySchema)]),
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
report({
|
|
40
|
+
message: `The \`${authType}\` authentication security schema is not supported.`,
|
|
41
|
+
location: location.child(['x-security', extendedSecurity.indexOf(securitySchema)]),
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export const XSecuritySchemaRequiredValues = () => {
|
|
47
|
+
return {
|
|
48
|
+
Step: {
|
|
49
|
+
enter(step, context) {
|
|
50
|
+
validateSecuritySchemas(step?.['x-security'], context);
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
Workflow: {
|
|
54
|
+
enter(workflow, context) {
|
|
55
|
+
validateSecuritySchemas(workflow?.['x-security'], context);
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=x-security-scheme-required-values.js.map
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { default as levenshtein } from 'js-levenshtein';
|
|
2
|
+
import { Location } from '../ref-utils.js';
|
|
3
|
+
import { isPlainObject } from '../utils/is-plain-object.js';
|
|
4
|
+
import { validateJsonSchema } from './ajv.js';
|
|
5
|
+
export function oasTypeOf(value) {
|
|
6
|
+
if (Array.isArray(value)) {
|
|
7
|
+
return 'array';
|
|
8
|
+
}
|
|
9
|
+
else if (value === null) {
|
|
10
|
+
return 'null';
|
|
11
|
+
}
|
|
12
|
+
else if (Number.isInteger(value)) {
|
|
13
|
+
return 'integer';
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return typeof value;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Checks if value matches specified JSON schema type
|
|
21
|
+
*
|
|
22
|
+
* @param {*} value - value to check
|
|
23
|
+
* @param {JSONSchemaType} type - JSON Schema type
|
|
24
|
+
* @returns boolean
|
|
25
|
+
*/
|
|
26
|
+
export function matchesJsonSchemaType(value, type, nullable) {
|
|
27
|
+
if (nullable && value === null) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
switch (type) {
|
|
31
|
+
case 'array':
|
|
32
|
+
return Array.isArray(value);
|
|
33
|
+
case 'object':
|
|
34
|
+
return isPlainObject(value);
|
|
35
|
+
case 'null':
|
|
36
|
+
return value === null;
|
|
37
|
+
case 'integer':
|
|
38
|
+
return Number.isInteger(value);
|
|
39
|
+
default:
|
|
40
|
+
return typeof value === type;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
export function missingRequiredField(type, field) {
|
|
44
|
+
return `${type} object should contain \`${field}\` field.`;
|
|
45
|
+
}
|
|
46
|
+
export function missingRequiredOneOfFields(type, fields) {
|
|
47
|
+
return `${type} object should contain one of the fields: ${fields
|
|
48
|
+
.map((field) => `\`${field}\``)
|
|
49
|
+
.join(', ')}.`;
|
|
50
|
+
}
|
|
51
|
+
export function fieldNonEmpty(type, field) {
|
|
52
|
+
return `${type} object \`${field}\` must be non-empty string.`;
|
|
53
|
+
}
|
|
54
|
+
export function validateDefinedAndNonEmpty(fieldName, value, ctx) {
|
|
55
|
+
if (!isPlainObject(value)) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (value[fieldName] === undefined) {
|
|
59
|
+
ctx.report({
|
|
60
|
+
message: missingRequiredField(ctx.type.name, fieldName),
|
|
61
|
+
location: ctx.location.child([fieldName]).key(),
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
else if (!value[fieldName]) {
|
|
65
|
+
ctx.report({
|
|
66
|
+
message: fieldNonEmpty(ctx.type.name, fieldName),
|
|
67
|
+
location: ctx.location.child([fieldName]).key(),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export function validateOneOfDefinedAndNonEmpty(fieldNames, value, ctx) {
|
|
72
|
+
if (!isPlainObject(value)) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (!fieldNames.some((fieldName) => value.hasOwnProperty(fieldName))) {
|
|
76
|
+
ctx.report({
|
|
77
|
+
message: missingRequiredOneOfFields(ctx.type.name, fieldNames),
|
|
78
|
+
location: ctx.location.key(),
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
for (const fieldName of fieldNames) {
|
|
82
|
+
if (value.hasOwnProperty(fieldName) && !value[fieldName]) {
|
|
83
|
+
ctx.report({
|
|
84
|
+
message: fieldNonEmpty(ctx.type.name, fieldName),
|
|
85
|
+
location: ctx.location.child([fieldName]).key(),
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
export function getSuggest(given, variants) {
|
|
91
|
+
if (given === null)
|
|
92
|
+
return variants;
|
|
93
|
+
if (typeof given !== 'string' || !variants.length)
|
|
94
|
+
return [];
|
|
95
|
+
const distances = [];
|
|
96
|
+
for (let i = 0; i < variants.length; i++) {
|
|
97
|
+
const distance = levenshtein(given, variants[i]);
|
|
98
|
+
if (distance < 4) {
|
|
99
|
+
distances.push({ distance, variant: variants[i] });
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
distances.sort((a, b) => a.distance - b.distance);
|
|
103
|
+
// if (bestMatch.distance <= 4) return bestMatch.string;
|
|
104
|
+
return distances.map((d) => d.variant);
|
|
105
|
+
}
|
|
106
|
+
export function validateExample(example, schema, options) {
|
|
107
|
+
const { location, ctx, allowAdditionalProperties, ajvContext } = options;
|
|
108
|
+
const { resolve, location: parentLocation, report, specVersion } = ctx;
|
|
109
|
+
try {
|
|
110
|
+
const { valid, errors } = validateJsonSchema(example, schema, {
|
|
111
|
+
schemaLoc: parentLocation.child('schema'),
|
|
112
|
+
instancePath: location.pointer,
|
|
113
|
+
resolve,
|
|
114
|
+
allowAdditionalProperties,
|
|
115
|
+
ajvContext,
|
|
116
|
+
specVersion,
|
|
117
|
+
});
|
|
118
|
+
if (!valid) {
|
|
119
|
+
for (const error of errors) {
|
|
120
|
+
report({
|
|
121
|
+
message: `Example value must conform to the schema: ${error.message}.`,
|
|
122
|
+
location: {
|
|
123
|
+
...new Location(location.source, error.instancePath),
|
|
124
|
+
reportOnKey: error.keyword === 'unevaluatedProperties' || error.keyword === 'additionalProperties',
|
|
125
|
+
},
|
|
126
|
+
from: parentLocation,
|
|
127
|
+
suggest: error.suggest,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
catch (e) {
|
|
133
|
+
if (e.message === 'discriminator: requires oneOf or anyOf composite keyword') {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
report({
|
|
137
|
+
message: `Example validation errored: ${e.message}.`,
|
|
138
|
+
location: parentLocation.child('schema'),
|
|
139
|
+
from: parentLocation,
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export function validateSchemaEnumType(schemaEnum, propertyValue, propName, refLocation, { report, location }) {
|
|
144
|
+
if (!schemaEnum) {
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (!schemaEnum.includes(propertyValue)) {
|
|
148
|
+
report({
|
|
149
|
+
location,
|
|
150
|
+
message: `\`${propName}\` can be one of the following only: ${schemaEnum
|
|
151
|
+
.map((type) => `"${type}"`)
|
|
152
|
+
.join(', ')}.`,
|
|
153
|
+
from: refLocation,
|
|
154
|
+
suggest: getSuggest(propertyValue, schemaEnum),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
export function validateResponseCodes(responseCodes, codeRange, { report }) {
|
|
159
|
+
const responseCodeRegexp = new RegExp(`^${codeRange[0]}[0-9Xx]{2}$`);
|
|
160
|
+
const containsNeededCode = responseCodes.some((code) => (codeRange === '2XX' && code === 'default') || // It's OK to replace 2xx codes with the default
|
|
161
|
+
responseCodeRegexp.test(code));
|
|
162
|
+
if (!containsNeededCode) {
|
|
163
|
+
report({
|
|
164
|
+
message: `Operation must have at least one \`${codeRange}\` response.`,
|
|
165
|
+
location: { reportOnKey: true },
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
export function getTagName(tag, ignoreCase) {
|
|
170
|
+
return ignoreCase ? tag.name.toLowerCase() : tag.name;
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=utils.js.map
|