@kubb/agent 4.27.2 → 4.28.0
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 +330 -194
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +10 -5
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/index.mjs +11 -6
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/anymatch/index.js +104 -0
- package/.output/server/node_modules/anymatch/package.json +48 -0
- package/.output/server/node_modules/chokidar/handler.js +632 -0
- package/.output/server/node_modules/chokidar/index.js +822 -0
- package/.output/server/node_modules/chokidar/package.json +63 -0
- package/.output/server/node_modules/normalize-path/index.js +35 -0
- package/.output/server/node_modules/normalize-path/package.json +77 -0
- package/.output/server/node_modules/picomatch/index.js +1 -15
- package/.output/server/node_modules/picomatch/lib/constants.js +5 -6
- package/.output/server/node_modules/picomatch/lib/parse.js +9 -3
- package/.output/server/node_modules/picomatch/lib/picomatch.js +4 -3
- package/.output/server/node_modules/picomatch/lib/utils.js +16 -24
- package/.output/server/node_modules/picomatch/package.json +5 -7
- package/.output/server/node_modules/readdirp/index.js +272 -0
- package/.output/server/node_modules/readdirp/package.json +66 -0
- package/.output/server/package.json +6 -10
- package/LICENSE +21 -0
- package/README.md +98 -42
- package/package.json +17 -24
- package/.output/server/node_modules/@redocly/ajv/dist/2020.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +0 -156
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +0 -697
- package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +0 -143
- package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +0 -123
- package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +0 -249
- package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +0 -155
- package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +0 -178
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +0 -50
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +0 -203
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +0 -35
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +0 -534
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +0 -124
- package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +0 -81
- package/.output/server/node_modules/@redocly/ajv/dist/core.js +0 -632
- package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +0 -56
- package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +0 -151
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -107
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +0 -95
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +0 -66
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +0 -44
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +0 -52
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +0 -55
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +0 -138
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +0 -132
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +0 -139
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +0 -23
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +0 -29
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +0 -17
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +0 -9
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +0 -92
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +0 -6
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +0 -8
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +0 -7
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +0 -25
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +0 -48
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +0 -37
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +0 -15
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +0 -24
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +0 -86
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
- package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +0 -20
- package/.output/server/node_modules/@redocly/ajv/package.json +0 -130
- package/.output/server/node_modules/@redocly/config/lib/common.js +0 -90
- package/.output/server/node_modules/@redocly/config/lib/constants.js +0 -73
- package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -54
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
- package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
- package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -661
- package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
- package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
- package/.output/server/node_modules/@redocly/config/lib/index.js +0 -38
- package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -43
- package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
- package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
- package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -25
- package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
- package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -551
- package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -244
- package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
- package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
- package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
- package/.output/server/node_modules/@redocly/config/package.json +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -85
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -257
- package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -310
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -335
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -338
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -289
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -88
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -116
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
- package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
- package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
- package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -49
- package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
- package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
- package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
- package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -52
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -269
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -78
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -125
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -129
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -74
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
- package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -172
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -174
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -306
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
- package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -555
- package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
- package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
- package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
- package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -303
- package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
- package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
- package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
- package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
- package/.output/server/node_modules/ajv-formats/package.json +0 -74
- package/.output/server/node_modules/colorette/index.js +0 -82
- package/.output/server/node_modules/colorette/package.json +0 -39
- package/.output/server/node_modules/js-levenshtein/index.js +0 -105
- package/.output/server/node_modules/js-levenshtein/package.json +0 -49
- package/.output/server/node_modules/pluralize/package.json +0 -40
- package/.output/server/node_modules/pluralize/pluralize.js +0 -503
- package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
- package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
- package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
- package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
- package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
- package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
- package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
- package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
- package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
- package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { isPlainObject } from '../../utils/is-plain-object.js';
|
|
2
|
-
const pathRegex = /\{([a-zA-Z0-9_.-]+)\}+/g;
|
|
3
|
-
const MAX_DEPTH = 2; // Only first callback level is supported
|
|
4
|
-
export const PathParamsDefined = () => {
|
|
5
|
-
const pathContext = { current: null };
|
|
6
|
-
const currentOperationParams = new Set();
|
|
7
|
-
return {
|
|
8
|
-
PathItem: {
|
|
9
|
-
enter(_, { key }) {
|
|
10
|
-
pathItemEnter(pathContext, key);
|
|
11
|
-
},
|
|
12
|
-
leave() {
|
|
13
|
-
pathItemLeave(pathContext);
|
|
14
|
-
},
|
|
15
|
-
Parameter(parameter, { report, location }) {
|
|
16
|
-
createPathItemParameterHandler(parameter, pathContext, report, location);
|
|
17
|
-
},
|
|
18
|
-
Operation: createOperationHandlers(pathContext, currentOperationParams),
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
const pathItemEnter = (pathContext, key) => {
|
|
23
|
-
pathContext.current = {
|
|
24
|
-
path: key,
|
|
25
|
-
templateParams: extractTemplateParams(key),
|
|
26
|
-
definedParams: new Set(),
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
const pathItemLeave = (pathContext) => {
|
|
30
|
-
pathContext.current = null;
|
|
31
|
-
};
|
|
32
|
-
const createPathItemParameterHandler = (parameter, pathContext, report, location) => {
|
|
33
|
-
if (parameter.in === 'path' && parameter.name && pathContext.current) {
|
|
34
|
-
pathContext.current.definedParams.add(parameter.name);
|
|
35
|
-
validatePathParameter(parameter.name, pathContext.current.templateParams, pathContext.current.path, report, location);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
const createOperationHandlers = (pathContext, currentOperationParams, depth = 0) => {
|
|
39
|
-
const reportMaxDepthWarning = (report, location, depth) => {
|
|
40
|
-
report({
|
|
41
|
-
message: `Maximum callback nesting depth (${depth}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,
|
|
42
|
-
location: location,
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
if (depth >= MAX_DEPTH) {
|
|
46
|
-
return {
|
|
47
|
-
enter: () => { },
|
|
48
|
-
leave: (_op, { report, location }) => {
|
|
49
|
-
reportMaxDepthWarning(report, location, depth);
|
|
50
|
-
},
|
|
51
|
-
Parameter: () => { },
|
|
52
|
-
Callback: undefined,
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
const createCallbackPathItem = () => {
|
|
56
|
-
let parentPathContext = null;
|
|
57
|
-
return {
|
|
58
|
-
enter(_, { key }) {
|
|
59
|
-
parentPathContext = pathContext.current;
|
|
60
|
-
pathItemEnter(pathContext, key);
|
|
61
|
-
},
|
|
62
|
-
leave() {
|
|
63
|
-
pathContext.current = parentPathContext;
|
|
64
|
-
},
|
|
65
|
-
Parameter(parameter, { report, location }) {
|
|
66
|
-
createPathItemParameterHandler(parameter, pathContext, report, location);
|
|
67
|
-
},
|
|
68
|
-
get Operation() {
|
|
69
|
-
return createOperationHandlers(pathContext, currentOperationParams, depth + 1);
|
|
70
|
-
},
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
return {
|
|
74
|
-
enter() {
|
|
75
|
-
currentOperationParams = new Set();
|
|
76
|
-
},
|
|
77
|
-
leave(_operation, { report, location }) {
|
|
78
|
-
if (!pathContext.current || !currentOperationParams)
|
|
79
|
-
return;
|
|
80
|
-
validateRequiredPathParams(pathContext.current.templateParams, currentOperationParams, pathContext.current.definedParams, pathContext.current.path, report, location);
|
|
81
|
-
},
|
|
82
|
-
Parameter(parameter, { report, location }) {
|
|
83
|
-
collectPathParamsFromOperation(parameter, currentOperationParams);
|
|
84
|
-
if (parameter.in === 'path' && parameter.name && pathContext.current) {
|
|
85
|
-
currentOperationParams.add(parameter.name);
|
|
86
|
-
validatePathParameter(parameter.name, pathContext.current.templateParams, pathContext.current.path, report, location);
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
Callback: {
|
|
90
|
-
get PathItem() {
|
|
91
|
-
return createCallbackPathItem();
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
};
|
|
95
|
-
};
|
|
96
|
-
const extractTemplateParams = (path) => {
|
|
97
|
-
return new Set(Array.from(path.matchAll(pathRegex)).map((m) => m[1]));
|
|
98
|
-
};
|
|
99
|
-
const collectPathParamsFromOperation = (parameter, targetSet) => {
|
|
100
|
-
if (isPlainObject(parameter) && 'in' in parameter && 'name' in parameter) {
|
|
101
|
-
if (parameter.in === 'path' && parameter.name) {
|
|
102
|
-
targetSet.add(parameter.name);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
const validatePathParameter = (paramName, templateParams, path, report, location) => {
|
|
107
|
-
if (!templateParams.has(paramName)) {
|
|
108
|
-
report({
|
|
109
|
-
message: `Path parameter \`${paramName}\` is not used in the path \`${path}\`.`,
|
|
110
|
-
location: location.child(['name']),
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
};
|
|
114
|
-
const validateRequiredPathParams = (templateParams, definedOperationParams, definedPathParams, path, report, location) => {
|
|
115
|
-
const allDefinedParams = new Set([...definedOperationParams, ...definedPathParams]);
|
|
116
|
-
for (const templateParam of templateParams) {
|
|
117
|
-
if (!allDefinedParams.has(templateParam)) {
|
|
118
|
-
report({
|
|
119
|
-
message: `The operation does not define the path parameter \`{${templateParam}}\` expected by path \`${path}\`.`,
|
|
120
|
-
location: location.child(['parameters']).key(),
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
};
|
|
125
|
-
//# sourceMappingURL=path-params-defined.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import pluralize from 'pluralize';
|
|
2
|
-
import { isPathParameter } from '../../utils/is-path-parameter.js';
|
|
3
|
-
export const PathSegmentPlural = (opts) => {
|
|
4
|
-
const { ignoreLastPathSegment, exceptions } = opts;
|
|
5
|
-
return {
|
|
6
|
-
PathItem: {
|
|
7
|
-
leave(_path, { report, key, location }) {
|
|
8
|
-
const pathKey = key.toString();
|
|
9
|
-
if (pathKey.startsWith('/')) {
|
|
10
|
-
const pathSegments = pathKey.split('/');
|
|
11
|
-
pathSegments.shift();
|
|
12
|
-
if (ignoreLastPathSegment && pathSegments.length > 0) {
|
|
13
|
-
pathSegments.pop();
|
|
14
|
-
}
|
|
15
|
-
for (const pathSegment of pathSegments) {
|
|
16
|
-
if (exceptions && exceptions.includes(pathSegment))
|
|
17
|
-
continue;
|
|
18
|
-
if (!isPathParameter(pathSegment) && pluralize.isSingular(pathSegment)) {
|
|
19
|
-
report({
|
|
20
|
-
message: `path segment \`${pathSegment}\` should be plural.`,
|
|
21
|
-
location: location.key(),
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=path-segment-plural.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export const PathsKebabCase = () => {
|
|
2
|
-
return {
|
|
3
|
-
PathItem(_path, { report, key }) {
|
|
4
|
-
const segments = key
|
|
5
|
-
.substr(1)
|
|
6
|
-
.split('/')
|
|
7
|
-
.filter((s) => s !== ''); // filter out empty segments
|
|
8
|
-
if (!segments.every((segment) => /^{.+}$/.test(segment) || /^[a-z0-9-.]+$/.test(segment))) {
|
|
9
|
-
report({
|
|
10
|
-
message: `\`${key}\` does not use kebab-case.`,
|
|
11
|
-
location: { reportOnKey: true },
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=paths-kebab-case.js.map
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export const RequiredStringPropertyMissingMinLength = () => {
|
|
2
|
-
let skipSchemaProperties;
|
|
3
|
-
let requiredPropertiesSet;
|
|
4
|
-
return {
|
|
5
|
-
Schema: {
|
|
6
|
-
enter(schema) {
|
|
7
|
-
if (!schema?.required) {
|
|
8
|
-
skipSchemaProperties = true;
|
|
9
|
-
return;
|
|
10
|
-
}
|
|
11
|
-
requiredPropertiesSet = new Set(schema.required);
|
|
12
|
-
skipSchemaProperties = false;
|
|
13
|
-
},
|
|
14
|
-
SchemaProperties: {
|
|
15
|
-
skip() {
|
|
16
|
-
return skipSchemaProperties;
|
|
17
|
-
},
|
|
18
|
-
Schema: {
|
|
19
|
-
enter(schema, { key, location, report }) {
|
|
20
|
-
if (requiredPropertiesSet.has(key) && schema.type === 'string') {
|
|
21
|
-
if (!schema?.minLength) {
|
|
22
|
-
report({
|
|
23
|
-
message: 'Property minLength is required.',
|
|
24
|
-
location: location.key(),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=required-string-property-missing-min-length.js.map
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getMatchingStatusCodeRange } from '../../utils/get-matching-status-code-range.js';
|
|
2
|
-
export const ResponseContainsHeader = (options) => {
|
|
3
|
-
const names = options.names || {};
|
|
4
|
-
return {
|
|
5
|
-
Operation: {
|
|
6
|
-
Response: {
|
|
7
|
-
enter: (response, { report, location, key }) => {
|
|
8
|
-
const expectedHeaders = names[key] ||
|
|
9
|
-
names[getMatchingStatusCodeRange(key)] ||
|
|
10
|
-
names[getMatchingStatusCodeRange(key).toLowerCase()] ||
|
|
11
|
-
[];
|
|
12
|
-
for (const expectedHeader of expectedHeaders) {
|
|
13
|
-
if (!response?.headers ||
|
|
14
|
-
!Object.keys(response?.headers).some((header) => header.toLowerCase() === expectedHeader.toLowerCase())) {
|
|
15
|
-
report({
|
|
16
|
-
message: `Response object must contain a "${expectedHeader}" header.`,
|
|
17
|
-
location: location.child('headers').key(),
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=response-contains-header.js.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { getOwn } from '../../utils/get-own.js';
|
|
2
|
-
const SCALAR_TYPES = ['string', 'integer', 'number', 'boolean', 'null'];
|
|
3
|
-
export const ScalarPropertyMissingExample = () => {
|
|
4
|
-
return {
|
|
5
|
-
SchemaProperties(properties, { report, location, specVersion, resolve }) {
|
|
6
|
-
for (const propName of Object.keys(properties)) {
|
|
7
|
-
const propSchema = resolve(getOwn(properties, propName)).node;
|
|
8
|
-
if (!propSchema || !isScalarSchema(propSchema)) {
|
|
9
|
-
continue;
|
|
10
|
-
}
|
|
11
|
-
if (propSchema.example === undefined &&
|
|
12
|
-
propSchema.examples === undefined) {
|
|
13
|
-
report({
|
|
14
|
-
message: `Scalar property should have "example"${specVersion === 'oas3_1' || specVersion === 'oas3_2' ? ' or "examples"' : ''} defined.`,
|
|
15
|
-
location: location.child(propName).key(),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
function isScalarSchema(schema) {
|
|
23
|
-
if (!schema.type) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
if (schema.allOf || schema.anyOf || schema.oneOf) {
|
|
27
|
-
// Skip allOf/oneOf/anyOf as it's complicated to validate it right now.
|
|
28
|
-
// We need core support for checking contrstrains through those keywords.
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
if (schema.format === 'binary') {
|
|
32
|
-
return false;
|
|
33
|
-
}
|
|
34
|
-
if (Array.isArray(schema.type)) {
|
|
35
|
-
return schema.type.every((t) => SCALAR_TYPES.includes(t));
|
|
36
|
-
}
|
|
37
|
-
return SCALAR_TYPES.includes(schema.type);
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=scalar-property-missing-example.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export const SecurityDefined = (opts) => {
|
|
2
|
-
const referencedSchemes = new Map();
|
|
3
|
-
const operationsWithoutSecurity = [];
|
|
4
|
-
let eachOperationHasSecurity = true;
|
|
5
|
-
let path;
|
|
6
|
-
return {
|
|
7
|
-
Root: {
|
|
8
|
-
leave(root, { report }) {
|
|
9
|
-
for (const [name, scheme] of referencedSchemes.entries()) {
|
|
10
|
-
if (scheme.defined)
|
|
11
|
-
continue;
|
|
12
|
-
for (const reportedFromLocation of scheme.from) {
|
|
13
|
-
report({
|
|
14
|
-
message: `There is no \`${name}\` security scheme defined.`,
|
|
15
|
-
location: reportedFromLocation.key(),
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
if (root.security || eachOperationHasSecurity) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
for (const operationLocation of operationsWithoutSecurity) {
|
|
24
|
-
report({
|
|
25
|
-
message: `Every operation should have security defined on it or on the root level.`,
|
|
26
|
-
location: operationLocation.key(),
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
SecurityScheme(_securityScheme, { key }) {
|
|
33
|
-
referencedSchemes.set(key.toString(), { defined: true, from: [] });
|
|
34
|
-
},
|
|
35
|
-
SecurityRequirement(requirements, { location }) {
|
|
36
|
-
for (const requirement of Object.keys(requirements)) {
|
|
37
|
-
const authScheme = referencedSchemes.get(requirement);
|
|
38
|
-
const requirementLocation = location.child([requirement]);
|
|
39
|
-
if (!authScheme) {
|
|
40
|
-
referencedSchemes.set(requirement, { from: [requirementLocation] });
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
authScheme.from.push(requirementLocation);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
PathItem: {
|
|
48
|
-
enter(pathItem, { key }) {
|
|
49
|
-
path = key;
|
|
50
|
-
},
|
|
51
|
-
Operation(operation, { location, key }) {
|
|
52
|
-
const isException = opts.exceptions?.some((item) => item.path === path &&
|
|
53
|
-
(!item.methods || item.methods?.some((method) => method.toLowerCase() === key)));
|
|
54
|
-
if (!operation?.security && !isException) {
|
|
55
|
-
eachOperationHasSecurity = false;
|
|
56
|
-
operationsWithoutSecurity.push(location);
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
//# sourceMappingURL=security-defined.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { isRef } from '../../ref-utils.js';
|
|
2
|
-
export const SpecStrictRefs = () => {
|
|
3
|
-
const nodesToSkip = [
|
|
4
|
-
'Schema',
|
|
5
|
-
'Response',
|
|
6
|
-
'Parameter',
|
|
7
|
-
'RequestBody',
|
|
8
|
-
'Example',
|
|
9
|
-
'Header',
|
|
10
|
-
'SecurityScheme',
|
|
11
|
-
'Link',
|
|
12
|
-
'Callback',
|
|
13
|
-
'PathItem',
|
|
14
|
-
];
|
|
15
|
-
return {
|
|
16
|
-
any(_node, { report, rawNode, rawLocation, type }) {
|
|
17
|
-
const shouldCheck = !nodesToSkip.includes(type.name);
|
|
18
|
-
if (shouldCheck && isRef(rawNode)) {
|
|
19
|
-
report({
|
|
20
|
-
message: 'Field $ref is not expected here.',
|
|
21
|
-
location: rawLocation.child('$ref').key(),
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=spec-strict-refs.js.map
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { isNamedType, SpecExtension } from '../../types/index.js';
|
|
2
|
-
import { oasTypeOf, matchesJsonSchemaType, getSuggest, validateSchemaEnumType } from '../utils.js';
|
|
3
|
-
import { isRef } from '../../ref-utils.js';
|
|
4
|
-
import { isPlainObject } from '../../utils/is-plain-object.js';
|
|
5
|
-
import { getOwn } from '../../utils/get-own.js';
|
|
6
|
-
export const Struct = () => {
|
|
7
|
-
return {
|
|
8
|
-
any(node, { report, type, location, rawLocation, key, resolve, ignoreNextVisitorsOnNode }) {
|
|
9
|
-
const nodeType = oasTypeOf(node);
|
|
10
|
-
const refLocation = rawLocation !== location ? rawLocation : undefined;
|
|
11
|
-
if (type.items) {
|
|
12
|
-
if (nodeType !== 'array') {
|
|
13
|
-
report({
|
|
14
|
-
message: `Expected type \`${type.name}\` (array) but got \`${nodeType}\``,
|
|
15
|
-
from: refLocation,
|
|
16
|
-
});
|
|
17
|
-
ignoreNextVisitorsOnNode();
|
|
18
|
-
}
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
else if (nodeType !== 'object') {
|
|
22
|
-
if (type !== SpecExtension) {
|
|
23
|
-
// do not validate unknown extensions structure
|
|
24
|
-
report({
|
|
25
|
-
message: `Expected type \`${type.name}\` (object) but got \`${nodeType}\``,
|
|
26
|
-
from: refLocation,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
ignoreNextVisitorsOnNode();
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
const required = typeof type.required === 'function' ? type.required(node, key) : type.required;
|
|
33
|
-
for (const propName of required || []) {
|
|
34
|
-
if (!node.hasOwnProperty(propName)) {
|
|
35
|
-
report({
|
|
36
|
-
message: `The field \`${propName}\` must be present on this level.`,
|
|
37
|
-
from: refLocation,
|
|
38
|
-
location: [{ reportOnKey: true }],
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
const allowed = type.allowed?.(node);
|
|
43
|
-
if (allowed && isPlainObject(node)) {
|
|
44
|
-
for (const propName in node) {
|
|
45
|
-
if (allowed.includes(propName) ||
|
|
46
|
-
(type.extensionsPrefix && propName.startsWith(type.extensionsPrefix)) ||
|
|
47
|
-
!Object.keys(type.properties).includes(propName)) {
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
report({
|
|
51
|
-
message: `The field \`${propName}\` is not allowed here.`,
|
|
52
|
-
from: refLocation,
|
|
53
|
-
location: location.child([propName]).key(),
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
const requiredOneOf = type.requiredOneOf || null;
|
|
58
|
-
if (requiredOneOf) {
|
|
59
|
-
let hasProperty = false;
|
|
60
|
-
for (const propName of requiredOneOf || []) {
|
|
61
|
-
if (node.hasOwnProperty(propName)) {
|
|
62
|
-
hasProperty = true;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
if (!hasProperty)
|
|
66
|
-
report({
|
|
67
|
-
message: `Must contain at least one of the following fields: ${type.requiredOneOf?.join(', ')}.`,
|
|
68
|
-
from: refLocation,
|
|
69
|
-
location: [{ reportOnKey: true }],
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
for (const propName of Object.keys(node)) {
|
|
73
|
-
const propLocation = location.child([propName]);
|
|
74
|
-
let propValue = node[propName];
|
|
75
|
-
let propType = getOwn(type.properties, propName);
|
|
76
|
-
if (propType === undefined)
|
|
77
|
-
propType = type.additionalProperties;
|
|
78
|
-
if (typeof propType === 'function')
|
|
79
|
-
propType = propType(propValue, propName);
|
|
80
|
-
if (isNamedType(propType)) {
|
|
81
|
-
continue; // do nothing for named schema, it is executed with the next any call
|
|
82
|
-
}
|
|
83
|
-
const propSchema = propType;
|
|
84
|
-
const propValueType = oasTypeOf(propValue);
|
|
85
|
-
if (propSchema === undefined) {
|
|
86
|
-
if (propName.startsWith('x-'))
|
|
87
|
-
continue;
|
|
88
|
-
report({
|
|
89
|
-
message: `Property \`${propName}\` is not expected here.`,
|
|
90
|
-
suggest: getSuggest(propName, Object.keys(type.properties)),
|
|
91
|
-
from: refLocation,
|
|
92
|
-
location: propLocation.key(),
|
|
93
|
-
});
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
if (propSchema === null) {
|
|
97
|
-
continue; // just defined, no validation
|
|
98
|
-
}
|
|
99
|
-
if (propSchema.resolvable !== false && isRef(propValue)) {
|
|
100
|
-
propValue = resolve(propValue).node;
|
|
101
|
-
}
|
|
102
|
-
if (propSchema.items && propSchema.items?.enum && Array.isArray(propValue)) {
|
|
103
|
-
for (let i = 0; i < propValue.length; i++) {
|
|
104
|
-
validateSchemaEnumType(propSchema.items?.enum, propValue[i], propName, refLocation, {
|
|
105
|
-
report,
|
|
106
|
-
location: location.child([propName, i]),
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
if (propSchema.enum) {
|
|
111
|
-
validateSchemaEnumType(propSchema.enum, propValue, propName, refLocation, {
|
|
112
|
-
report,
|
|
113
|
-
location: location.child([propName]),
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
else if (propSchema.type && !matchesJsonSchemaType(propValue, propSchema.type, false)) {
|
|
117
|
-
report({
|
|
118
|
-
message: `Expected type \`${propSchema.type}\` but got \`${propValueType}\`.`,
|
|
119
|
-
from: refLocation,
|
|
120
|
-
location: propLocation,
|
|
121
|
-
});
|
|
122
|
-
ignoreNextVisitorsOnNode();
|
|
123
|
-
}
|
|
124
|
-
else if (propValueType === 'array' && propSchema.items?.type) {
|
|
125
|
-
const itemsType = propSchema.items?.type;
|
|
126
|
-
for (let i = 0; i < propValue.length; i++) {
|
|
127
|
-
const item = propValue[i];
|
|
128
|
-
if (!matchesJsonSchemaType(item, itemsType, false)) {
|
|
129
|
-
report({
|
|
130
|
-
message: `Expected type \`${itemsType}\` but got \`${oasTypeOf(item)}\`.`,
|
|
131
|
-
from: refLocation,
|
|
132
|
-
location: propLocation.child([i]),
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
if (typeof propSchema.minimum === 'number') {
|
|
138
|
-
if (propSchema.minimum > node[propName]) {
|
|
139
|
-
report({
|
|
140
|
-
message: `The value of the ${propName} field must be greater than or equal to ${propSchema.minimum}`,
|
|
141
|
-
from: refLocation,
|
|
142
|
-
location: location.child([propName]),
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
},
|
|
148
|
-
};
|
|
149
|
-
};
|
|
150
|
-
//# sourceMappingURL=struct.js.map
|
package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getTagName } from '../utils.js';
|
|
2
|
-
export const TagsAlphabetical = ({ ignoreCase = false }) => {
|
|
3
|
-
return {
|
|
4
|
-
Root(root, { report, location }) {
|
|
5
|
-
if (!root.tags)
|
|
6
|
-
return;
|
|
7
|
-
for (let i = 0; i < root.tags.length - 1; i++) {
|
|
8
|
-
if (getTagName(root.tags[i], ignoreCase) > getTagName(root.tags[i + 1], ignoreCase)) {
|
|
9
|
-
report({
|
|
10
|
-
message: 'The `tags` array should be in alphabetical order.',
|
|
11
|
-
location: location.child(['tags', i]),
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=tags-alphabetical.js.map
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export const BooleanParameterPrefixes = (options) => {
|
|
2
|
-
const prefixes = options.prefixes || ['is', 'has'];
|
|
3
|
-
const regexp = new RegExp(`^(${prefixes.join('|')})[A-Z-_]`);
|
|
4
|
-
const wrappedPrefixes = prefixes.map((p) => `\`${p}\``);
|
|
5
|
-
const prefixesString = wrappedPrefixes.length === 1
|
|
6
|
-
? wrappedPrefixes[0]
|
|
7
|
-
: wrappedPrefixes.slice(0, -1).join(', ') + ' or ' + wrappedPrefixes[prefixes.length - 1];
|
|
8
|
-
return {
|
|
9
|
-
Parameter(param, { report, location }) {
|
|
10
|
-
if (param.type === 'boolean' && !regexp.test(param.name)) {
|
|
11
|
-
report({
|
|
12
|
-
message: `Boolean parameter \`${param.name}\` should have ${prefixesString} prefix.`,
|
|
13
|
-
location: location.child('name'),
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=boolean-parameter-prefixes.js.map
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { Struct } from '../common/struct.js';
|
|
2
|
-
import { NoInvalidSchemaExamples } from '../common/no-invalid-schema-examples.js';
|
|
3
|
-
import { NoInvalidParameterExamples } from '../common/no-invalid-parameter-examples.js';
|
|
4
|
-
import { InfoContact } from '../common/info-contact.js';
|
|
5
|
-
import { InfoLicense } from '../common/info-license.js';
|
|
6
|
-
import { InfoLicenseStrict } from '../common/info-license-strict.js';
|
|
7
|
-
import { BooleanParameterPrefixes } from './boolean-parameter-prefixes.js';
|
|
8
|
-
import { TagDescription } from '../common/tag-description.js';
|
|
9
|
-
import { TagsAlphabetical } from '../common/tags-alphabetical.js';
|
|
10
|
-
import { PathsKebabCase } from '../common/paths-kebab-case.js';
|
|
11
|
-
import { NoEnumTypeMismatch } from '../common/no-enum-type-mismatch.js';
|
|
12
|
-
import { NoPathTrailingSlash } from '../common/no-path-trailing-slash.js';
|
|
13
|
-
import { Operation2xxResponse } from '../common/operation-2xx-response.js';
|
|
14
|
-
import { Operation4xxResponse } from '../common/operation-4xx-response.js';
|
|
15
|
-
import { Assertions } from '../common/assertions/index.js';
|
|
16
|
-
import { OperationIdUnique } from '../common/operation-operationId-unique.js';
|
|
17
|
-
import { OperationParametersUnique } from '../common/operation-parameters-unique.js';
|
|
18
|
-
import { PathParamsDefined } from '../common/path-params-defined.js';
|
|
19
|
-
import { OperationTagDefined } from '../common/operation-tag-defined.js';
|
|
20
|
-
import { PathDeclarationMustExist } from '../common/path-declaration-must-exist.js';
|
|
21
|
-
import { OperationIdUrlSafe } from '../common/operation-operationId-url-safe.js';
|
|
22
|
-
import { OperationDescription } from '../common/operation-description.js';
|
|
23
|
-
import { PathNotIncludeQuery } from '../common/path-not-include-query.js';
|
|
24
|
-
import { ParameterDescription } from '../common/parameter-description.js';
|
|
25
|
-
import { OperationSingularTag } from '../common/operation-singular-tag.js';
|
|
26
|
-
import { SecurityDefined } from '../common/security-defined.js';
|
|
27
|
-
import { NoUnresolvedRefs } from '../common/no-unresolved-refs.js';
|
|
28
|
-
import { PathHttpVerbsOrder } from '../common/path-http-verbs-order.js';
|
|
29
|
-
import { NoIdenticalPaths } from '../common/no-identical-paths.js';
|
|
30
|
-
import { OperationOperationId } from '../common/operation-operationId.js';
|
|
31
|
-
import { OperationSummary } from '../common/operation-summary.js';
|
|
32
|
-
import { NoAmbiguousPaths } from '../common/no-ambiguous-paths.js';
|
|
33
|
-
import { NoHttpVerbsInPaths } from '../common/no-http-verbs-in-paths.js';
|
|
34
|
-
import { RequestMimeType } from './request-mime-type.js';
|
|
35
|
-
import { ResponseMimeType } from './response-mime-type.js';
|
|
36
|
-
import { PathSegmentPlural } from '../common/path-segment-plural.js';
|
|
37
|
-
import { ResponseContainsHeader } from '../common/response-contains-header.js';
|
|
38
|
-
import { ResponseContainsProperty } from './response-contains-property.js';
|
|
39
|
-
import { ScalarPropertyMissingExample } from '../common/scalar-property-missing-example.js';
|
|
40
|
-
import { RequiredStringPropertyMissingMinLength } from '../common/required-string-property-missing-min-length.js';
|
|
41
|
-
import { SpecStrictRefs } from '../common/spec-strict-refs.js';
|
|
42
|
-
import { NoRequiredSchemaPropertiesUndefined } from '../common/no-required-schema-properties-undefined.js';
|
|
43
|
-
import { NoSchemaTypeMismatch } from '../common/no-schema-type-mismatch.js';
|
|
44
|
-
import { NoDuplicatedTagNames } from '../common/no-duplicated-tag-names.js';
|
|
45
|
-
export const rules = {
|
|
46
|
-
struct: Struct,
|
|
47
|
-
'no-invalid-schema-examples': NoInvalidSchemaExamples,
|
|
48
|
-
'no-invalid-parameter-examples': NoInvalidParameterExamples,
|
|
49
|
-
'info-contact': InfoContact,
|
|
50
|
-
'info-license': InfoLicense,
|
|
51
|
-
'info-license-strict': InfoLicenseStrict,
|
|
52
|
-
'tag-description': TagDescription,
|
|
53
|
-
'tags-alphabetical': TagsAlphabetical,
|
|
54
|
-
'paths-kebab-case': PathsKebabCase,
|
|
55
|
-
'no-enum-type-mismatch': NoEnumTypeMismatch,
|
|
56
|
-
'boolean-parameter-prefixes': BooleanParameterPrefixes,
|
|
57
|
-
'no-path-trailing-slash': NoPathTrailingSlash,
|
|
58
|
-
'operation-2xx-response': Operation2xxResponse,
|
|
59
|
-
'operation-4xx-response': Operation4xxResponse,
|
|
60
|
-
assertions: Assertions,
|
|
61
|
-
'operation-operationId-unique': OperationIdUnique,
|
|
62
|
-
'operation-parameters-unique': OperationParametersUnique,
|
|
63
|
-
'path-parameters-defined': PathParamsDefined,
|
|
64
|
-
'operation-tag-defined': OperationTagDefined,
|
|
65
|
-
'path-declaration-must-exist': PathDeclarationMustExist,
|
|
66
|
-
'operation-operationId-url-safe': OperationIdUrlSafe,
|
|
67
|
-
'operation-operationId': OperationOperationId,
|
|
68
|
-
'operation-summary': OperationSummary,
|
|
69
|
-
'operation-description': OperationDescription,
|
|
70
|
-
'path-not-include-query': PathNotIncludeQuery,
|
|
71
|
-
'path-params-defined': PathParamsDefined,
|
|
72
|
-
'parameter-description': ParameterDescription,
|
|
73
|
-
'operation-singular-tag': OperationSingularTag,
|
|
74
|
-
'security-defined': SecurityDefined,
|
|
75
|
-
'no-unresolved-refs': NoUnresolvedRefs,
|
|
76
|
-
'no-identical-paths': NoIdenticalPaths,
|
|
77
|
-
'no-ambiguous-paths': NoAmbiguousPaths,
|
|
78
|
-
'path-http-verbs-order': PathHttpVerbsOrder,
|
|
79
|
-
'no-http-verbs-in-paths': NoHttpVerbsInPaths,
|
|
80
|
-
'request-mime-type': RequestMimeType,
|
|
81
|
-
'response-mime-type': ResponseMimeType,
|
|
82
|
-
'path-segment-plural': PathSegmentPlural,
|
|
83
|
-
'response-contains-header': ResponseContainsHeader,
|
|
84
|
-
'response-contains-property': ResponseContainsProperty,
|
|
85
|
-
'scalar-property-missing-example': ScalarPropertyMissingExample,
|
|
86
|
-
'required-string-property-missing-min-length': RequiredStringPropertyMissingMinLength,
|
|
87
|
-
'spec-strict-refs': SpecStrictRefs,
|
|
88
|
-
'no-required-schema-properties-undefined': NoRequiredSchemaPropertiesUndefined,
|
|
89
|
-
'no-schema-type-mismatch': NoSchemaTypeMismatch,
|
|
90
|
-
'no-duplicated-tag-names': NoDuplicatedTagNames,
|
|
91
|
-
};
|
|
92
|
-
export const preprocessors = {};
|
|
93
|
-
//# sourceMappingURL=index.js.map
|