@depup/redocly__openapi-core 2.22.1-depup.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/README.md +32 -0
- package/changes.json +14 -0
- package/lib/bundle/bundle-document.d.ts +33 -0
- package/lib/bundle/bundle-document.d.ts.map +1 -0
- package/lib/bundle/bundle-document.js +85 -0
- package/lib/bundle/bundle-document.js.map +1 -0
- package/lib/bundle/bundle-oas.d.ts +15 -0
- package/lib/bundle/bundle-oas.d.ts.map +1 -0
- package/lib/bundle/bundle-oas.js +55 -0
- package/lib/bundle/bundle-oas.js.map +1 -0
- package/lib/bundle/bundle-visitor.d.ts +15 -0
- package/lib/bundle/bundle-visitor.d.ts.map +1 -0
- package/lib/bundle/bundle-visitor.js +257 -0
- package/lib/bundle/bundle-visitor.js.map +1 -0
- package/lib/bundle/bundle.d.ts +26 -0
- package/lib/bundle/bundle.d.ts.map +1 -0
- package/lib/bundle/bundle.js +74 -0
- package/lib/bundle/bundle.js.map +1 -0
- package/lib/config/all.d.ts +4 -0
- package/lib/config/all.d.ts.map +1 -0
- package/lib/config/all.js +310 -0
- package/lib/config/all.js.map +1 -0
- package/lib/config/builtIn.d.ts +4 -0
- package/lib/config/builtIn.d.ts.map +1 -0
- package/lib/config/builtIn.js +58 -0
- package/lib/config/builtIn.js.map +1 -0
- package/lib/config/bundle-extends.d.ts +8 -0
- package/lib/config/bundle-extends.d.ts.map +1 -0
- package/lib/config/bundle-extends.js +27 -0
- package/lib/config/bundle-extends.js.map +1 -0
- package/lib/config/config-resolvers.d.ts +23 -0
- package/lib/config/config-resolvers.d.ts.map +1 -0
- package/lib/config/config-resolvers.js +335 -0
- package/lib/config/config-resolvers.js.map +1 -0
- package/lib/config/config.d.ts +47 -0
- package/lib/config/config.d.ts.map +1 -0
- package/lib/config/config.js +338 -0
- package/lib/config/config.js.map +1 -0
- package/lib/config/constants.d.ts +10 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +13 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/get-resolve-config.d.ts +3 -0
- package/lib/config/get-resolve-config.d.ts.map +1 -0
- package/lib/config/get-resolve-config.js +9 -0
- package/lib/config/get-resolve-config.js.map +1 -0
- package/lib/config/group-assertion-rules.d.ts +3 -0
- package/lib/config/group-assertion-rules.d.ts.map +1 -0
- package/lib/config/group-assertion-rules.js +51 -0
- package/lib/config/group-assertion-rules.js.map +1 -0
- package/lib/config/index.d.ts +8 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/config/index.js +8 -0
- package/lib/config/index.js.map +1 -0
- package/lib/config/load.d.ts +19 -0
- package/lib/config/load.d.ts.map +1 -0
- package/lib/config/load.js +98 -0
- package/lib/config/load.js.map +1 -0
- package/lib/config/minimal.d.ts +4 -0
- package/lib/config/minimal.d.ts.map +1 -0
- package/lib/config/minimal.js +289 -0
- package/lib/config/minimal.js.map +1 -0
- package/lib/config/recommended-strict.d.ts +4 -0
- package/lib/config/recommended-strict.d.ts.map +1 -0
- package/lib/config/recommended-strict.js +289 -0
- package/lib/config/recommended-strict.js.map +1 -0
- package/lib/config/recommended.d.ts +4 -0
- package/lib/config/recommended.d.ts.map +1 -0
- package/lib/config/recommended.js +289 -0
- package/lib/config/recommended.js.map +1 -0
- package/lib/config/rules.d.ts +11 -0
- package/lib/config/rules.d.ts.map +1 -0
- package/lib/config/rules.js +35 -0
- package/lib/config/rules.js.map +1 -0
- package/lib/config/spec.d.ts +4 -0
- package/lib/config/spec.d.ts.map +1 -0
- package/lib/config/spec.js +289 -0
- package/lib/config/spec.js.map +1 -0
- package/lib/config/types.d.ts +158 -0
- package/lib/config/types.d.ts.map +1 -0
- package/lib/config/types.js +2 -0
- package/lib/config/types.js.map +1 -0
- package/lib/config/utils.d.ts +14 -0
- package/lib/config/utils.d.ts.map +1 -0
- package/lib/config/utils.js +129 -0
- package/lib/config/utils.js.map +1 -0
- package/lib/config/visitors.d.ts +50 -0
- package/lib/config/visitors.d.ts.map +1 -0
- package/lib/config/visitors.js +99 -0
- package/lib/config/visitors.js.map +1 -0
- package/lib/decorators/arazzo/index.d.ts +2 -0
- package/lib/decorators/arazzo/index.d.ts.map +1 -0
- package/lib/decorators/arazzo/index.js +2 -0
- package/lib/decorators/arazzo/index.js.map +1 -0
- package/lib/decorators/async2/index.d.ts +2 -0
- package/lib/decorators/async2/index.d.ts.map +1 -0
- package/lib/decorators/async2/index.js +2 -0
- package/lib/decorators/async2/index.js.map +1 -0
- package/lib/decorators/async3/index.d.ts +2 -0
- package/lib/decorators/async3/index.d.ts.map +1 -0
- package/lib/decorators/async3/index.js +2 -0
- package/lib/decorators/async3/index.js.map +1 -0
- package/lib/decorators/common/filters/filter-helper.d.ts +4 -0
- package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-helper.js +65 -0
- package/lib/decorators/common/filters/filter-helper.js.map +1 -0
- package/lib/decorators/common/filters/filter-in.d.ts +3 -0
- package/lib/decorators/common/filters/filter-in.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-in.js +67 -0
- package/lib/decorators/common/filters/filter-in.js.map +1 -0
- package/lib/decorators/common/filters/filter-out.d.ts +3 -0
- package/lib/decorators/common/filters/filter-out.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-out.js +67 -0
- package/lib/decorators/common/filters/filter-out.js.map +1 -0
- package/lib/decorators/common/info-description-override.d.ts +3 -0
- package/lib/decorators/common/info-description-override.d.ts.map +1 -0
- package/lib/decorators/common/info-description-override.js +21 -0
- package/lib/decorators/common/info-description-override.js.map +1 -0
- package/lib/decorators/common/info-override.d.ts +3 -0
- package/lib/decorators/common/info-override.d.ts.map +1 -0
- package/lib/decorators/common/info-override.js +14 -0
- package/lib/decorators/common/info-override.js.map +1 -0
- package/lib/decorators/common/media-type-examples-override.d.ts +3 -0
- package/lib/decorators/common/media-type-examples-override.d.ts.map +1 -0
- package/lib/decorators/common/media-type-examples-override.js +58 -0
- package/lib/decorators/common/media-type-examples-override.js.map +1 -0
- package/lib/decorators/common/operation-description-override.d.ts +3 -0
- package/lib/decorators/common/operation-description-override.d.ts.map +1 -0
- package/lib/decorators/common/operation-description-override.js +27 -0
- package/lib/decorators/common/operation-description-override.js.map +1 -0
- package/lib/decorators/common/remove-x-internal.d.ts +3 -0
- package/lib/decorators/common/remove-x-internal.d.ts.map +1 -0
- package/lib/decorators/common/remove-x-internal.js +68 -0
- package/lib/decorators/common/remove-x-internal.js.map +1 -0
- package/lib/decorators/common/tag-description-override.d.ts +3 -0
- package/lib/decorators/common/tag-description-override.d.ts.map +1 -0
- package/lib/decorators/common/tag-description-override.js +23 -0
- package/lib/decorators/common/tag-description-override.js.map +1 -0
- package/lib/decorators/oas2/index.d.ts +12 -0
- package/lib/decorators/oas2/index.d.ts.map +1 -0
- package/lib/decorators/oas2/index.js +19 -0
- package/lib/decorators/oas2/index.js.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.d.ts +3 -0
- package/lib/decorators/oas2/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.js +88 -0
- package/lib/decorators/oas2/remove-unused-components.js.map +1 -0
- package/lib/decorators/oas3/index.d.ts +13 -0
- package/lib/decorators/oas3/index.d.ts.map +1 -0
- package/lib/decorators/oas3/index.js +21 -0
- package/lib/decorators/oas3/index.js.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.d.ts +3 -0
- package/lib/decorators/oas3/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.js +116 -0
- package/lib/decorators/oas3/remove-unused-components.js.map +1 -0
- package/lib/decorators/openrpc/index.d.ts +2 -0
- package/lib/decorators/openrpc/index.d.ts.map +1 -0
- package/lib/decorators/openrpc/index.js +2 -0
- package/lib/decorators/openrpc/index.js.map +1 -0
- package/lib/decorators/overlay1/index.d.ts +2 -0
- package/lib/decorators/overlay1/index.d.ts.map +1 -0
- package/lib/decorators/overlay1/index.js +2 -0
- package/lib/decorators/overlay1/index.js.map +1 -0
- package/lib/detect-spec.d.ts +5 -0
- package/lib/detect-spec.d.ts.map +1 -0
- package/lib/detect-spec.js +79 -0
- package/lib/detect-spec.js.map +1 -0
- package/lib/env.d.ts +3 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +5 -0
- package/lib/env.js.map +1 -0
- package/lib/errors/yaml-parse-error.d.ts +9 -0
- package/lib/errors/yaml-parse-error.d.ts.map +1 -0
- package/lib/errors/yaml-parse-error.js +14 -0
- package/lib/errors/yaml-parse-error.js.map +1 -0
- package/lib/format/codeframes.d.ts +23 -0
- package/lib/format/codeframes.d.ts.map +1 -0
- package/lib/format/codeframes.js +177 -0
- package/lib/format/codeframes.js.map +1 -0
- package/lib/format/format.d.ts +23 -0
- package/lib/format/format.d.ts.map +1 -0
- package/lib/format/format.js +365 -0
- package/lib/format/format.js.map +1 -0
- package/lib/index.d.ts +58 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +49 -0
- package/lib/index.js.map +1 -0
- package/lib/js-yaml/index.d.ts +4 -0
- package/lib/js-yaml/index.d.ts.map +1 -0
- package/lib/js-yaml/index.js +11 -0
- package/lib/js-yaml/index.js.map +1 -0
- package/lib/lint-entity.d.ts +24 -0
- package/lib/lint-entity.d.ts.map +1 -0
- package/lib/lint-entity.js +171 -0
- package/lib/lint-entity.js.map +1 -0
- package/lib/lint.d.ts +31 -0
- package/lib/lint.d.ts.map +1 -0
- package/lib/lint.js +123 -0
- package/lib/lint.js.map +1 -0
- package/lib/logger.d.ts +26 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +56 -0
- package/lib/logger.js.map +1 -0
- package/lib/oas-types.d.ts +877 -0
- package/lib/oas-types.d.ts.map +1 -0
- package/lib/oas-types.js +35 -0
- package/lib/oas-types.js.map +1 -0
- package/lib/ref-utils.d.ts +32 -0
- package/lib/ref-utils.d.ts.map +1 -0
- package/lib/ref-utils.js +109 -0
- package/lib/ref-utils.js.map +1 -0
- package/lib/resolve.d.ts +57 -0
- package/lib/resolve.d.ts.map +1 -0
- package/lib/resolve.js +326 -0
- package/lib/resolve.js.map +1 -0
- package/lib/rules/ajv.d.ts +20 -0
- package/lib/rules/ajv.d.ts.map +1 -0
- package/lib/rules/ajv.js +106 -0
- package/lib/rules/ajv.js.map +1 -0
- package/lib/rules/arazzo/criteria-unique.d.ts +3 -0
- package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/criteria-unique.js +68 -0
- package/lib/rules/arazzo/criteria-unique.js.map +1 -0
- package/lib/rules/arazzo/index.d.ts +4 -0
- package/lib/rules/arazzo/index.d.ts.map +1 -0
- package/lib/rules/arazzo/index.js +52 -0
- package/lib/rules/arazzo/index.js.map +1 -0
- package/lib/rules/arazzo/outputs-defined.d.ts +3 -0
- package/lib/rules/arazzo/outputs-defined.d.ts.map +1 -0
- package/lib/rules/arazzo/outputs-defined.js +139 -0
- package/lib/rules/arazzo/outputs-defined.js.map +1 -0
- package/lib/rules/arazzo/parameters-unique.d.ts +3 -0
- package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/parameters-unique.js +27 -0
- package/lib/rules/arazzo/parameters-unique.js.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +3 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.js +19 -0
- package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.d.ts +3 -0
- package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.js +27 -0
- package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts +3 -0
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
- package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
- package/lib/rules/arazzo/stepId-unique.d.ts +3 -0
- package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/stepId-unique.js +23 -0
- package/lib/rules/arazzo/stepId-unique.js.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.d.ts +3 -0
- package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.js +53 -0
- package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.d.ts +3 -0
- package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.js +19 -0
- package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
- package/lib/rules/async2/channels-kebab-case.d.ts +3 -0
- package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async2/channels-kebab-case.js +16 -0
- package/lib/rules/async2/channels-kebab-case.js.map +1 -0
- package/lib/rules/async2/index.d.ts +4 -0
- package/lib/rules/async2/index.d.ts.map +1 -0
- package/lib/rules/async2/index.js +32 -0
- package/lib/rules/async2/index.js.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +3 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.js +13 -0
- package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/async3/channels-kebab-case.d.ts +3 -0
- package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async3/channels-kebab-case.js +16 -0
- package/lib/rules/async3/channels-kebab-case.js.map +1 -0
- package/lib/rules/async3/index.d.ts +4 -0
- package/lib/rules/async3/index.d.ts.map +1 -0
- package/lib/rules/async3/index.js +32 -0
- package/lib/rules/async3/index.js.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +3 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.js +13 -0
- package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/catalog-entity/entity-key-valid.d.ts +3 -0
- package/lib/rules/catalog-entity/entity-key-valid.d.ts.map +1 -0
- package/lib/rules/catalog-entity/entity-key-valid.js +39 -0
- package/lib/rules/catalog-entity/entity-key-valid.js.map +1 -0
- package/lib/rules/common/assertions/asserts.d.ts +30 -0
- package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
- package/lib/rules/common/assertions/asserts.js +272 -0
- package/lib/rules/common/assertions/asserts.js.map +1 -0
- package/lib/rules/common/assertions/index.d.ts +28 -0
- package/lib/rules/common/assertions/index.d.ts.map +1 -0
- package/lib/rules/common/assertions/index.js +22 -0
- package/lib/rules/common/assertions/index.js.map +1 -0
- package/lib/rules/common/assertions/utils.d.ts +21 -0
- package/lib/rules/common/assertions/utils.d.ts.map +1 -0
- package/lib/rules/common/assertions/utils.js +215 -0
- package/lib/rules/common/assertions/utils.js.map +1 -0
- package/lib/rules/common/info-contact.d.ts +3 -0
- package/lib/rules/common/info-contact.d.ts.map +1 -0
- package/lib/rules/common/info-contact.js +14 -0
- package/lib/rules/common/info-contact.js.map +1 -0
- package/lib/rules/common/info-license-strict.d.ts +3 -0
- package/lib/rules/common/info-license-strict.d.ts.map +1 -0
- package/lib/rules/common/info-license-strict.js +23 -0
- package/lib/rules/common/info-license-strict.js.map +1 -0
- package/lib/rules/common/info-license.d.ts +3 -0
- package/lib/rules/common/info-license.d.ts.map +1 -0
- package/lib/rules/common/info-license.js +14 -0
- package/lib/rules/common/info-license.js.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.d.ts +3 -0
- package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.js +42 -0
- package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
- package/lib/rules/common/no-duplicated-tag-names.d.ts +3 -0
- package/lib/rules/common/no-duplicated-tag-names.d.ts.map +1 -0
- package/lib/rules/common/no-duplicated-tag-names.js +21 -0
- package/lib/rules/common/no-duplicated-tag-names.js.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.d.ts +3 -0
- package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.js +38 -0
- package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.d.ts +3 -0
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.js +31 -0
- package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
- package/lib/rules/common/no-identical-paths.d.ts +3 -0
- package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
- package/lib/rules/common/no-identical-paths.js +21 -0
- package/lib/rules/common/no-identical-paths.js.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts +2 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.js +32 -0
- package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.d.ts +3 -0
- package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.js +34 -0
- package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.d.ts +3 -0
- package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.js +13 -0
- package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts +3 -0
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.d.ts +3 -0
- package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.js +19 -0
- package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
- package/lib/rules/common/no-unresolved-refs.d.ts +6 -0
- package/lib/rules/common/no-unresolved-refs.d.ts.map +1 -0
- package/lib/rules/common/no-unresolved-refs.js +42 -0
- package/lib/rules/common/no-unresolved-refs.js.map +1 -0
- package/lib/rules/common/operation-2xx-response.d.ts +3 -0
- package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-2xx-response.js +20 -0
- package/lib/rules/common/operation-2xx-response.js.map +1 -0
- package/lib/rules/common/operation-4xx-response.d.ts +3 -0
- package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-4xx-response.js +20 -0
- package/lib/rules/common/operation-4xx-response.js.map +1 -0
- package/lib/rules/common/operation-description.d.ts +3 -0
- package/lib/rules/common/operation-description.d.ts.map +1 -0
- package/lib/rules/common/operation-description.js +9 -0
- package/lib/rules/common/operation-description.js.map +1 -0
- package/lib/rules/common/operation-operationId-unique.d.ts +3 -0
- package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-unique.js +17 -0
- package/lib/rules/common/operation-operationId-unique.js.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.d.ts +3 -0
- package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.js +15 -0
- package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
- package/lib/rules/common/operation-operationId.d.ts +3 -0
- package/lib/rules/common/operation-operationId.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId.js +13 -0
- package/lib/rules/common/operation-operationId.js.map +1 -0
- package/lib/rules/common/operation-parameters-unique.d.ts +3 -0
- package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-parameters-unique.js +37 -0
- package/lib/rules/common/operation-parameters-unique.js.map +1 -0
- package/lib/rules/common/operation-singular-tag.d.ts +3 -0
- package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
- package/lib/rules/common/operation-singular-tag.js +13 -0
- package/lib/rules/common/operation-singular-tag.js.map +1 -0
- package/lib/rules/common/operation-summary.d.ts +3 -0
- package/lib/rules/common/operation-summary.d.ts.map +1 -0
- package/lib/rules/common/operation-summary.js +9 -0
- package/lib/rules/common/operation-summary.js.map +1 -0
- package/lib/rules/common/operation-tag-defined.d.ts +3 -0
- package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
- package/lib/rules/common/operation-tag-defined.js +27 -0
- package/lib/rules/common/operation-tag-defined.js.map +1 -0
- package/lib/rules/common/parameter-description.d.ts +3 -0
- package/lib/rules/common/parameter-description.d.ts.map +1 -0
- package/lib/rules/common/parameter-description.js +19 -0
- package/lib/rules/common/parameter-description.js.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.d.ts +3 -0
- package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.js +13 -0
- package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
- package/lib/rules/common/path-http-verbs-order.d.ts +3 -0
- package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
- package/lib/rules/common/path-http-verbs-order.js +23 -0
- package/lib/rules/common/path-http-verbs-order.js.map +1 -0
- package/lib/rules/common/path-not-include-query.d.ts +3 -0
- package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
- package/lib/rules/common/path-not-include-query.js +15 -0
- package/lib/rules/common/path-not-include-query.js.map +1 -0
- package/lib/rules/common/path-params-defined.d.ts +3 -0
- package/lib/rules/common/path-params-defined.d.ts.map +1 -0
- package/lib/rules/common/path-params-defined.js +145 -0
- package/lib/rules/common/path-params-defined.js.map +1 -0
- package/lib/rules/common/path-segment-plural.d.ts +3 -0
- package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
- package/lib/rules/common/path-segment-plural.js +30 -0
- package/lib/rules/common/path-segment-plural.js.map +1 -0
- package/lib/rules/common/paths-kebab-case.d.ts +3 -0
- package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
- package/lib/rules/common/paths-kebab-case.js +17 -0
- package/lib/rules/common/paths-kebab-case.js.map +1 -0
- package/lib/rules/common/required-string-property-missing-min-length.d.ts +3 -0
- package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +1 -0
- package/lib/rules/common/required-string-property-missing-min-length.js +34 -0
- package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
- package/lib/rules/common/response-contains-header.d.ts +3 -0
- package/lib/rules/common/response-contains-header.d.ts.map +1 -0
- package/lib/rules/common/response-contains-header.js +26 -0
- package/lib/rules/common/response-contains-header.js.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.d.ts +3 -0
- package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.js +39 -0
- package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
- package/lib/rules/common/security-defined.d.ts +3 -0
- package/lib/rules/common/security-defined.d.ts.map +1 -0
- package/lib/rules/common/security-defined.js +62 -0
- package/lib/rules/common/security-defined.js.map +1 -0
- package/lib/rules/common/spec-strict-refs.d.ts +3 -0
- package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
- package/lib/rules/common/spec-strict-refs.js +27 -0
- package/lib/rules/common/spec-strict-refs.js.map +1 -0
- package/lib/rules/common/struct.d.ts +3 -0
- package/lib/rules/common/struct.d.ts.map +1 -0
- package/lib/rules/common/struct.js +150 -0
- package/lib/rules/common/struct.js.map +1 -0
- package/lib/rules/common/tag-description.d.ts +3 -0
- package/lib/rules/common/tag-description.d.ts.map +1 -0
- package/lib/rules/common/tag-description.js +9 -0
- package/lib/rules/common/tag-description.js.map +1 -0
- package/lib/rules/common/tags-alphabetical.d.ts +3 -0
- package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
- package/lib/rules/common/tags-alphabetical.js +18 -0
- package/lib/rules/common/tags-alphabetical.js.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +6 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas2/index.d.ts +4 -0
- package/lib/rules/oas2/index.d.ts.map +1 -0
- package/lib/rules/oas2/index.js +93 -0
- package/lib/rules/oas2/index.js.map +1 -0
- package/lib/rules/oas2/request-mime-type.d.ts +3 -0
- package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/request-mime-type.js +14 -0
- package/lib/rules/oas2/request-mime-type.js.map +1 -0
- package/lib/rules/oas2/response-contains-property.d.ts +3 -0
- package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas2/response-contains-property.js +34 -0
- package/lib/rules/oas2/response-contains-property.js.map +1 -0
- package/lib/rules/oas2/response-mime-type.d.ts +3 -0
- package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/response-mime-type.js +14 -0
- package/lib/rules/oas2/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.d.ts +6 -0
- package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.js +26 -0
- package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +6 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas3/component-name-unique.d.ts +3 -0
- package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
- package/lib/rules/oas3/component-name-unique.js +130 -0
- package/lib/rules/oas3/component-name-unique.js.map +1 -0
- package/lib/rules/oas3/index.d.ts +4 -0
- package/lib/rules/oas3/index.d.ts.map +1 -0
- package/lib/rules/oas3/index.js +129 -0
- package/lib/rules/oas3/index.js.map +1 -0
- package/lib/rules/oas3/no-empty-servers.d.ts +3 -0
- package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
- package/lib/rules/oas3/no-empty-servers.js +20 -0
- package/lib/rules/oas3/no-empty-servers.js.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +3 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +3 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
- package/lib/rules/oas3/no-server-example.com.d.ts +3 -0
- package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-example.com.js +15 -0
- package/lib/rules/oas3/no-server-example.com.js.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.d.ts +3 -0
- package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.js +15 -0
- package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +3 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.d.ts +3 -0
- package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.js +28 -0
- package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
- package/lib/rules/oas3/no-unused-components.d.ts +3 -0
- package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
- package/lib/rules/oas3/no-unused-components.js +83 -0
- package/lib/rules/oas3/no-unused-components.js.map +1 -0
- package/lib/rules/oas3/nullable-type-sibling.d.ts +3 -0
- package/lib/rules/oas3/nullable-type-sibling.d.ts.map +1 -0
- package/lib/rules/oas3/nullable-type-sibling.js +15 -0
- package/lib/rules/oas3/nullable-type-sibling.js.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +6 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
- package/lib/rules/oas3/request-mime-type.d.ts +3 -0
- package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/request-mime-type.js +28 -0
- package/lib/rules/oas3/request-mime-type.js.map +1 -0
- package/lib/rules/oas3/response-contains-property.d.ts +3 -0
- package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas3/response-contains-property.js +36 -0
- package/lib/rules/oas3/response-contains-property.js.map +1 -0
- package/lib/rules/oas3/response-mime-type.d.ts +3 -0
- package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/response-mime-type.js +28 -0
- package/lib/rules/oas3/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +3 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts +3 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts.map +1 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.js.map +1 -0
- package/lib/rules/oas3/spec-example-values.d.ts +3 -0
- package/lib/rules/oas3/spec-example-values.d.ts.map +1 -0
- package/lib/rules/oas3/spec-example-values.js +31 -0
- package/lib/rules/oas3/spec-example-values.js.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts +3 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts +3 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.js.map +1 -0
- package/lib/rules/oas3/spec-querystring-parameters.d.ts +3 -0
- package/lib/rules/oas3/spec-querystring-parameters.d.ts.map +1 -0
- package/lib/rules/oas3/spec-querystring-parameters.js +65 -0
- package/lib/rules/oas3/spec-querystring-parameters.js.map +1 -0
- package/lib/rules/openrpc/index.d.ts +4 -0
- package/lib/rules/openrpc/index.d.ts.map +1 -0
- package/lib/rules/openrpc/index.js +20 -0
- package/lib/rules/openrpc/index.js.map +1 -0
- package/lib/rules/openrpc/no-unused-components.d.ts +3 -0
- package/lib/rules/openrpc/no-unused-components.d.ts.map +1 -0
- package/lib/rules/openrpc/no-unused-components.js +82 -0
- package/lib/rules/openrpc/no-unused-components.js.map +1 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts +3 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts.map +1 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.js.map +1 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts +3 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts.map +1 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.js.map +1 -0
- package/lib/rules/other/stats.d.ts +104 -0
- package/lib/rules/other/stats.d.ts.map +1 -0
- package/lib/rules/other/stats.js +190 -0
- package/lib/rules/other/stats.js.map +1 -0
- package/lib/rules/overlay1/index.d.ts +4 -0
- package/lib/rules/overlay1/index.d.ts.map +1 -0
- package/lib/rules/overlay1/index.js +12 -0
- package/lib/rules/overlay1/index.js.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.d.ts +3 -0
- package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.js +20 -0
- package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts +3 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts.map +1 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js.map +1 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts +3 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts.map +1 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js.map +1 -0
- package/lib/rules/respect/respect-supported-versions.d.ts +3 -0
- package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
- package/lib/rules/respect/respect-supported-versions.js +18 -0
- package/lib/rules/respect/respect-supported-versions.js.map +1 -0
- package/lib/rules/respect/x-security-scheme-name-reference.d.ts +3 -0
- package/lib/rules/respect/x-security-scheme-name-reference.d.ts.map +1 -0
- package/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
- package/lib/rules/respect/x-security-scheme-name-reference.js.map +1 -0
- package/lib/rules/respect/x-security-scheme-required-values.d.ts +3 -0
- package/lib/rules/respect/x-security-scheme-required-values.d.ts.map +1 -0
- package/lib/rules/respect/x-security-scheme-required-values.js +60 -0
- package/lib/rules/respect/x-security-scheme-required-values.js.map +1 -0
- package/lib/rules/utils.d.ts +30 -0
- package/lib/rules/utils.d.ts.map +1 -0
- package/lib/rules/utils.js +172 -0
- package/lib/rules/utils.js.map +1 -0
- package/lib/types/arazzo.d.ts +3 -0
- package/lib/types/arazzo.d.ts.map +1 -0
- package/lib/types/arazzo.js +482 -0
- package/lib/types/arazzo.js.map +1 -0
- package/lib/types/asyncapi2.d.ts +13 -0
- package/lib/types/asyncapi2.d.ts.map +1 -0
- package/lib/types/asyncapi2.js +1157 -0
- package/lib/types/asyncapi2.js.map +1 -0
- package/lib/types/asyncapi3.d.ts +3 -0
- package/lib/types/asyncapi3.d.ts.map +1 -0
- package/lib/types/asyncapi3.js +511 -0
- package/lib/types/asyncapi3.js.map +1 -0
- package/lib/types/entity.d.ts +9 -0
- package/lib/types/entity.d.ts.map +1 -0
- package/lib/types/entity.js +32 -0
- package/lib/types/entity.js.map +1 -0
- package/lib/types/index.d.ts +78 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +90 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/json-schema-adapter.d.ts +12 -0
- package/lib/types/json-schema-adapter.d.ts.map +1 -0
- package/lib/types/json-schema-adapter.js +181 -0
- package/lib/types/json-schema-adapter.js.map +1 -0
- package/lib/types/json-schema-draft7.shared.d.ts +7 -0
- package/lib/types/json-schema-draft7.shared.d.ts.map +1 -0
- package/lib/types/json-schema-draft7.shared.js +101 -0
- package/lib/types/json-schema-draft7.shared.js.map +1 -0
- package/lib/types/oas2.d.ts +107 -0
- package/lib/types/oas2.d.ts.map +1 -0
- package/lib/types/oas2.js +454 -0
- package/lib/types/oas2.js.map +1 -0
- package/lib/types/oas3.d.ts +198 -0
- package/lib/types/oas3.d.ts.map +1 -0
- package/lib/types/oas3.js +828 -0
- package/lib/types/oas3.js.map +1 -0
- package/lib/types/oas3_1.d.ts +207 -0
- package/lib/types/oas3_1.d.ts.map +1 -0
- package/lib/types/oas3_1.js +292 -0
- package/lib/types/oas3_1.js.map +1 -0
- package/lib/types/oas3_2.d.ts +215 -0
- package/lib/types/oas3_2.d.ts.map +1 -0
- package/lib/types/oas3_2.js +306 -0
- package/lib/types/oas3_2.js.map +1 -0
- package/lib/types/openrpc.d.ts +136 -0
- package/lib/types/openrpc.d.ts.map +1 -0
- package/lib/types/openrpc.js +360 -0
- package/lib/types/openrpc.js.map +1 -0
- package/lib/types/overlay.d.ts +3 -0
- package/lib/types/overlay.d.ts.map +1 -0
- package/lib/types/overlay.js +61 -0
- package/lib/types/overlay.js.map +1 -0
- package/lib/types/redocly-yaml.d.ts +29 -0
- package/lib/types/redocly-yaml.d.ts.map +1 -0
- package/lib/types/redocly-yaml.js +573 -0
- package/lib/types/redocly-yaml.js.map +1 -0
- package/lib/typings/arazzo.d.ts +172 -0
- package/lib/typings/arazzo.d.ts.map +1 -0
- package/lib/typings/arazzo.js +3 -0
- package/lib/typings/arazzo.js.map +1 -0
- package/lib/typings/asyncapi.d.ts +22 -0
- package/lib/typings/asyncapi.d.ts.map +1 -0
- package/lib/typings/asyncapi.js +2 -0
- package/lib/typings/asyncapi.js.map +1 -0
- package/lib/typings/asyncapi3.d.ts +54 -0
- package/lib/typings/asyncapi3.d.ts.map +1 -0
- package/lib/typings/asyncapi3.js +2 -0
- package/lib/typings/asyncapi3.js.map +1 -0
- package/lib/typings/common.d.ts +13 -0
- package/lib/typings/common.d.ts.map +1 -0
- package/lib/typings/common.js +2 -0
- package/lib/typings/common.js.map +1 -0
- package/lib/typings/openapi.d.ts +420 -0
- package/lib/typings/openapi.d.ts.map +1 -0
- package/lib/typings/openapi.js +2 -0
- package/lib/typings/openapi.js.map +1 -0
- package/lib/typings/openrpc.d.ts +110 -0
- package/lib/typings/openrpc.d.ts.map +1 -0
- package/lib/typings/openrpc.js +2 -0
- package/lib/typings/openrpc.js.map +1 -0
- package/lib/typings/overlay.d.ts +18 -0
- package/lib/typings/overlay.d.ts.map +1 -0
- package/lib/typings/overlay.js +2 -0
- package/lib/typings/overlay.js.map +1 -0
- package/lib/typings/swagger.d.ts +218 -0
- package/lib/typings/swagger.d.ts.map +1 -0
- package/lib/typings/swagger.js +2 -0
- package/lib/typings/swagger.js.map +1 -0
- package/lib/utils/assign-config.d.ts +7 -0
- package/lib/utils/assign-config.d.ts.map +1 -0
- package/lib/utils/assign-config.js +28 -0
- package/lib/utils/assign-config.js.map +1 -0
- package/lib/utils/dequal.d.ts +6 -0
- package/lib/utils/dequal.d.ts.map +1 -0
- package/lib/utils/dequal.js +36 -0
- package/lib/utils/dequal.js.map +1 -0
- package/lib/utils/does-yaml-file-exist.d.ts +2 -0
- package/lib/utils/does-yaml-file-exist.d.ts.map +1 -0
- package/lib/utils/does-yaml-file-exist.js +7 -0
- package/lib/utils/does-yaml-file-exist.js.map +1 -0
- package/lib/utils/error.d.ts +3 -0
- package/lib/utils/error.d.ts.map +1 -0
- package/lib/utils/error.js +3 -0
- package/lib/utils/error.js.map +1 -0
- package/lib/utils/get-intersection-length.d.ts +2 -0
- package/lib/utils/get-intersection-length.d.ts.map +1 -0
- package/lib/utils/get-intersection-length.js +11 -0
- package/lib/utils/get-intersection-length.js.map +1 -0
- package/lib/utils/get-matching-status-code-range.d.ts +2 -0
- package/lib/utils/get-matching-status-code-range.d.ts.map +1 -0
- package/lib/utils/get-matching-status-code-range.js +4 -0
- package/lib/utils/get-matching-status-code-range.js.map +1 -0
- package/lib/utils/get-own.d.ts +2 -0
- package/lib/utils/get-own.d.ts.map +1 -0
- package/lib/utils/get-own.js +4 -0
- package/lib/utils/get-own.js.map +1 -0
- package/lib/utils/identity.d.ts +2 -0
- package/lib/utils/identity.d.ts.map +1 -0
- package/lib/utils/identity.js +4 -0
- package/lib/utils/identity.js.map +1 -0
- package/lib/utils/is-custom-rule-id.d.ts +2 -0
- package/lib/utils/is-custom-rule-id.d.ts.map +1 -0
- package/lib/utils/is-custom-rule-id.js +4 -0
- package/lib/utils/is-custom-rule-id.js.map +1 -0
- package/lib/utils/is-defined.d.ts +2 -0
- package/lib/utils/is-defined.d.ts.map +1 -0
- package/lib/utils/is-defined.js +4 -0
- package/lib/utils/is-defined.js.map +1 -0
- package/lib/utils/is-empty-array.d.ts +2 -0
- package/lib/utils/is-empty-array.d.ts.map +1 -0
- package/lib/utils/is-empty-array.js +4 -0
- package/lib/utils/is-empty-array.js.map +1 -0
- package/lib/utils/is-empty-object.d.ts +2 -0
- package/lib/utils/is-empty-object.d.ts.map +1 -0
- package/lib/utils/is-empty-object.js +5 -0
- package/lib/utils/is-empty-object.js.map +1 -0
- package/lib/utils/is-not-empty-array.d.ts +2 -0
- package/lib/utils/is-not-empty-array.d.ts.map +1 -0
- package/lib/utils/is-not-empty-array.js +4 -0
- package/lib/utils/is-not-empty-array.js.map +1 -0
- package/lib/utils/is-not-empty-object.d.ts +2 -0
- package/lib/utils/is-not-empty-object.d.ts.map +1 -0
- package/lib/utils/is-not-empty-object.js +6 -0
- package/lib/utils/is-not-empty-object.js.map +1 -0
- package/lib/utils/is-not-string.d.ts +2 -0
- package/lib/utils/is-not-string.d.ts.map +1 -0
- package/lib/utils/is-not-string.js +5 -0
- package/lib/utils/is-not-string.js.map +1 -0
- package/lib/utils/is-ordered.d.ts +7 -0
- package/lib/utils/is-ordered.d.ts.map +1 -0
- package/lib/utils/is-ordered.js +27 -0
- package/lib/utils/is-ordered.js.map +1 -0
- package/lib/utils/is-path-parameter.d.ts +2 -0
- package/lib/utils/is-path-parameter.d.ts.map +1 -0
- package/lib/utils/is-path-parameter.js +4 -0
- package/lib/utils/is-path-parameter.js.map +1 -0
- package/lib/utils/is-plain-object.d.ts +2 -0
- package/lib/utils/is-plain-object.d.ts.map +1 -0
- package/lib/utils/is-plain-object.js +4 -0
- package/lib/utils/is-plain-object.js.map +1 -0
- package/lib/utils/is-string.d.ts +2 -0
- package/lib/utils/is-string.d.ts.map +1 -0
- package/lib/utils/is-string.js +4 -0
- package/lib/utils/is-string.js.map +1 -0
- package/lib/utils/is-truthy.d.ts +3 -0
- package/lib/utils/is-truthy.d.ts.map +1 -0
- package/lib/utils/is-truthy.js +4 -0
- package/lib/utils/is-truthy.js.map +1 -0
- package/lib/utils/keys-of.d.ts +2 -0
- package/lib/utils/keys-of.d.ts.map +1 -0
- package/lib/utils/keys-of.js +6 -0
- package/lib/utils/keys-of.js.map +1 -0
- package/lib/utils/make-ref-id.d.ts +2 -0
- package/lib/utils/make-ref-id.d.ts.map +1 -0
- package/lib/utils/make-ref-id.js +4 -0
- package/lib/utils/make-ref-id.js.map +1 -0
- package/lib/utils/next-tick.d.ts +2 -0
- package/lib/utils/next-tick.d.ts.map +1 -0
- package/lib/utils/next-tick.js +6 -0
- package/lib/utils/next-tick.js.map +1 -0
- package/lib/utils/oas-has-component.d.ts +3 -0
- package/lib/utils/oas-has-component.d.ts.map +1 -0
- package/lib/utils/oas-has-component.js +4 -0
- package/lib/utils/oas-has-component.js.map +1 -0
- package/lib/utils/omit.d.ts +2 -0
- package/lib/utils/omit.d.ts.map +1 -0
- package/lib/utils/omit.js +8 -0
- package/lib/utils/omit.js.map +1 -0
- package/lib/utils/pause.d.ts +2 -0
- package/lib/utils/pause.d.ts.map +1 -0
- package/lib/utils/pause.js +4 -0
- package/lib/utils/pause.js.map +1 -0
- package/lib/utils/pluralize.d.ts +2 -0
- package/lib/utils/pluralize.d.ts.map +1 -0
- package/lib/utils/pluralize.js +8 -0
- package/lib/utils/pluralize.js.map +1 -0
- package/lib/utils/read-file-from-url.d.ts +6 -0
- package/lib/utils/read-file-from-url.d.ts.map +1 -0
- package/lib/utils/read-file-from-url.js +26 -0
- package/lib/utils/read-file-from-url.js.map +1 -0
- package/lib/utils/regex-from-string.d.ts +2 -0
- package/lib/utils/regex-from-string.d.ts.map +1 -0
- package/lib/utils/regex-from-string.js +5 -0
- package/lib/utils/regex-from-string.js.map +1 -0
- package/lib/utils/scorecards.d.ts +13 -0
- package/lib/utils/scorecards.d.ts.map +1 -0
- package/lib/utils/scorecards.js +99 -0
- package/lib/utils/scorecards.js.map +1 -0
- package/lib/utils/slash.d.ts +5 -0
- package/lib/utils/slash.d.ts.map +1 -0
- package/lib/utils/slash.js +11 -0
- package/lib/utils/slash.js.map +1 -0
- package/lib/utils/split-camel-case-into-words.d.ts +2 -0
- package/lib/utils/split-camel-case-into-words.d.ts.map +1 -0
- package/lib/utils/split-camel-case-into-words.js +13 -0
- package/lib/utils/split-camel-case-into-words.js.map +1 -0
- package/lib/utils/stack.d.ts +12 -0
- package/lib/utils/stack.d.ts.map +1 -0
- package/lib/utils/stack.js +7 -0
- package/lib/utils/stack.js.map +1 -0
- package/lib/utils/types.d.ts +5 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/types.js +2 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/validate-mime-type.d.ts +4 -0
- package/lib/utils/validate-mime-type.d.ts.map +1 -0
- package/lib/utils/validate-mime-type.js +31 -0
- package/lib/utils/validate-mime-type.js.map +1 -0
- package/lib/utils/yaml-fs-helper.d.ts +6 -0
- package/lib/utils/yaml-fs-helper.d.ts.map +1 -0
- package/lib/utils/yaml-fs-helper.js +23 -0
- package/lib/utils/yaml-fs-helper.js.map +1 -0
- package/lib/visitors.d.ts +279 -0
- package/lib/visitors.d.ts.map +1 -0
- package/lib/visitors.js +177 -0
- package/lib/visitors.js.map +1 -0
- package/lib/walk.d.ts +81 -0
- package/lib/walk.d.ts.map +1 -0
- package/lib/walk.js +303 -0
- package/lib/walk.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
import * as redoclyConfig from '@redocly/config';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { specVersions, getTypes } from '../oas-types.js';
|
|
4
|
+
import { isAbsoluteUrl } from '../ref-utils.js';
|
|
5
|
+
import { normalizeTypes } from '../types/index.js';
|
|
6
|
+
import { isCustomRuleId } from '../utils/is-custom-rule-id.js';
|
|
7
|
+
import { omit } from '../utils/omit.js';
|
|
8
|
+
import { listOf, mapOf } from './index.js';
|
|
9
|
+
import { getNodeTypesFromJSONSchema } from './json-schema-adapter.js';
|
|
10
|
+
const builtInOAS2Rules = [
|
|
11
|
+
'info-contact',
|
|
12
|
+
'operation-operationId',
|
|
13
|
+
'tag-description',
|
|
14
|
+
'tags-alphabetical',
|
|
15
|
+
'info-license-strict',
|
|
16
|
+
'info-license',
|
|
17
|
+
'no-ambiguous-paths',
|
|
18
|
+
'no-enum-type-mismatch',
|
|
19
|
+
'no-http-verbs-in-paths',
|
|
20
|
+
'no-identical-paths',
|
|
21
|
+
'no-invalid-parameter-examples',
|
|
22
|
+
'no-invalid-schema-examples',
|
|
23
|
+
'no-path-trailing-slash',
|
|
24
|
+
'operation-2xx-response',
|
|
25
|
+
'operation-4xx-response',
|
|
26
|
+
'operation-description',
|
|
27
|
+
'operation-operationId-unique',
|
|
28
|
+
'operation-operationId-url-safe',
|
|
29
|
+
'operation-parameters-unique',
|
|
30
|
+
'operation-singular-tag',
|
|
31
|
+
'operation-summary',
|
|
32
|
+
'operation-tag-defined',
|
|
33
|
+
'parameter-description',
|
|
34
|
+
'path-declaration-must-exist',
|
|
35
|
+
'path-http-verbs-order',
|
|
36
|
+
'path-not-include-query',
|
|
37
|
+
'path-params-defined',
|
|
38
|
+
'path-parameters-defined',
|
|
39
|
+
'path-segment-plural',
|
|
40
|
+
'paths-kebab-case',
|
|
41
|
+
'required-string-property-missing-min-length',
|
|
42
|
+
'response-contains-header',
|
|
43
|
+
'scalar-property-missing-example',
|
|
44
|
+
'security-defined',
|
|
45
|
+
'spec-strict-refs',
|
|
46
|
+
'no-required-schema-properties-undefined',
|
|
47
|
+
'no-schema-type-mismatch',
|
|
48
|
+
'boolean-parameter-prefixes',
|
|
49
|
+
'request-mime-type',
|
|
50
|
+
'response-contains-property',
|
|
51
|
+
'response-mime-type',
|
|
52
|
+
'no-duplicated-tag-names',
|
|
53
|
+
];
|
|
54
|
+
const builtInOAS3Rules = [
|
|
55
|
+
'info-contact',
|
|
56
|
+
'operation-operationId',
|
|
57
|
+
'tag-description',
|
|
58
|
+
'tags-alphabetical',
|
|
59
|
+
'info-license-strict',
|
|
60
|
+
'info-license',
|
|
61
|
+
'no-ambiguous-paths',
|
|
62
|
+
'no-enum-type-mismatch',
|
|
63
|
+
'no-http-verbs-in-paths',
|
|
64
|
+
'no-identical-paths',
|
|
65
|
+
'no-invalid-parameter-examples',
|
|
66
|
+
'no-invalid-schema-examples',
|
|
67
|
+
'no-path-trailing-slash',
|
|
68
|
+
'operation-2xx-response',
|
|
69
|
+
'operation-4xx-response',
|
|
70
|
+
'operation-description',
|
|
71
|
+
'operation-operationId-unique',
|
|
72
|
+
'operation-operationId-url-safe',
|
|
73
|
+
'operation-parameters-unique',
|
|
74
|
+
'operation-singular-tag',
|
|
75
|
+
'operation-summary',
|
|
76
|
+
'operation-tag-defined',
|
|
77
|
+
'parameter-description',
|
|
78
|
+
'path-declaration-must-exist',
|
|
79
|
+
'path-http-verbs-order',
|
|
80
|
+
'path-not-include-query',
|
|
81
|
+
'path-params-defined',
|
|
82
|
+
'path-parameters-defined',
|
|
83
|
+
'path-segment-plural',
|
|
84
|
+
'paths-kebab-case',
|
|
85
|
+
'required-string-property-missing-min-length',
|
|
86
|
+
'response-contains-header',
|
|
87
|
+
'scalar-property-missing-example',
|
|
88
|
+
'security-defined',
|
|
89
|
+
'spec-strict-refs',
|
|
90
|
+
'no-required-schema-properties-undefined',
|
|
91
|
+
'no-schema-type-mismatch',
|
|
92
|
+
'boolean-parameter-prefixes',
|
|
93
|
+
'component-name-unique',
|
|
94
|
+
'no-empty-servers',
|
|
95
|
+
'no-example-value-and-externalValue',
|
|
96
|
+
'no-invalid-media-type-examples',
|
|
97
|
+
'no-server-example.com',
|
|
98
|
+
'no-server-trailing-slash',
|
|
99
|
+
'no-server-variables-empty-enum',
|
|
100
|
+
'no-undefined-server-variable',
|
|
101
|
+
'no-unused-components',
|
|
102
|
+
'operation-4xx-problem-details-rfc7807',
|
|
103
|
+
'request-mime-type',
|
|
104
|
+
'response-contains-property',
|
|
105
|
+
'response-mime-type',
|
|
106
|
+
'spec-components-invalid-map-name',
|
|
107
|
+
'array-parameter-serialization',
|
|
108
|
+
'no-duplicated-tag-names',
|
|
109
|
+
'nullable-type-sibling',
|
|
110
|
+
'spec-no-invalid-tag-parents',
|
|
111
|
+
'spec-no-invalid-encoding-combinations',
|
|
112
|
+
'spec-discriminator-defaultMapping',
|
|
113
|
+
'spec-example-values',
|
|
114
|
+
'spec-querystring-parameters',
|
|
115
|
+
];
|
|
116
|
+
const builtInAsync2Rules = [
|
|
117
|
+
'info-contact',
|
|
118
|
+
'info-license-strict',
|
|
119
|
+
'operation-operationId',
|
|
120
|
+
'tag-description',
|
|
121
|
+
'tags-alphabetical',
|
|
122
|
+
'channels-kebab-case',
|
|
123
|
+
'no-channel-trailing-slash',
|
|
124
|
+
'no-duplicated-tag-names',
|
|
125
|
+
'no-required-schema-properties-undefined',
|
|
126
|
+
'no-enum-type-mismatch',
|
|
127
|
+
'no-schema-type-mismatch',
|
|
128
|
+
];
|
|
129
|
+
const builtInAsync3Rules = [
|
|
130
|
+
'info-contact',
|
|
131
|
+
'info-license-strict',
|
|
132
|
+
'operation-operationId',
|
|
133
|
+
'tag-description',
|
|
134
|
+
'tags-alphabetical',
|
|
135
|
+
'channels-kebab-case',
|
|
136
|
+
'no-channel-trailing-slash',
|
|
137
|
+
'no-duplicated-tag-names',
|
|
138
|
+
'no-required-schema-properties-undefined',
|
|
139
|
+
'no-enum-type-mismatch',
|
|
140
|
+
'no-schema-type-mismatch',
|
|
141
|
+
];
|
|
142
|
+
const builtInArazzo1Rules = [
|
|
143
|
+
'sourceDescription-type',
|
|
144
|
+
'workflowId-unique',
|
|
145
|
+
'stepId-unique',
|
|
146
|
+
'sourceDescription-name-unique',
|
|
147
|
+
'sourceDescriptions-not-empty',
|
|
148
|
+
'workflow-dependsOn',
|
|
149
|
+
'outputs-defined',
|
|
150
|
+
'parameters-unique',
|
|
151
|
+
'step-onSuccess-unique',
|
|
152
|
+
'step-onFailure-unique',
|
|
153
|
+
'respect-supported-versions',
|
|
154
|
+
'requestBody-replacements-unique',
|
|
155
|
+
'no-criteria-xpath',
|
|
156
|
+
'criteria-unique',
|
|
157
|
+
'no-x-security-scheme-name-without-openapi',
|
|
158
|
+
'x-security-scheme-required-values',
|
|
159
|
+
'no-x-security-both-scheme-and-scheme-name',
|
|
160
|
+
'no-required-schema-properties-undefined',
|
|
161
|
+
'no-enum-type-mismatch',
|
|
162
|
+
'no-schema-type-mismatch',
|
|
163
|
+
'x-security-scheme-name-reference',
|
|
164
|
+
];
|
|
165
|
+
const builtInOverlay1Rules = ['info-contact'];
|
|
166
|
+
const builtInOpenRpc1Rules = [
|
|
167
|
+
'info-contact',
|
|
168
|
+
'info-license',
|
|
169
|
+
'no-unused-components',
|
|
170
|
+
'spec-no-duplicated-method-params',
|
|
171
|
+
'spec-no-required-params-after-optional',
|
|
172
|
+
];
|
|
173
|
+
const builtInCommonRules = ['struct', 'no-unresolved-refs'];
|
|
174
|
+
const builtInRules = [
|
|
175
|
+
...builtInOAS2Rules,
|
|
176
|
+
...builtInOAS3Rules,
|
|
177
|
+
...builtInAsync2Rules,
|
|
178
|
+
...builtInAsync3Rules,
|
|
179
|
+
...builtInArazzo1Rules,
|
|
180
|
+
...builtInOverlay1Rules,
|
|
181
|
+
...builtInOpenRpc1Rules,
|
|
182
|
+
...builtInCommonRules,
|
|
183
|
+
];
|
|
184
|
+
const configGovernanceProperties = {
|
|
185
|
+
extends: {
|
|
186
|
+
name: 'Extends',
|
|
187
|
+
properties: {},
|
|
188
|
+
items: (node) => {
|
|
189
|
+
// check if it's preset name
|
|
190
|
+
if (typeof node === 'string' && !isAbsoluteUrl(node) && !path.extname(node)) {
|
|
191
|
+
return { type: 'string' };
|
|
192
|
+
}
|
|
193
|
+
return {
|
|
194
|
+
...ConfigGovernance,
|
|
195
|
+
directResolveAs: { name: 'ConfigGovernance', ...ConfigGovernance },
|
|
196
|
+
};
|
|
197
|
+
},
|
|
198
|
+
description: 'Use extends to inherit rules and their configurations from other rulesets.',
|
|
199
|
+
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/extends#extends',
|
|
200
|
+
},
|
|
201
|
+
plugins: { type: 'array', items: { type: 'string' } },
|
|
202
|
+
rules: 'Rules',
|
|
203
|
+
oas2Rules: 'Rules',
|
|
204
|
+
oas3_0Rules: 'Rules',
|
|
205
|
+
oas3_1Rules: 'Rules',
|
|
206
|
+
oas3_2Rules: 'Rules',
|
|
207
|
+
async2Rules: 'Rules',
|
|
208
|
+
async3Rules: 'Rules',
|
|
209
|
+
arazzo1Rules: 'Rules',
|
|
210
|
+
overlay1Rules: 'Rules',
|
|
211
|
+
openrpc1Rules: 'Rules',
|
|
212
|
+
preprocessors: 'Preprocessors',
|
|
213
|
+
oas2Preprocessors: 'Preprocessors',
|
|
214
|
+
oas3_0Preprocessors: 'Preprocessors',
|
|
215
|
+
oas3_1Preprocessors: 'Preprocessors',
|
|
216
|
+
oas3_2Preprocessors: 'Preprocessors',
|
|
217
|
+
async2Preprocessors: 'Preprocessors',
|
|
218
|
+
async3Preprocessors: 'Preprocessors',
|
|
219
|
+
arazzo1Preprocessors: 'Preprocessors',
|
|
220
|
+
overlay1Preprocessors: 'Preprocessors',
|
|
221
|
+
openrpc1Preprocessors: 'Preprocessors',
|
|
222
|
+
decorators: 'Decorators',
|
|
223
|
+
oas2Decorators: 'Decorators',
|
|
224
|
+
oas3_0Decorators: 'Decorators',
|
|
225
|
+
oas3_1Decorators: 'Decorators',
|
|
226
|
+
oas3_2Decorators: 'Decorators',
|
|
227
|
+
async2Decorators: 'Decorators',
|
|
228
|
+
async3Decorators: 'Decorators',
|
|
229
|
+
arazzo1Decorators: 'Decorators',
|
|
230
|
+
overlay1Decorators: 'Decorators',
|
|
231
|
+
openrpc1Decorators: 'Decorators',
|
|
232
|
+
};
|
|
233
|
+
const ConfigGovernance = {
|
|
234
|
+
properties: configGovernanceProperties,
|
|
235
|
+
};
|
|
236
|
+
const createConfigRoot = (nodeTypes) => ({
|
|
237
|
+
...nodeTypes.rootRedoclyConfigSchema,
|
|
238
|
+
properties: {
|
|
239
|
+
...nodeTypes.rootRedoclyConfigSchema.properties,
|
|
240
|
+
...ConfigGovernance.properties,
|
|
241
|
+
apis: 'ConfigApis', // Override apis with internal format
|
|
242
|
+
telemetry: { enum: ['on', 'off'] },
|
|
243
|
+
resolve: {
|
|
244
|
+
properties: {
|
|
245
|
+
http: 'ConfigHTTP',
|
|
246
|
+
doNotResolveExamples: { type: 'boolean' },
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
const ConfigApis = {
|
|
252
|
+
properties: {},
|
|
253
|
+
additionalProperties: 'ConfigApisProperties',
|
|
254
|
+
description: 'The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.',
|
|
255
|
+
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/apis',
|
|
256
|
+
};
|
|
257
|
+
const createConfigApisProperties = (nodeTypes) => ({
|
|
258
|
+
...nodeTypes['rootRedoclyConfigSchema.apis_additionalProperties'],
|
|
259
|
+
properties: {
|
|
260
|
+
...nodeTypes['rootRedoclyConfigSchema.apis_additionalProperties']?.properties,
|
|
261
|
+
...omit(ConfigGovernance.properties, ['plugins']), // plugins are not allowed in apis
|
|
262
|
+
},
|
|
263
|
+
});
|
|
264
|
+
const ConfigHTTP = {
|
|
265
|
+
properties: {
|
|
266
|
+
headers: {
|
|
267
|
+
type: 'array',
|
|
268
|
+
items: {
|
|
269
|
+
type: 'string',
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
};
|
|
274
|
+
const Rules = {
|
|
275
|
+
properties: {},
|
|
276
|
+
description: 'The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.',
|
|
277
|
+
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/rules#rules',
|
|
278
|
+
additionalProperties: (value, key) => {
|
|
279
|
+
if (key.startsWith('rule/')) {
|
|
280
|
+
if (typeof value === 'string') {
|
|
281
|
+
return { enum: ['error', 'warn', 'off'] };
|
|
282
|
+
}
|
|
283
|
+
else {
|
|
284
|
+
return 'ConfigurableRule';
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
else if (builtInRules.includes(key) || isCustomRuleId(key)) {
|
|
288
|
+
if (typeof value === 'string') {
|
|
289
|
+
return { enum: ['error', 'warn', 'off'] };
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
return 'BuiltinRule';
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
else if (key === 'metadata-schema' || key === 'custom-fields-schema') {
|
|
296
|
+
return 'Schema';
|
|
297
|
+
}
|
|
298
|
+
// Otherwise is considered as invalid
|
|
299
|
+
return;
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
const BuiltinRule = {
|
|
303
|
+
properties: {
|
|
304
|
+
severity: { enum: ['error', 'warn', 'off'] },
|
|
305
|
+
},
|
|
306
|
+
additionalProperties: {},
|
|
307
|
+
required: ['severity'],
|
|
308
|
+
description: 'Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.',
|
|
309
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/built-in-rules',
|
|
310
|
+
};
|
|
311
|
+
const Decorators = {
|
|
312
|
+
properties: {},
|
|
313
|
+
additionalProperties: {},
|
|
314
|
+
description: 'Decorators define transformations that can be applied to the API document during the bundle step.',
|
|
315
|
+
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/decorators',
|
|
316
|
+
};
|
|
317
|
+
const Preprocessors = {
|
|
318
|
+
properties: {},
|
|
319
|
+
additionalProperties: {},
|
|
320
|
+
description: 'Preprocessors define transformations that can be applied to the API document before bundling.',
|
|
321
|
+
documentationLink: 'https://redocly.com/docs/cli/configuration/reference/preprocessors',
|
|
322
|
+
};
|
|
323
|
+
// TODO: add better type tree for this
|
|
324
|
+
const Schema = {
|
|
325
|
+
properties: {
|
|
326
|
+
properties: mapOf('Schema'),
|
|
327
|
+
},
|
|
328
|
+
additionalProperties: {},
|
|
329
|
+
};
|
|
330
|
+
function createAssertionDefinitionSubject(nodeNames) {
|
|
331
|
+
return {
|
|
332
|
+
properties: {
|
|
333
|
+
type: {
|
|
334
|
+
enum: [...new Set(['any', ...nodeNames, 'SpecExtension'])],
|
|
335
|
+
description: 'REQUIRED. Locates the OpenAPI node type that the lint command evaluates.',
|
|
336
|
+
},
|
|
337
|
+
property: (value) => {
|
|
338
|
+
if (Array.isArray(value)) {
|
|
339
|
+
return {
|
|
340
|
+
type: 'array',
|
|
341
|
+
items: { type: 'string' },
|
|
342
|
+
description: 'Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.',
|
|
343
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#property-example',
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
else if (value === null) {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
else {
|
|
350
|
+
return {
|
|
351
|
+
type: 'string',
|
|
352
|
+
description: 'Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.',
|
|
353
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#property-example',
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
filterInParentKeys: {
|
|
358
|
+
type: 'array',
|
|
359
|
+
items: { type: 'string' },
|
|
360
|
+
description: `The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.`,
|
|
361
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example',
|
|
362
|
+
},
|
|
363
|
+
filterOutParentKeys: {
|
|
364
|
+
type: 'array',
|
|
365
|
+
items: { type: 'string' },
|
|
366
|
+
description: `The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions.`,
|
|
367
|
+
},
|
|
368
|
+
matchParentKeys: {
|
|
369
|
+
type: 'string',
|
|
370
|
+
description: `Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions.`,
|
|
371
|
+
},
|
|
372
|
+
},
|
|
373
|
+
required: ['type'],
|
|
374
|
+
description: 'REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.',
|
|
375
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#subject-object',
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
function createScorecardLevelsItems(nodeTypes) {
|
|
379
|
+
return {
|
|
380
|
+
...nodeTypes[redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel],
|
|
381
|
+
properties: {
|
|
382
|
+
...nodeTypes[redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel]?.properties,
|
|
383
|
+
...configGovernanceProperties,
|
|
384
|
+
},
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
const Assertions = {
|
|
388
|
+
properties: {
|
|
389
|
+
enum: {
|
|
390
|
+
type: 'array',
|
|
391
|
+
items: { type: 'string' },
|
|
392
|
+
description: 'Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.',
|
|
393
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#enum-example',
|
|
394
|
+
},
|
|
395
|
+
pattern: {
|
|
396
|
+
type: 'string',
|
|
397
|
+
description: 'Asserts a value matches a regex pattern.',
|
|
398
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#pattern-example',
|
|
399
|
+
},
|
|
400
|
+
notPattern: {
|
|
401
|
+
type: 'string',
|
|
402
|
+
description: `Asserts a value doesn't match a regex pattern.`,
|
|
403
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example',
|
|
404
|
+
},
|
|
405
|
+
casing: {
|
|
406
|
+
enum: [
|
|
407
|
+
'camelCase',
|
|
408
|
+
'kebab-case',
|
|
409
|
+
'snake_case',
|
|
410
|
+
'PascalCase',
|
|
411
|
+
'MACRO_CASE',
|
|
412
|
+
'COBOL-CASE',
|
|
413
|
+
'flatcase',
|
|
414
|
+
],
|
|
415
|
+
description: 'Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.',
|
|
416
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#casing-example',
|
|
417
|
+
},
|
|
418
|
+
mutuallyExclusive: {
|
|
419
|
+
type: 'array',
|
|
420
|
+
items: { type: 'string' },
|
|
421
|
+
description: 'Asserts that listed properties (key names only) are mutually exclusive.',
|
|
422
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example',
|
|
423
|
+
},
|
|
424
|
+
mutuallyRequired: {
|
|
425
|
+
type: 'array',
|
|
426
|
+
items: { type: 'string' },
|
|
427
|
+
description: 'Asserts that listed properties (key names only) are mutually required.',
|
|
428
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example',
|
|
429
|
+
},
|
|
430
|
+
required: {
|
|
431
|
+
type: 'array',
|
|
432
|
+
items: { type: 'string' },
|
|
433
|
+
description: 'Asserts all listed values are defined.',
|
|
434
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#required-example',
|
|
435
|
+
},
|
|
436
|
+
requireAny: {
|
|
437
|
+
type: 'array',
|
|
438
|
+
items: { type: 'string' },
|
|
439
|
+
description: 'Asserts that at least one of the listed properties (key names only) is defined. ',
|
|
440
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#requireany-example',
|
|
441
|
+
},
|
|
442
|
+
disallowed: {
|
|
443
|
+
type: 'array',
|
|
444
|
+
items: { type: 'string' },
|
|
445
|
+
description: 'Asserts all listed values are not defined.',
|
|
446
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example',
|
|
447
|
+
},
|
|
448
|
+
defined: {
|
|
449
|
+
type: 'boolean',
|
|
450
|
+
description: 'Asserts a property is defined.',
|
|
451
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#defined-example',
|
|
452
|
+
},
|
|
453
|
+
nonEmpty: {
|
|
454
|
+
type: 'boolean',
|
|
455
|
+
description: 'Asserts a property is not empty.',
|
|
456
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example',
|
|
457
|
+
},
|
|
458
|
+
minLength: {
|
|
459
|
+
type: 'integer',
|
|
460
|
+
description: 'Asserts a minimum length (inclusive) of a string or list (array).',
|
|
461
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#minlength-example',
|
|
462
|
+
},
|
|
463
|
+
maxLength: {
|
|
464
|
+
type: 'integer',
|
|
465
|
+
description: 'Asserts a maximum length (inclusive) of a string or list (array).',
|
|
466
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example',
|
|
467
|
+
},
|
|
468
|
+
ref: (value) => typeof value === 'string'
|
|
469
|
+
? {
|
|
470
|
+
type: 'string',
|
|
471
|
+
description: `Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').`,
|
|
472
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#ref-example',
|
|
473
|
+
}
|
|
474
|
+
: {
|
|
475
|
+
type: 'boolean',
|
|
476
|
+
description: `Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').`,
|
|
477
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#ref-example',
|
|
478
|
+
},
|
|
479
|
+
const: (value) => {
|
|
480
|
+
if (typeof value === 'string') {
|
|
481
|
+
return {
|
|
482
|
+
type: 'string',
|
|
483
|
+
description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
|
|
484
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
|
|
485
|
+
};
|
|
486
|
+
}
|
|
487
|
+
if (typeof value === 'number') {
|
|
488
|
+
return {
|
|
489
|
+
type: 'number',
|
|
490
|
+
description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
|
|
491
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
|
|
492
|
+
};
|
|
493
|
+
}
|
|
494
|
+
if (typeof value === 'boolean') {
|
|
495
|
+
return {
|
|
496
|
+
type: 'boolean',
|
|
497
|
+
description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
|
|
498
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
|
|
499
|
+
};
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
},
|
|
506
|
+
additionalProperties: (_value, key) => {
|
|
507
|
+
if (/^\w+\/\w+$/.test(key))
|
|
508
|
+
return {};
|
|
509
|
+
return;
|
|
510
|
+
},
|
|
511
|
+
description: 'A minimum of one assertion property is required to be defined.',
|
|
512
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#assertion-object',
|
|
513
|
+
};
|
|
514
|
+
const Where = {
|
|
515
|
+
properties: {
|
|
516
|
+
subject: 'Subject',
|
|
517
|
+
assertions: 'Assertions',
|
|
518
|
+
},
|
|
519
|
+
required: ['subject', 'assertions'],
|
|
520
|
+
description: 'The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.',
|
|
521
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#where-object',
|
|
522
|
+
};
|
|
523
|
+
const ConfigurableRule = {
|
|
524
|
+
properties: {
|
|
525
|
+
subject: 'Subject',
|
|
526
|
+
assertions: 'Assertions',
|
|
527
|
+
where: listOf('Where'),
|
|
528
|
+
message: { type: 'string' },
|
|
529
|
+
suggest: { type: 'array', items: { type: 'string' } },
|
|
530
|
+
severity: { enum: ['error', 'warn', 'off'] },
|
|
531
|
+
},
|
|
532
|
+
required: ['subject', 'assertions'],
|
|
533
|
+
description: 'Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.',
|
|
534
|
+
documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object',
|
|
535
|
+
};
|
|
536
|
+
export function createConfigTypes(extraSchemas, config) {
|
|
537
|
+
const nodeNames = specVersions.flatMap((version) => {
|
|
538
|
+
const types = config ? config.extendTypes(getTypes(version), version) : getTypes(version);
|
|
539
|
+
return Object.keys(types);
|
|
540
|
+
});
|
|
541
|
+
// Create types based on external schemas
|
|
542
|
+
const { ctx: nodeTypes } = getNodeTypesFromJSONSchema('rootRedoclyConfigSchema', extraSchemas);
|
|
543
|
+
return {
|
|
544
|
+
...CoreConfigTypes,
|
|
545
|
+
ConfigRoot: createConfigRoot(nodeTypes), // This is the REAL config root type
|
|
546
|
+
ConfigApisProperties: createConfigApisProperties(nodeTypes),
|
|
547
|
+
Subject: createAssertionDefinitionSubject(nodeNames),
|
|
548
|
+
...nodeTypes,
|
|
549
|
+
[redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel]: createScorecardLevelsItems(nodeTypes),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
const CoreConfigTypes = {
|
|
553
|
+
ConfigurableRule,
|
|
554
|
+
ConfigApis,
|
|
555
|
+
ConfigGovernance,
|
|
556
|
+
ConfigHTTP,
|
|
557
|
+
Where,
|
|
558
|
+
BuiltinRule,
|
|
559
|
+
Schema,
|
|
560
|
+
Rules,
|
|
561
|
+
Decorators,
|
|
562
|
+
Preprocessors,
|
|
563
|
+
Assertions,
|
|
564
|
+
};
|
|
565
|
+
// FIXME: remove this once we remove `theme` from the schema
|
|
566
|
+
const { theme: _, ...propertiesWithoutTheme } = redoclyConfig.rootRedoclyConfigSchema.properties;
|
|
567
|
+
const redoclyConfigSchemaWithoutTheme = {
|
|
568
|
+
...redoclyConfig.rootRedoclyConfigSchema,
|
|
569
|
+
properties: propertiesWithoutTheme,
|
|
570
|
+
};
|
|
571
|
+
export const ConfigTypes = createConfigTypes(redoclyConfigSchemaWithoutTheme);
|
|
572
|
+
export const NormalizedConfigTypes = normalizeTypes(ConfigTypes);
|
|
573
|
+
//# sourceMappingURL=redocly-yaml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redocly-yaml.js","sourceRoot":"","sources":["../../src/types/redocly-yaml.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,iBAAiB,CAAC;AAEjD,OAAO,IAAI,MAAM,WAAW,CAAC;AAG7B,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAE3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAEtE,MAAM,gBAAgB,GAAG;IACvB,cAAc;IACd,uBAAuB;IACvB,iBAAiB;IACjB,mBAAmB;IACnB,qBAAqB;IACrB,cAAc;IACd,oBAAoB;IACpB,uBAAuB;IACvB,wBAAwB;IACxB,oBAAoB;IACpB,+BAA+B;IAC/B,4BAA4B;IAC5B,wBAAwB;IACxB,wBAAwB;IACxB,wBAAwB;IACxB,uBAAuB;IACvB,8BAA8B;IAC9B,gCAAgC;IAChC,6BAA6B;IAC7B,wBAAwB;IACxB,mBAAmB;IACnB,uBAAuB;IACvB,uBAAuB;IACvB,6BAA6B;IAC7B,uBAAuB;IACvB,wBAAwB;IACxB,qBAAqB;IACrB,yBAAyB;IACzB,qBAAqB;IACrB,kBAAkB;IAClB,6CAA6C;IAC7C,0BAA0B;IAC1B,iCAAiC;IACjC,kBAAkB;IACl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