@redocly/openapi-core 0.0.0-snapshot.1744362365 → 0.0.0-snapshot.1744801622
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/lib/benchmark/benches/lint-with-many-rules.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-many-rules.bench.js +19 -17
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-no-rules.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +19 -15
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts +1 -2
- package/lib/benchmark/benches/recommended-oas3.bench.js +18 -15
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts +1 -2
- package/lib/benchmark/benches/resolve-with-no-external.bench.js +17 -14
- package/lib/benchmark/utils.d.ts +4 -5
- package/lib/benchmark/utils.js +14 -11
- package/lib/bundle.d.ts +9 -8
- package/lib/bundle.js +84 -72
- package/lib/config/all.d.ts +1 -2
- package/lib/config/all.js +3 -2
- package/lib/config/builtIn.d.ts +1 -2
- package/lib/config/builtIn.js +49 -44
- package/lib/config/config-resolvers.d.ts +5 -6
- package/lib/config/config-resolvers.js +94 -85
- package/lib/config/config.d.ts +8 -6
- package/lib/config/config.js +73 -66
- package/lib/config/index.d.ts +7 -8
- package/lib/config/index.js +23 -8
- package/lib/config/load.d.ts +8 -5
- package/lib/config/load.js +73 -28
- package/lib/config/minimal.d.ts +1 -2
- package/lib/config/minimal.js +3 -2
- package/lib/config/recommended-strict.d.ts +1 -2
- package/lib/config/recommended-strict.js +3 -2
- package/lib/config/recommended.d.ts +1 -2
- package/lib/config/recommended.js +3 -2
- package/lib/config/rules.d.ts +3 -4
- package/lib/config/rules.js +6 -4
- package/lib/config/spec.d.ts +1 -2
- package/lib/config/spec.js +3 -2
- package/lib/config/types.d.ts +13 -6
- package/lib/config/types.js +2 -2
- package/lib/config/utils.d.ts +2 -3
- package/lib/config/utils.js +89 -75
- package/lib/decorators/arazzo/index.d.ts +0 -1
- package/lib/decorators/arazzo/index.js +4 -2
- package/lib/decorators/async2/index.d.ts +0 -1
- package/lib/decorators/async2/index.js +4 -2
- package/lib/decorators/async3/index.d.ts +0 -1
- package/lib/decorators/async3/index.js +4 -2
- package/lib/decorators/common/filters/filter-helper.d.ts +1 -2
- package/lib/decorators/common/filters/filter-helper.js +12 -9
- package/lib/decorators/common/filters/filter-in.d.ts +1 -2
- package/lib/decorators/common/filters/filter-in.js +8 -5
- package/lib/decorators/common/filters/filter-out.d.ts +1 -2
- package/lib/decorators/common/filters/filter-out.js +8 -5
- package/lib/decorators/common/info-description-override.d.ts +1 -2
- package/lib/decorators/common/info-description-override.js +7 -4
- package/lib/decorators/common/info-override.d.ts +1 -2
- package/lib/decorators/common/info-override.js +5 -2
- package/lib/decorators/common/media-type-examples-override.d.ts +1 -2
- package/lib/decorators/common/media-type-examples-override.js +10 -7
- package/lib/decorators/common/operation-description-override.d.ts +1 -2
- package/lib/decorators/common/operation-description-override.js +7 -4
- package/lib/decorators/common/registry-dependencies.d.ts +2 -0
- package/lib/decorators/common/registry-dependencies.js +24 -0
- package/lib/decorators/common/remove-x-internal.d.ts +1 -2
- package/lib/decorators/common/remove-x-internal.js +14 -11
- package/lib/decorators/common/tag-description-override.d.ts +1 -2
- package/lib/decorators/common/tag-description-override.js +7 -4
- package/lib/decorators/oas2/index.d.ts +2 -2
- package/lib/decorators/oas2/index.js +20 -16
- package/lib/decorators/oas2/remove-unused-components.d.ts +1 -2
- package/lib/decorators/oas2/remove-unused-components.js +7 -4
- package/lib/decorators/oas3/index.d.ts +2 -2
- package/lib/decorators/oas3/index.js +22 -18
- package/lib/decorators/oas3/remove-unused-components.d.ts +1 -2
- package/lib/decorators/oas3/remove-unused-components.js +8 -5
- package/lib/decorators/overlay1/index.d.ts +0 -1
- package/lib/decorators/overlay1/index.js +4 -2
- package/lib/env.d.ts +0 -1
- package/lib/env.js +5 -3
- package/lib/format/codeframes.d.ts +1 -2
- package/lib/format/codeframes.js +19 -15
- package/lib/format/format.d.ts +1 -2
- package/lib/format/format.js +62 -57
- package/lib/index.d.ts +26 -29
- package/lib/index.js +98 -24
- package/lib/js-yaml/index.d.ts +0 -1
- package/lib/js-yaml/index.js +11 -7
- package/lib/lint.d.ts +10 -11
- package/lib/lint.js +44 -39
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +17 -15
- package/lib/oas-types.d.ts +3 -4
- package/lib/oas-types.js +32 -27
- package/lib/output.d.ts +3 -0
- package/lib/output.js +9 -0
- package/lib/redocly/domains.d.ts +14 -0
- package/lib/redocly/domains.js +41 -0
- package/lib/redocly/index.d.ts +30 -0
- package/lib/redocly/index.js +131 -0
- package/lib/redocly/redocly-client-types.d.ts +8 -0
- package/lib/redocly/redocly-client-types.js +2 -0
- package/lib/redocly/registry-api-types.d.ts +29 -0
- package/lib/redocly/registry-api-types.js +2 -0
- package/lib/redocly/registry-api.d.ts +17 -0
- package/lib/redocly/registry-api.js +100 -0
- package/lib/ref-utils.d.ts +2 -3
- package/lib/ref-utils.js +33 -18
- package/lib/resolve.d.ts +2 -3
- package/lib/resolve.js +45 -36
- package/lib/rules/ajv.d.ts +3 -4
- package/lib/rules/ajv.js +10 -7
- package/lib/rules/arazzo/criteria-unique.d.ts +1 -2
- package/lib/rules/arazzo/criteria-unique.js +5 -2
- package/lib/rules/arazzo/index.d.ts +1 -2
- package/lib/rules/arazzo/index.js +35 -33
- package/lib/rules/arazzo/parameters-unique.d.ts +1 -2
- package/lib/rules/arazzo/parameters-unique.js +5 -2
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +1 -2
- package/lib/rules/arazzo/requestBody-replacements-unique.js +5 -2
- package/lib/rules/arazzo/sourceDescription-type.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescription-type.js +5 -2
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js +5 -2
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js +5 -2
- package/lib/rules/arazzo/step-onFailure-unique.d.ts +1 -2
- package/lib/rules/arazzo/step-onFailure-unique.js +5 -2
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts +1 -2
- package/lib/rules/arazzo/step-onSuccess-unique.js +5 -2
- package/lib/rules/arazzo/stepId-unique.d.ts +1 -2
- package/lib/rules/arazzo/stepId-unique.js +5 -2
- package/lib/rules/arazzo/workflow-dependsOn.d.ts +1 -2
- package/lib/rules/arazzo/workflow-dependsOn.js +5 -2
- package/lib/rules/arazzo/workflowId-unique.d.ts +1 -2
- package/lib/rules/arazzo/workflowId-unique.js +5 -2
- package/lib/rules/async2/channels-kebab-case.d.ts +1 -2
- package/lib/rules/async2/channels-kebab-case.js +5 -2
- package/lib/rules/async2/index.d.ts +1 -2
- package/lib/rules/async2/index.js +24 -22
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +1 -2
- package/lib/rules/async2/no-channel-trailing-slash.js +5 -2
- package/lib/rules/async3/channels-kebab-case.d.ts +1 -2
- package/lib/rules/async3/channels-kebab-case.js +5 -2
- package/lib/rules/async3/index.d.ts +1 -2
- package/lib/rules/async3/index.js +24 -22
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +1 -2
- package/lib/rules/async3/no-channel-trailing-slash.js +6 -3
- package/lib/rules/common/assertions/asserts.d.ts +2 -3
- package/lib/rules/common/assertions/asserts.js +38 -35
- package/lib/rules/common/assertions/index.d.ts +3 -4
- package/lib/rules/common/assertions/index.js +10 -7
- package/lib/rules/common/assertions/utils.d.ts +4 -5
- package/lib/rules/common/assertions/utils.js +29 -21
- package/lib/rules/common/info-contact.d.ts +1 -2
- package/lib/rules/common/info-contact.js +7 -4
- package/lib/rules/common/info-license-strict.d.ts +1 -2
- package/lib/rules/common/info-license-strict.js +10 -7
- package/lib/rules/common/info-license-url.d.ts +1 -2
- package/lib/rules/common/info-license-url.js +7 -4
- package/lib/rules/common/info-license.d.ts +1 -2
- package/lib/rules/common/info-license.js +7 -4
- package/lib/rules/common/no-ambiguous-paths.d.ts +1 -2
- package/lib/rules/common/no-ambiguous-paths.js +5 -2
- package/lib/rules/common/no-enum-type-mismatch.d.ts +1 -2
- package/lib/rules/common/no-enum-type-mismatch.js +9 -6
- package/lib/rules/common/no-http-verbs-in-paths.d.ts +1 -2
- package/lib/rules/common/no-http-verbs-in-paths.js +8 -5
- package/lib/rules/common/no-identical-paths.d.ts +1 -2
- package/lib/rules/common/no-identical-paths.js +5 -2
- package/lib/rules/common/no-invalid-parameter-examples.d.ts +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.js +9 -6
- package/lib/rules/common/no-invalid-schema-examples.d.ts +1 -2
- package/lib/rules/common/no-invalid-schema-examples.js +9 -6
- package/lib/rules/common/no-path-trailing-slash.d.ts +1 -2
- package/lib/rules/common/no-path-trailing-slash.js +5 -2
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts +1 -2
- package/lib/rules/common/no-required-schema-properties-undefined.js +7 -4
- package/lib/rules/common/no-schema-type-mismatch.d.ts +1 -2
- package/lib/rules/common/no-schema-type-mismatch.js +5 -2
- package/lib/rules/common/operation-2xx-response.d.ts +1 -2
- package/lib/rules/common/operation-2xx-response.js +8 -5
- package/lib/rules/common/operation-4xx-response.d.ts +1 -2
- package/lib/rules/common/operation-4xx-response.js +8 -5
- package/lib/rules/common/operation-description.d.ts +1 -2
- package/lib/rules/common/operation-description.js +7 -4
- package/lib/rules/common/operation-operationId-unique.d.ts +1 -2
- package/lib/rules/common/operation-operationId-unique.js +5 -2
- package/lib/rules/common/operation-operationId-url-safe.d.ts +1 -2
- package/lib/rules/common/operation-operationId-url-safe.js +5 -2
- package/lib/rules/common/operation-operationId.d.ts +1 -2
- package/lib/rules/common/operation-operationId.js +7 -4
- package/lib/rules/common/operation-parameters-unique.d.ts +1 -2
- package/lib/rules/common/operation-parameters-unique.js +5 -2
- package/lib/rules/common/operation-singular-tag.d.ts +1 -2
- package/lib/rules/common/operation-singular-tag.js +5 -2
- package/lib/rules/common/operation-summary.d.ts +1 -2
- package/lib/rules/common/operation-summary.js +7 -4
- package/lib/rules/common/operation-tag-defined.d.ts +1 -2
- package/lib/rules/common/operation-tag-defined.js +5 -2
- package/lib/rules/common/parameter-description.d.ts +1 -2
- package/lib/rules/common/parameter-description.js +5 -2
- package/lib/rules/common/path-declaration-must-exist.d.ts +1 -2
- package/lib/rules/common/path-declaration-must-exist.js +5 -2
- package/lib/rules/common/path-excludes-patterns.d.ts +1 -2
- package/lib/rules/common/path-excludes-patterns.js +5 -2
- package/lib/rules/common/path-http-verbs-order.d.ts +1 -2
- package/lib/rules/common/path-http-verbs-order.js +5 -2
- package/lib/rules/common/path-not-include-query.d.ts +1 -2
- package/lib/rules/common/path-not-include-query.js +5 -2
- package/lib/rules/common/path-params-defined.d.ts +1 -2
- package/lib/rules/common/path-params-defined.js +5 -2
- package/lib/rules/common/path-segment-plural.d.ts +1 -2
- package/lib/rules/common/path-segment-plural.js +8 -5
- package/lib/rules/common/paths-kebab-case.d.ts +1 -2
- package/lib/rules/common/paths-kebab-case.js +5 -2
- package/lib/rules/common/required-string-property-missing-min-length.d.ts +1 -2
- package/lib/rules/common/required-string-property-missing-min-length.js +5 -2
- package/lib/rules/common/response-contains-header.d.ts +1 -2
- package/lib/rules/common/response-contains-header.js +8 -5
- package/lib/rules/common/scalar-property-missing-example.d.ts +1 -2
- package/lib/rules/common/scalar-property-missing-example.js +7 -4
- package/lib/rules/common/security-defined.d.ts +1 -2
- package/lib/rules/common/security-defined.js +5 -2
- package/lib/rules/common/spec-strict-refs.d.ts +1 -2
- package/lib/rules/common/spec-strict-refs.js +7 -4
- package/lib/rules/common/struct.d.ts +1 -2
- package/lib/rules/common/struct.js +21 -18
- package/lib/rules/common/tag-description.d.ts +1 -2
- package/lib/rules/common/tag-description.js +7 -4
- package/lib/rules/common/tags-alphabetical.d.ts +1 -2
- package/lib/rules/common/tags-alphabetical.js +5 -2
- package/lib/rules/no-unresolved-refs.d.ts +3 -4
- package/lib/rules/no-unresolved-refs.js +9 -5
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +1 -2
- package/lib/rules/oas2/boolean-parameter-prefixes.js +5 -2
- package/lib/rules/oas2/index.d.ts +1 -2
- package/lib/rules/oas2/index.js +97 -95
- package/lib/rules/oas2/request-mime-type.d.ts +1 -2
- package/lib/rules/oas2/request-mime-type.js +8 -5
- package/lib/rules/oas2/response-contains-property.d.ts +1 -2
- package/lib/rules/oas2/response-contains-property.js +8 -5
- package/lib/rules/oas2/response-mime-type.d.ts +1 -2
- package/lib/rules/oas2/response-mime-type.js +8 -5
- package/lib/rules/oas3/array-parameter-serialization.d.ts +1 -2
- package/lib/rules/oas3/array-parameter-serialization.js +7 -4
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +1 -2
- package/lib/rules/oas3/boolean-parameter-prefixes.js +5 -2
- package/lib/rules/oas3/component-name-unique.d.ts +1 -2
- package/lib/rules/oas3/component-name-unique.js +5 -2
- package/lib/rules/oas3/index.d.ts +1 -2
- package/lib/rules/oas3/index.js +121 -119
- package/lib/rules/oas3/no-empty-servers.d.ts +1 -2
- package/lib/rules/oas3/no-empty-servers.js +5 -2
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +1 -2
- package/lib/rules/oas3/no-example-value-and-externalValue.js +5 -2
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +1 -2
- package/lib/rules/oas3/no-invalid-media-type-examples.js +10 -7
- package/lib/rules/oas3/no-server-example.com.d.ts +1 -2
- package/lib/rules/oas3/no-server-example.com.js +5 -2
- package/lib/rules/oas3/no-server-trailing-slash.d.ts +1 -2
- package/lib/rules/oas3/no-server-trailing-slash.js +5 -2
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +1 -2
- package/lib/rules/oas3/no-server-variables-empty-enum.js +5 -2
- package/lib/rules/oas3/no-undefined-server-variable.d.ts +1 -2
- package/lib/rules/oas3/no-undefined-server-variable.js +5 -2
- package/lib/rules/oas3/no-unused-components.d.ts +1 -2
- package/lib/rules/oas3/no-unused-components.js +5 -2
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +1 -2
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +9 -6
- package/lib/rules/oas3/request-mime-type.d.ts +1 -2
- package/lib/rules/oas3/request-mime-type.js +9 -6
- package/lib/rules/oas3/response-contains-property.d.ts +1 -2
- package/lib/rules/oas3/response-contains-property.js +8 -5
- package/lib/rules/oas3/response-mime-type.d.ts +1 -2
- package/lib/rules/oas3/response-mime-type.js +9 -6
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +1 -2
- package/lib/rules/oas3/spec-components-invalid-map-name.js +5 -2
- package/lib/rules/other/stats.d.ts +3 -4
- package/lib/rules/other/stats.js +5 -2
- package/lib/rules/overlay1/index.d.ts +1 -2
- package/lib/rules/overlay1/index.js +11 -9
- package/lib/rules/respect/no-criteria-xpath.d.ts +1 -2
- package/lib/rules/respect/no-criteria-xpath.js +5 -2
- package/lib/rules/respect/respect-supported-versions.d.ts +1 -2
- package/lib/rules/respect/respect-supported-versions.js +10 -7
- package/lib/rules/utils.d.ts +3 -4
- package/lib/rules/utils.js +36 -23
- package/lib/types/arazzo.d.ts +1 -2
- package/lib/types/arazzo.js +23 -21
- package/lib/types/asyncapi2.d.ts +1 -2
- package/lib/types/asyncapi2.js +56 -54
- package/lib/types/asyncapi3.d.ts +1 -2
- package/lib/types/asyncapi3.js +43 -41
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +13 -7
- package/lib/types/json-schema-adapter.d.ts +1 -2
- package/lib/types/json-schema-adapter.js +17 -15
- package/lib/types/oas2.d.ts +2 -3
- package/lib/types/oas2.js +19 -17
- package/lib/types/oas3.d.ts +2 -3
- package/lib/types/oas3.js +41 -39
- package/lib/types/oas3_1.d.ts +2 -3
- package/lib/types/oas3_1.js +20 -18
- package/lib/types/overlay.d.ts +1 -2
- package/lib/types/overlay.js +6 -4
- package/lib/types/redocly-yaml.d.ts +3 -4
- package/lib/types/redocly-yaml.js +48 -31
- package/lib/typings/arazzo.d.ts +0 -1
- package/lib/typings/arazzo.js +5 -3
- package/lib/typings/asyncapi.d.ts +0 -1
- package/lib/typings/asyncapi.js +2 -2
- package/lib/typings/asyncapi3.d.ts +0 -1
- package/lib/typings/asyncapi3.js +2 -2
- package/lib/typings/common.d.ts +0 -1
- package/lib/typings/common.js +2 -2
- package/lib/typings/openapi.d.ts +0 -1
- package/lib/typings/openapi.js +2 -2
- package/lib/typings/overlay.d.ts +0 -1
- package/lib/typings/overlay.js +4 -2
- package/lib/typings/swagger.d.ts +1 -2
- package/lib/typings/swagger.js +2 -2
- package/lib/utils.d.ts +5 -4
- package/lib/utils.js +99 -52
- package/lib/visitors.d.ts +10 -11
- package/lib/visitors.js +6 -4
- package/lib/walk.d.ts +8 -9
- package/lib/walk.js +25 -23
- package/package.json +9 -30
- package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-many-rules.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-no-rules.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js.map +0 -1
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/recommended-oas3.bench.js.map +0 -1
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/resolve-with-no-external.bench.js.map +0 -1
- package/lib/benchmark/utils.d.ts.map +0 -1
- package/lib/benchmark/utils.js.map +0 -1
- package/lib/bundle.d.ts.map +0 -1
- package/lib/bundle.js.map +0 -1
- package/lib/config/all.d.ts.map +0 -1
- package/lib/config/all.js.map +0 -1
- package/lib/config/builtIn.d.ts.map +0 -1
- package/lib/config/builtIn.js.map +0 -1
- package/lib/config/config-resolvers.d.ts.map +0 -1
- package/lib/config/config-resolvers.js.map +0 -1
- package/lib/config/config.d.ts.map +0 -1
- package/lib/config/config.js.map +0 -1
- package/lib/config/index.d.ts.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/config/load.d.ts.map +0 -1
- package/lib/config/load.js.map +0 -1
- package/lib/config/minimal.d.ts.map +0 -1
- package/lib/config/minimal.js.map +0 -1
- package/lib/config/recommended-strict.d.ts.map +0 -1
- package/lib/config/recommended-strict.js.map +0 -1
- package/lib/config/recommended.d.ts.map +0 -1
- package/lib/config/recommended.js.map +0 -1
- package/lib/config/rules.d.ts.map +0 -1
- package/lib/config/rules.js.map +0 -1
- package/lib/config/spec.d.ts.map +0 -1
- package/lib/config/spec.js.map +0 -1
- package/lib/config/types.d.ts.map +0 -1
- package/lib/config/types.js.map +0 -1
- package/lib/config/utils.d.ts.map +0 -1
- package/lib/config/utils.js.map +0 -1
- package/lib/decorators/arazzo/index.d.ts.map +0 -1
- package/lib/decorators/arazzo/index.js.map +0 -1
- package/lib/decorators/async2/index.d.ts.map +0 -1
- package/lib/decorators/async2/index.js.map +0 -1
- package/lib/decorators/async3/index.d.ts.map +0 -1
- package/lib/decorators/async3/index.js.map +0 -1
- package/lib/decorators/common/filters/filter-helper.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-helper.js.map +0 -1
- package/lib/decorators/common/filters/filter-in.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-in.js.map +0 -1
- package/lib/decorators/common/filters/filter-out.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-out.js.map +0 -1
- package/lib/decorators/common/info-description-override.d.ts.map +0 -1
- package/lib/decorators/common/info-description-override.js.map +0 -1
- package/lib/decorators/common/info-override.d.ts.map +0 -1
- package/lib/decorators/common/info-override.js.map +0 -1
- package/lib/decorators/common/media-type-examples-override.d.ts.map +0 -1
- package/lib/decorators/common/media-type-examples-override.js.map +0 -1
- package/lib/decorators/common/operation-description-override.d.ts.map +0 -1
- package/lib/decorators/common/operation-description-override.js.map +0 -1
- package/lib/decorators/common/remove-x-internal.d.ts.map +0 -1
- package/lib/decorators/common/remove-x-internal.js.map +0 -1
- package/lib/decorators/common/tag-description-override.d.ts.map +0 -1
- package/lib/decorators/common/tag-description-override.js.map +0 -1
- package/lib/decorators/oas2/index.d.ts.map +0 -1
- package/lib/decorators/oas2/index.js.map +0 -1
- package/lib/decorators/oas2/remove-unused-components.d.ts.map +0 -1
- package/lib/decorators/oas2/remove-unused-components.js.map +0 -1
- package/lib/decorators/oas3/index.d.ts.map +0 -1
- package/lib/decorators/oas3/index.js.map +0 -1
- package/lib/decorators/oas3/remove-unused-components.d.ts.map +0 -1
- package/lib/decorators/oas3/remove-unused-components.js.map +0 -1
- package/lib/decorators/overlay1/index.d.ts.map +0 -1
- package/lib/decorators/overlay1/index.js.map +0 -1
- package/lib/env.d.ts.map +0 -1
- package/lib/env.js.map +0 -1
- package/lib/format/codeframes.d.ts.map +0 -1
- package/lib/format/codeframes.js.map +0 -1
- package/lib/format/format.d.ts.map +0 -1
- package/lib/format/format.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/js-yaml/index.d.ts.map +0 -1
- package/lib/js-yaml/index.js.map +0 -1
- package/lib/lint.d.ts.map +0 -1
- package/lib/lint.js.map +0 -1
- package/lib/logger.d.ts.map +0 -1
- package/lib/logger.js.map +0 -1
- package/lib/oas-types.d.ts.map +0 -1
- package/lib/oas-types.js.map +0 -1
- package/lib/ref-utils.d.ts.map +0 -1
- package/lib/ref-utils.js.map +0 -1
- package/lib/resolve.d.ts.map +0 -1
- package/lib/resolve.js.map +0 -1
- package/lib/rules/ajv.d.ts.map +0 -1
- package/lib/rules/ajv.js.map +0 -1
- package/lib/rules/arazzo/criteria-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/criteria-unique.js.map +0 -1
- package/lib/rules/arazzo/index.d.ts.map +0 -1
- package/lib/rules/arazzo/index.js.map +0 -1
- package/lib/rules/arazzo/parameters-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/parameters-unique.js.map +0 -1
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/requestBody-replacements-unique.js.map +0 -1
- package/lib/rules/arazzo/sourceDescription-type.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescription-type.js.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +0 -1
- package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/step-onFailure-unique.js.map +0 -1
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/step-onSuccess-unique.js.map +0 -1
- package/lib/rules/arazzo/stepId-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/stepId-unique.js.map +0 -1
- package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +0 -1
- package/lib/rules/arazzo/workflow-dependsOn.js.map +0 -1
- package/lib/rules/arazzo/workflowId-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/workflowId-unique.js.map +0 -1
- package/lib/rules/async2/channels-kebab-case.d.ts.map +0 -1
- package/lib/rules/async2/channels-kebab-case.js.map +0 -1
- package/lib/rules/async2/index.d.ts.map +0 -1
- package/lib/rules/async2/index.js.map +0 -1
- package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +0 -1
- package/lib/rules/async2/no-channel-trailing-slash.js.map +0 -1
- package/lib/rules/async3/channels-kebab-case.d.ts.map +0 -1
- package/lib/rules/async3/channels-kebab-case.js.map +0 -1
- package/lib/rules/async3/index.d.ts.map +0 -1
- package/lib/rules/async3/index.js.map +0 -1
- package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +0 -1
- package/lib/rules/async3/no-channel-trailing-slash.js.map +0 -1
- package/lib/rules/common/assertions/asserts.d.ts.map +0 -1
- package/lib/rules/common/assertions/asserts.js.map +0 -1
- package/lib/rules/common/assertions/index.d.ts.map +0 -1
- package/lib/rules/common/assertions/index.js.map +0 -1
- package/lib/rules/common/assertions/utils.d.ts.map +0 -1
- package/lib/rules/common/assertions/utils.js.map +0 -1
- package/lib/rules/common/info-contact.d.ts.map +0 -1
- package/lib/rules/common/info-contact.js.map +0 -1
- package/lib/rules/common/info-license-strict.d.ts.map +0 -1
- package/lib/rules/common/info-license-strict.js.map +0 -1
- package/lib/rules/common/info-license-url.d.ts.map +0 -1
- package/lib/rules/common/info-license-url.js.map +0 -1
- package/lib/rules/common/info-license.d.ts.map +0 -1
- package/lib/rules/common/info-license.js.map +0 -1
- package/lib/rules/common/no-ambiguous-paths.d.ts.map +0 -1
- package/lib/rules/common/no-ambiguous-paths.js.map +0 -1
- package/lib/rules/common/no-enum-type-mismatch.d.ts.map +0 -1
- package/lib/rules/common/no-enum-type-mismatch.js.map +0 -1
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +0 -1
- package/lib/rules/common/no-http-verbs-in-paths.js.map +0 -1
- package/lib/rules/common/no-identical-paths.d.ts.map +0 -1
- package/lib/rules/common/no-identical-paths.js.map +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.js.map +0 -1
- package/lib/rules/common/no-invalid-schema-examples.d.ts.map +0 -1
- package/lib/rules/common/no-invalid-schema-examples.js.map +0 -1
- package/lib/rules/common/no-path-trailing-slash.d.ts.map +0 -1
- package/lib/rules/common/no-path-trailing-slash.js.map +0 -1
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +0 -1
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +0 -1
- package/lib/rules/common/no-schema-type-mismatch.d.ts.map +0 -1
- package/lib/rules/common/no-schema-type-mismatch.js.map +0 -1
- package/lib/rules/common/operation-2xx-response.d.ts.map +0 -1
- package/lib/rules/common/operation-2xx-response.js.map +0 -1
- package/lib/rules/common/operation-4xx-response.d.ts.map +0 -1
- package/lib/rules/common/operation-4xx-response.js.map +0 -1
- package/lib/rules/common/operation-description.d.ts.map +0 -1
- package/lib/rules/common/operation-description.js.map +0 -1
- package/lib/rules/common/operation-operationId-unique.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId-unique.js.map +0 -1
- package/lib/rules/common/operation-operationId-url-safe.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId-url-safe.js.map +0 -1
- package/lib/rules/common/operation-operationId.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId.js.map +0 -1
- package/lib/rules/common/operation-parameters-unique.d.ts.map +0 -1
- package/lib/rules/common/operation-parameters-unique.js.map +0 -1
- package/lib/rules/common/operation-singular-tag.d.ts.map +0 -1
- package/lib/rules/common/operation-singular-tag.js.map +0 -1
- package/lib/rules/common/operation-summary.d.ts.map +0 -1
- package/lib/rules/common/operation-summary.js.map +0 -1
- package/lib/rules/common/operation-tag-defined.d.ts.map +0 -1
- package/lib/rules/common/operation-tag-defined.js.map +0 -1
- package/lib/rules/common/parameter-description.d.ts.map +0 -1
- package/lib/rules/common/parameter-description.js.map +0 -1
- package/lib/rules/common/path-declaration-must-exist.d.ts.map +0 -1
- package/lib/rules/common/path-declaration-must-exist.js.map +0 -1
- package/lib/rules/common/path-excludes-patterns.d.ts.map +0 -1
- package/lib/rules/common/path-excludes-patterns.js.map +0 -1
- package/lib/rules/common/path-http-verbs-order.d.ts.map +0 -1
- package/lib/rules/common/path-http-verbs-order.js.map +0 -1
- package/lib/rules/common/path-not-include-query.d.ts.map +0 -1
- package/lib/rules/common/path-not-include-query.js.map +0 -1
- package/lib/rules/common/path-params-defined.d.ts.map +0 -1
- package/lib/rules/common/path-params-defined.js.map +0 -1
- package/lib/rules/common/path-segment-plural.d.ts.map +0 -1
- package/lib/rules/common/path-segment-plural.js.map +0 -1
- package/lib/rules/common/paths-kebab-case.d.ts.map +0 -1
- package/lib/rules/common/paths-kebab-case.js.map +0 -1
- package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +0 -1
- package/lib/rules/common/required-string-property-missing-min-length.js.map +0 -1
- package/lib/rules/common/response-contains-header.d.ts.map +0 -1
- package/lib/rules/common/response-contains-header.js.map +0 -1
- package/lib/rules/common/scalar-property-missing-example.d.ts.map +0 -1
- package/lib/rules/common/scalar-property-missing-example.js.map +0 -1
- package/lib/rules/common/security-defined.d.ts.map +0 -1
- package/lib/rules/common/security-defined.js.map +0 -1
- package/lib/rules/common/spec-strict-refs.d.ts.map +0 -1
- package/lib/rules/common/spec-strict-refs.js.map +0 -1
- package/lib/rules/common/struct.d.ts.map +0 -1
- package/lib/rules/common/struct.js.map +0 -1
- package/lib/rules/common/tag-description.d.ts.map +0 -1
- package/lib/rules/common/tag-description.js.map +0 -1
- package/lib/rules/common/tags-alphabetical.d.ts.map +0 -1
- package/lib/rules/common/tags-alphabetical.js.map +0 -1
- package/lib/rules/no-unresolved-refs.d.ts.map +0 -1
- package/lib/rules/no-unresolved-refs.js.map +0 -1
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +0 -1
- package/lib/rules/oas2/boolean-parameter-prefixes.js.map +0 -1
- package/lib/rules/oas2/index.d.ts.map +0 -1
- package/lib/rules/oas2/index.js.map +0 -1
- package/lib/rules/oas2/request-mime-type.d.ts.map +0 -1
- package/lib/rules/oas2/request-mime-type.js.map +0 -1
- package/lib/rules/oas2/response-contains-property.d.ts.map +0 -1
- package/lib/rules/oas2/response-contains-property.js.map +0 -1
- package/lib/rules/oas2/response-mime-type.d.ts.map +0 -1
- package/lib/rules/oas2/response-mime-type.js.map +0 -1
- package/lib/rules/oas3/array-parameter-serialization.d.ts.map +0 -1
- package/lib/rules/oas3/array-parameter-serialization.js.map +0 -1
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +0 -1
- package/lib/rules/oas3/boolean-parameter-prefixes.js.map +0 -1
- package/lib/rules/oas3/component-name-unique.d.ts.map +0 -1
- package/lib/rules/oas3/component-name-unique.js.map +0 -1
- package/lib/rules/oas3/index.d.ts.map +0 -1
- package/lib/rules/oas3/index.js.map +0 -1
- package/lib/rules/oas3/no-empty-servers.d.ts.map +0 -1
- package/lib/rules/oas3/no-empty-servers.js.map +0 -1
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +0 -1
- package/lib/rules/oas3/no-example-value-and-externalValue.js.map +0 -1
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +0 -1
- package/lib/rules/oas3/no-invalid-media-type-examples.js.map +0 -1
- package/lib/rules/oas3/no-server-example.com.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-example.com.js.map +0 -1
- package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-trailing-slash.js.map +0 -1
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-variables-empty-enum.js.map +0 -1
- package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +0 -1
- package/lib/rules/oas3/no-undefined-server-variable.js.map +0 -1
- package/lib/rules/oas3/no-unused-components.d.ts.map +0 -1
- package/lib/rules/oas3/no-unused-components.js.map +0 -1
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +0 -1
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +0 -1
- package/lib/rules/oas3/request-mime-type.d.ts.map +0 -1
- package/lib/rules/oas3/request-mime-type.js.map +0 -1
- package/lib/rules/oas3/response-contains-property.d.ts.map +0 -1
- package/lib/rules/oas3/response-contains-property.js.map +0 -1
- package/lib/rules/oas3/response-mime-type.d.ts.map +0 -1
- package/lib/rules/oas3/response-mime-type.js.map +0 -1
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +0 -1
- package/lib/rules/oas3/spec-components-invalid-map-name.js.map +0 -1
- package/lib/rules/other/stats.d.ts.map +0 -1
- package/lib/rules/other/stats.js.map +0 -1
- package/lib/rules/overlay1/index.d.ts.map +0 -1
- package/lib/rules/overlay1/index.js.map +0 -1
- package/lib/rules/respect/no-criteria-xpath.d.ts.map +0 -1
- package/lib/rules/respect/no-criteria-xpath.js.map +0 -1
- package/lib/rules/respect/respect-supported-versions.d.ts.map +0 -1
- package/lib/rules/respect/respect-supported-versions.js.map +0 -1
- package/lib/rules/utils.d.ts.map +0 -1
- package/lib/rules/utils.js.map +0 -1
- package/lib/types/arazzo.d.ts.map +0 -1
- package/lib/types/arazzo.js.map +0 -1
- package/lib/types/asyncapi2.d.ts.map +0 -1
- package/lib/types/asyncapi2.js.map +0 -1
- package/lib/types/asyncapi3.d.ts.map +0 -1
- package/lib/types/asyncapi3.js.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/index.js.map +0 -1
- package/lib/types/json-schema-adapter.d.ts.map +0 -1
- package/lib/types/json-schema-adapter.js.map +0 -1
- package/lib/types/oas2.d.ts.map +0 -1
- package/lib/types/oas2.js.map +0 -1
- package/lib/types/oas3.d.ts.map +0 -1
- package/lib/types/oas3.js.map +0 -1
- package/lib/types/oas3_1.d.ts.map +0 -1
- package/lib/types/oas3_1.js.map +0 -1
- package/lib/types/overlay.d.ts.map +0 -1
- package/lib/types/overlay.js.map +0 -1
- package/lib/types/redocly-yaml.d.ts.map +0 -1
- package/lib/types/redocly-yaml.js.map +0 -1
- package/lib/typings/arazzo.d.ts.map +0 -1
- package/lib/typings/arazzo.js.map +0 -1
- package/lib/typings/asyncapi.d.ts.map +0 -1
- package/lib/typings/asyncapi.js.map +0 -1
- package/lib/typings/asyncapi3.d.ts.map +0 -1
- package/lib/typings/asyncapi3.js.map +0 -1
- package/lib/typings/common.d.ts.map +0 -1
- package/lib/typings/common.js.map +0 -1
- package/lib/typings/openapi.d.ts.map +0 -1
- package/lib/typings/openapi.js.map +0 -1
- package/lib/typings/overlay.d.ts.map +0 -1
- package/lib/typings/overlay.js.map +0 -1
- package/lib/typings/swagger.d.ts.map +0 -1
- package/lib/typings/swagger.js.map +0 -1
- package/lib/utils/error.d.ts +0 -3
- package/lib/utils/error.d.ts.map +0 -1
- package/lib/utils/error.js +0 -3
- package/lib/utils/error.js.map +0 -1
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js.map +0 -1
- package/lib/visitors.d.ts.map +0 -1
- package/lib/visitors.js.map +0 -1
- package/lib/walk.d.ts.map +0 -1
- package/lib/walk.js.map +0 -1
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestBodyReplacementsUnique = void 0;
|
|
4
|
+
const RequestBodyReplacementsUnique = () => {
|
|
2
5
|
const seenReplacements = new Set();
|
|
3
6
|
return {
|
|
4
7
|
Step: {
|
|
@@ -27,4 +30,4 @@ export const RequestBodyReplacementsUnique = () => {
|
|
|
27
30
|
},
|
|
28
31
|
};
|
|
29
32
|
};
|
|
30
|
-
|
|
33
|
+
exports.RequestBodyReplacementsUnique = RequestBodyReplacementsUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceDescriptionType = void 0;
|
|
4
|
+
const SourceDescriptionType = () => {
|
|
2
5
|
return {
|
|
3
6
|
SourceDescriptions: {
|
|
4
7
|
enter(sourceDescriptions, { report, location }) {
|
|
@@ -16,4 +19,4 @@ export const SourceDescriptionType = () => {
|
|
|
16
19
|
},
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
|
-
|
|
22
|
+
exports.SourceDescriptionType = SourceDescriptionType;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceDescriptionsNameUnique = void 0;
|
|
4
|
+
const SourceDescriptionsNameUnique = () => {
|
|
2
5
|
const seenSourceDescriptions = new Set();
|
|
3
6
|
return {
|
|
4
7
|
SourceDescriptions: {
|
|
@@ -18,4 +21,4 @@ export const SourceDescriptionsNameUnique = () => {
|
|
|
18
21
|
},
|
|
19
22
|
};
|
|
20
23
|
};
|
|
21
|
-
|
|
24
|
+
exports.SourceDescriptionsNameUnique = SourceDescriptionsNameUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SourceDescriptionsNotEmpty = void 0;
|
|
4
|
+
const SourceDescriptionsNotEmpty = () => {
|
|
2
5
|
return {
|
|
3
6
|
SourceDescriptions: {
|
|
4
7
|
enter(sourceDescriptions, { report, location }) {
|
|
@@ -12,4 +15,4 @@ export const SourceDescriptionsNotEmpty = () => {
|
|
|
12
15
|
},
|
|
13
16
|
};
|
|
14
17
|
};
|
|
15
|
-
|
|
18
|
+
exports.SourceDescriptionsNotEmpty = SourceDescriptionsNotEmpty;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepOnFailureUnique = void 0;
|
|
4
|
+
const StepOnFailureUnique = () => {
|
|
2
5
|
return {
|
|
3
6
|
OnFailureActionList: {
|
|
4
7
|
enter(onFailureActionList, { report, location }) {
|
|
@@ -26,4 +29,4 @@ export const StepOnFailureUnique = () => {
|
|
|
26
29
|
},
|
|
27
30
|
};
|
|
28
31
|
};
|
|
29
|
-
|
|
32
|
+
exports.StepOnFailureUnique = StepOnFailureUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepOnSuccessUnique = void 0;
|
|
4
|
+
const StepOnSuccessUnique = () => {
|
|
2
5
|
return {
|
|
3
6
|
OnSuccessActionList: {
|
|
4
7
|
enter(onSuccessActionList, { report, location }) {
|
|
@@ -26,4 +29,4 @@ export const StepOnSuccessUnique = () => {
|
|
|
26
29
|
},
|
|
27
30
|
};
|
|
28
31
|
};
|
|
29
|
-
|
|
32
|
+
exports.StepOnSuccessUnique = StepOnSuccessUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StepIdUnique = void 0;
|
|
4
|
+
const StepIdUnique = () => {
|
|
2
5
|
return {
|
|
3
6
|
Workflow: {
|
|
4
7
|
enter(workflow, { report, location }) {
|
|
@@ -20,4 +23,4 @@ export const StepIdUnique = () => {
|
|
|
20
23
|
},
|
|
21
24
|
};
|
|
22
25
|
};
|
|
23
|
-
|
|
26
|
+
exports.StepIdUnique = StepIdUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowDependsOn = void 0;
|
|
4
|
+
const WorkflowDependsOn = () => {
|
|
2
5
|
const seenWorkflow = new Set();
|
|
3
6
|
const existingSourceDescriptions = new Set();
|
|
4
7
|
const existingWorkflowIds = new Set();
|
|
@@ -50,4 +53,4 @@ export const WorkflowDependsOn = () => {
|
|
|
50
53
|
},
|
|
51
54
|
};
|
|
52
55
|
};
|
|
53
|
-
|
|
56
|
+
exports.WorkflowDependsOn = WorkflowDependsOn;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkflowIdUnique = void 0;
|
|
4
|
+
const WorkflowIdUnique = () => {
|
|
2
5
|
const seenWorkflow = new Set();
|
|
3
6
|
return {
|
|
4
7
|
Workflow: {
|
|
@@ -16,4 +19,4 @@ export const WorkflowIdUnique = () => {
|
|
|
16
19
|
},
|
|
17
20
|
};
|
|
18
21
|
};
|
|
19
|
-
|
|
22
|
+
exports.WorkflowIdUnique = WorkflowIdUnique;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelsKebabCase = void 0;
|
|
4
|
+
const ChannelsKebabCase = () => {
|
|
2
5
|
return {
|
|
3
6
|
Channel(_channel, { report, key }) {
|
|
4
7
|
const segments = key
|
|
@@ -13,4 +16,4 @@ export const ChannelsKebabCase = () => {
|
|
|
13
16
|
},
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
|
-
|
|
19
|
+
exports.ChannelsKebabCase = ChannelsKebabCase;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.preprocessors = exports.rules = void 0;
|
|
4
|
+
const assertions_1 = require("../common/assertions");
|
|
5
|
+
const struct_1 = require("../common/struct");
|
|
6
|
+
const info_contact_1 = require("../common/info-contact");
|
|
7
|
+
const info_license_strict_1 = require("../common/info-license-strict");
|
|
8
|
+
const operation_operationId_1 = require("../common/operation-operationId");
|
|
9
|
+
const tag_description_1 = require("../common/tag-description");
|
|
10
|
+
const tags_alphabetical_1 = require("../common/tags-alphabetical");
|
|
11
|
+
const channels_kebab_case_1 = require("./channels-kebab-case");
|
|
12
|
+
const no_channel_trailing_slash_1 = require("./no-channel-trailing-slash");
|
|
13
|
+
exports.rules = {
|
|
11
14
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
15
|
//@ts-ignore TODO: This is depricated property `spec` and should be removed in the future
|
|
13
|
-
spec: Struct,
|
|
14
|
-
struct: Struct,
|
|
15
|
-
assertions: Assertions,
|
|
16
|
-
'info-contact': InfoContact,
|
|
17
|
-
'info-license-strict': InfoLicenseStrict,
|
|
18
|
-
'operation-operationId': OperationOperationId,
|
|
19
|
-
'channels-kebab-case': ChannelsKebabCase,
|
|
20
|
-
'no-channel-trailing-slash': NoChannelTrailingSlash,
|
|
21
|
-
'tag-description': TagDescription,
|
|
22
|
-
'tags-alphabetical': TagsAlphabetical,
|
|
16
|
+
spec: struct_1.Struct,
|
|
17
|
+
struct: struct_1.Struct,
|
|
18
|
+
assertions: assertions_1.Assertions,
|
|
19
|
+
'info-contact': info_contact_1.InfoContact,
|
|
20
|
+
'info-license-strict': info_license_strict_1.InfoLicenseStrict,
|
|
21
|
+
'operation-operationId': operation_operationId_1.OperationOperationId,
|
|
22
|
+
'channels-kebab-case': channels_kebab_case_1.ChannelsKebabCase,
|
|
23
|
+
'no-channel-trailing-slash': no_channel_trailing_slash_1.NoChannelTrailingSlash,
|
|
24
|
+
'tag-description': tag_description_1.TagDescription,
|
|
25
|
+
'tags-alphabetical': tags_alphabetical_1.TagsAlphabetical,
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
27
|
+
exports.preprocessors = {};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoChannelTrailingSlash = void 0;
|
|
4
|
+
const NoChannelTrailingSlash = () => {
|
|
2
5
|
return {
|
|
3
6
|
Channel(_channel, { report, key, location }) {
|
|
4
7
|
if (key.endsWith('/') && key !== '/') {
|
|
@@ -10,4 +13,4 @@ export const NoChannelTrailingSlash = () => {
|
|
|
10
13
|
},
|
|
11
14
|
};
|
|
12
15
|
};
|
|
13
|
-
|
|
16
|
+
exports.NoChannelTrailingSlash = NoChannelTrailingSlash;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChannelsKebabCase = void 0;
|
|
4
|
+
const ChannelsKebabCase = () => {
|
|
2
5
|
return {
|
|
3
6
|
Channel(channel, { report }) {
|
|
4
7
|
const segments = (channel.address || '')
|
|
@@ -13,4 +16,4 @@ export const ChannelsKebabCase = () => {
|
|
|
13
16
|
},
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
|
-
|
|
19
|
+
exports.ChannelsKebabCase = ChannelsKebabCase;
|
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.preprocessors = exports.rules = void 0;
|
|
4
|
+
const assertions_1 = require("../common/assertions");
|
|
5
|
+
const struct_1 = require("../common/struct");
|
|
6
|
+
const info_contact_1 = require("../common/info-contact");
|
|
7
|
+
const info_license_strict_1 = require("../common/info-license-strict");
|
|
8
|
+
const operation_operationId_1 = require("../common/operation-operationId");
|
|
9
|
+
const tag_description_1 = require("../common/tag-description");
|
|
10
|
+
const tags_alphabetical_1 = require("../common/tags-alphabetical");
|
|
11
|
+
const channels_kebab_case_1 = require("./channels-kebab-case");
|
|
12
|
+
const no_channel_trailing_slash_1 = require("./no-channel-trailing-slash");
|
|
13
|
+
exports.rules = {
|
|
11
14
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
12
15
|
//@ts-ignore TODO: This is depricated property `spec` and should be removed in the future
|
|
13
|
-
spec: Struct,
|
|
14
|
-
struct: Struct,
|
|
15
|
-
assertions: Assertions,
|
|
16
|
-
'info-contact': InfoContact,
|
|
17
|
-
'info-license-strict': InfoLicenseStrict,
|
|
18
|
-
'operation-operationId': OperationOperationId,
|
|
19
|
-
'channels-kebab-case': ChannelsKebabCase,
|
|
20
|
-
'no-channel-trailing-slash': NoChannelTrailingSlash,
|
|
21
|
-
'tag-description': TagDescription,
|
|
22
|
-
'tags-alphabetical': TagsAlphabetical,
|
|
16
|
+
spec: struct_1.Struct,
|
|
17
|
+
struct: struct_1.Struct,
|
|
18
|
+
assertions: assertions_1.Assertions,
|
|
19
|
+
'info-contact': info_contact_1.InfoContact,
|
|
20
|
+
'info-license-strict': info_license_strict_1.InfoLicenseStrict,
|
|
21
|
+
'operation-operationId': operation_operationId_1.OperationOperationId,
|
|
22
|
+
'channels-kebab-case': channels_kebab_case_1.ChannelsKebabCase,
|
|
23
|
+
'no-channel-trailing-slash': no_channel_trailing_slash_1.NoChannelTrailingSlash,
|
|
24
|
+
'tag-description': tag_description_1.TagDescription,
|
|
25
|
+
'tags-alphabetical': tags_alphabetical_1.TagsAlphabetical,
|
|
23
26
|
};
|
|
24
|
-
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
27
|
+
exports.preprocessors = {};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NoChannelTrailingSlash = void 0;
|
|
4
|
+
const NoChannelTrailingSlash = () => {
|
|
2
5
|
return {
|
|
3
6
|
Channel(channel, { report, location }) {
|
|
4
|
-
if (channel
|
|
7
|
+
if (channel.address.endsWith('/') && channel.address !== '/') {
|
|
5
8
|
report({
|
|
6
9
|
message: `\`${channel.address}\` should not have a trailing slash.`,
|
|
7
10
|
location: location.key(),
|
|
@@ -10,4 +13,4 @@ export const NoChannelTrailingSlash = () => {
|
|
|
10
13
|
},
|
|
11
14
|
};
|
|
12
15
|
};
|
|
13
|
-
|
|
16
|
+
exports.NoChannelTrailingSlash = NoChannelTrailingSlash;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AssertionContext, AssertResult, CustomFunction } from '../../../config/types
|
|
2
|
-
import type { Location } from '../../../ref-utils
|
|
1
|
+
import type { AssertionContext, AssertResult, CustomFunction } from '../../../config/types';
|
|
2
|
+
import type { Location } from '../../../ref-utils';
|
|
3
3
|
export type AssertionFnContext = AssertionContext & {
|
|
4
4
|
baseLocation: Location;
|
|
5
5
|
rawValue?: any;
|
|
@@ -28,4 +28,3 @@ export declare const runOnKeysSet: Set<keyof Asserts>;
|
|
|
28
28
|
export declare const runOnValuesSet: Set<keyof Asserts>;
|
|
29
29
|
export declare const asserts: Asserts;
|
|
30
30
|
export declare function buildAssertCustomFunction(fn: CustomFunction): AssertionFn;
|
|
31
|
-
//# sourceMappingURL=asserts.d.ts.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.asserts = exports.runOnValuesSet = exports.runOnKeysSet = void 0;
|
|
4
|
+
exports.buildAssertCustomFunction = buildAssertCustomFunction;
|
|
5
|
+
const utils_1 = require("../../../utils");
|
|
6
|
+
const utils_2 = require("./utils");
|
|
7
|
+
exports.runOnKeysSet = new Set([
|
|
4
8
|
'mutuallyExclusive',
|
|
5
9
|
'mutuallyRequired',
|
|
6
10
|
'enum',
|
|
@@ -17,7 +21,7 @@ export const runOnKeysSet = new Set([
|
|
|
17
21
|
'const',
|
|
18
22
|
'defined', // In case if `property` for assertions is not added
|
|
19
23
|
]);
|
|
20
|
-
|
|
24
|
+
exports.runOnValuesSet = new Set([
|
|
21
25
|
'pattern',
|
|
22
26
|
'notPattern',
|
|
23
27
|
'enum',
|
|
@@ -31,49 +35,49 @@ export const runOnValuesSet = new Set([
|
|
|
31
35
|
'ref',
|
|
32
36
|
'const',
|
|
33
37
|
]);
|
|
34
|
-
|
|
38
|
+
exports.asserts = {
|
|
35
39
|
pattern: (value, condition, { baseLocation, rawValue }) => {
|
|
36
|
-
if (typeof value === 'undefined' || isPlainObject(value))
|
|
40
|
+
if (typeof value === 'undefined' || (0, utils_1.isPlainObject)(value))
|
|
37
41
|
return []; // property doesn't exist or is an object, no need to lint it with this assert
|
|
38
42
|
const values = Array.isArray(value) ? value : [value];
|
|
39
|
-
const regex = regexFromString(condition);
|
|
43
|
+
const regex = (0, utils_2.regexFromString)(condition);
|
|
40
44
|
return values
|
|
41
45
|
.map((_val) => !regex?.test(_val) && {
|
|
42
46
|
message: `"${_val}" should match a regex ${condition}`,
|
|
43
|
-
location:
|
|
47
|
+
location: (0, utils_1.isString)(value)
|
|
44
48
|
? baseLocation
|
|
45
|
-
: isPlainObject(rawValue)
|
|
49
|
+
: (0, utils_1.isPlainObject)(rawValue)
|
|
46
50
|
? baseLocation.child(_val).key()
|
|
47
51
|
: baseLocation.key(),
|
|
48
52
|
})
|
|
49
|
-
.filter(isTruthy);
|
|
53
|
+
.filter(utils_1.isTruthy);
|
|
50
54
|
},
|
|
51
55
|
notPattern: (value, condition, { baseLocation, rawValue }) => {
|
|
52
|
-
if (typeof value === 'undefined' || isPlainObject(value))
|
|
56
|
+
if (typeof value === 'undefined' || (0, utils_1.isPlainObject)(value))
|
|
53
57
|
return []; // property doesn't exist or is an object, no need to lint it with this assert
|
|
54
58
|
const values = Array.isArray(value) ? value : [value];
|
|
55
|
-
const regex = regexFromString(condition);
|
|
59
|
+
const regex = (0, utils_2.regexFromString)(condition);
|
|
56
60
|
return values
|
|
57
61
|
.map((_val) => regex?.test(_val) && {
|
|
58
62
|
message: `"${_val}" should not match a regex ${condition}`,
|
|
59
|
-
location:
|
|
63
|
+
location: (0, utils_1.isString)(value)
|
|
60
64
|
? baseLocation
|
|
61
|
-
: isPlainObject(rawValue)
|
|
65
|
+
: (0, utils_1.isPlainObject)(rawValue)
|
|
62
66
|
? baseLocation.child(_val).key()
|
|
63
67
|
: baseLocation.key(),
|
|
64
68
|
})
|
|
65
|
-
.filter(isTruthy);
|
|
69
|
+
.filter(utils_1.isTruthy);
|
|
66
70
|
},
|
|
67
71
|
enum: (value, condition, { baseLocation }) => {
|
|
68
|
-
if (typeof value === 'undefined' || isPlainObject(value))
|
|
72
|
+
if (typeof value === 'undefined' || (0, utils_1.isPlainObject)(value))
|
|
69
73
|
return []; // property doesn't exist or is an object, no need to lint it with this assert
|
|
70
74
|
const values = Array.isArray(value) ? value : [value];
|
|
71
75
|
return values
|
|
72
76
|
.map((_val) => !condition.includes(_val) && {
|
|
73
77
|
message: `"${_val}" should be one of the predefined values`,
|
|
74
|
-
location:
|
|
78
|
+
location: (0, utils_1.isString)(value) ? baseLocation : baseLocation.child(_val).key(),
|
|
75
79
|
})
|
|
76
|
-
.filter(isTruthy);
|
|
80
|
+
.filter(utils_1.isTruthy);
|
|
77
81
|
},
|
|
78
82
|
defined: (value, condition = true, { baseLocation }) => {
|
|
79
83
|
const isDefined = typeof value !== 'undefined';
|
|
@@ -93,18 +97,18 @@ export const asserts = {
|
|
|
93
97
|
message: `${requiredKey} is required`,
|
|
94
98
|
location: baseLocation.key(),
|
|
95
99
|
})
|
|
96
|
-
.filter(isTruthy);
|
|
100
|
+
.filter(utils_1.isTruthy);
|
|
97
101
|
},
|
|
98
102
|
disallowed: (value, condition, { baseLocation }) => {
|
|
99
|
-
if (typeof value === 'undefined' || isPlainObject(value))
|
|
103
|
+
if (typeof value === 'undefined' || (0, utils_1.isPlainObject)(value))
|
|
100
104
|
return []; // property doesn't exist or is an object, no need to lint it with this assert
|
|
101
105
|
const values = Array.isArray(value) ? value : [value];
|
|
102
106
|
return values
|
|
103
107
|
.map((_val) => condition.includes(_val) && {
|
|
104
108
|
message: `"${_val}" is disallowed`,
|
|
105
|
-
location:
|
|
109
|
+
location: (0, utils_1.isString)(value) ? baseLocation : baseLocation.child(_val).key(),
|
|
106
110
|
})
|
|
107
|
-
.filter(isTruthy);
|
|
111
|
+
.filter(utils_1.isTruthy);
|
|
108
112
|
},
|
|
109
113
|
const: (value, condition, { baseLocation }) => {
|
|
110
114
|
if (typeof value === 'undefined')
|
|
@@ -113,9 +117,9 @@ export const asserts = {
|
|
|
113
117
|
return value
|
|
114
118
|
.map((_val) => condition !== _val && {
|
|
115
119
|
message: `"${_val}" should be equal ${condition} `,
|
|
116
|
-
location:
|
|
120
|
+
location: (0, utils_1.isString)(value) ? baseLocation : baseLocation.child(_val).key(),
|
|
117
121
|
})
|
|
118
|
-
.filter(isTruthy);
|
|
122
|
+
.filter(utils_1.isTruthy);
|
|
119
123
|
}
|
|
120
124
|
else {
|
|
121
125
|
return value !== condition
|
|
@@ -173,7 +177,7 @@ export const asserts = {
|
|
|
173
177
|
];
|
|
174
178
|
},
|
|
175
179
|
casing: (value, condition, { baseLocation }) => {
|
|
176
|
-
if (typeof value === 'undefined' || isPlainObject(value))
|
|
180
|
+
if (typeof value === 'undefined' || (0, utils_1.isPlainObject)(value))
|
|
177
181
|
return []; // property doesn't exist or is an object, no need to lint it with this assert
|
|
178
182
|
const values = Array.isArray(value) ? value : [value];
|
|
179
183
|
const casingRegexes = {
|
|
@@ -188,9 +192,9 @@ export const asserts = {
|
|
|
188
192
|
return values
|
|
189
193
|
.map((_val) => !_val.match(casingRegexes[condition]) && {
|
|
190
194
|
message: `"${_val}" should use ${condition}`,
|
|
191
|
-
location:
|
|
195
|
+
location: (0, utils_1.isString)(value) ? baseLocation : baseLocation.child(_val).key(),
|
|
192
196
|
})
|
|
193
|
-
.filter(isTruthy);
|
|
197
|
+
.filter(utils_1.isTruthy);
|
|
194
198
|
},
|
|
195
199
|
sortOrder: (value, condition, { baseLocation }) => {
|
|
196
200
|
const direction = condition.direction || condition;
|
|
@@ -203,7 +207,7 @@ export const asserts = {
|
|
|
203
207
|
},
|
|
204
208
|
];
|
|
205
209
|
}
|
|
206
|
-
if (typeof value === 'undefined' || isOrdered(value, condition))
|
|
210
|
+
if (typeof value === 'undefined' || (0, utils_2.isOrdered)(value, condition))
|
|
207
211
|
return [];
|
|
208
212
|
return [
|
|
209
213
|
{
|
|
@@ -213,7 +217,7 @@ export const asserts = {
|
|
|
213
217
|
];
|
|
214
218
|
},
|
|
215
219
|
mutuallyExclusive: (value, condition, { baseLocation }) => {
|
|
216
|
-
if (getIntersectionLength(value, condition) < 2)
|
|
220
|
+
if ((0, utils_2.getIntersectionLength)(value, condition) < 2)
|
|
217
221
|
return [];
|
|
218
222
|
return [
|
|
219
223
|
{
|
|
@@ -223,8 +227,8 @@ export const asserts = {
|
|
|
223
227
|
];
|
|
224
228
|
},
|
|
225
229
|
mutuallyRequired: (value, condition, { baseLocation }) => {
|
|
226
|
-
const isValid = getIntersectionLength(value, condition) > 0
|
|
227
|
-
? getIntersectionLength(value, condition) === condition.length
|
|
230
|
+
const isValid = (0, utils_2.getIntersectionLength)(value, condition) > 0
|
|
231
|
+
? (0, utils_2.getIntersectionLength)(value, condition) === condition.length
|
|
228
232
|
: true;
|
|
229
233
|
return isValid
|
|
230
234
|
? []
|
|
@@ -236,7 +240,7 @@ export const asserts = {
|
|
|
236
240
|
];
|
|
237
241
|
},
|
|
238
242
|
requireAny: (value, condition, { baseLocation }) => {
|
|
239
|
-
return getIntersectionLength(value, condition) >= 1
|
|
243
|
+
return (0, utils_2.getIntersectionLength)(value, condition) >= 1
|
|
240
244
|
? []
|
|
241
245
|
: [
|
|
242
246
|
{
|
|
@@ -260,7 +264,7 @@ export const asserts = {
|
|
|
260
264
|
},
|
|
261
265
|
];
|
|
262
266
|
}
|
|
263
|
-
const regex = regexFromString(condition);
|
|
267
|
+
const regex = (0, utils_2.regexFromString)(condition);
|
|
264
268
|
const isValid = hasRef && regex?.test(rawValue['$ref']);
|
|
265
269
|
return isValid
|
|
266
270
|
? []
|
|
@@ -272,7 +276,6 @@ export const asserts = {
|
|
|
272
276
|
];
|
|
273
277
|
},
|
|
274
278
|
};
|
|
275
|
-
|
|
279
|
+
function buildAssertCustomFunction(fn) {
|
|
276
280
|
return (value, options, ctx) => fn.call(null, value, options, ctx);
|
|
277
281
|
}
|
|
278
|
-
//# sourceMappingURL=asserts.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { asserts, AssertionFn } from './asserts
|
|
2
|
-
import type { Arazzo1Visitor, Async2Visitor, Async3Visitor, Oas2Visitor, Oas3Visitor, Overlay1Visitor } from '../../../visitors
|
|
3
|
-
import type { RuleSeverity } from '../../../config
|
|
1
|
+
import type { asserts, AssertionFn } from './asserts';
|
|
2
|
+
import type { Arazzo1Visitor, Async2Visitor, Async3Visitor, Oas2Visitor, Oas3Visitor, Overlay1Visitor } from '../../../visitors';
|
|
3
|
+
import type { RuleSeverity } from '../../../config';
|
|
4
4
|
export type AssertionLocators = {
|
|
5
5
|
filterInParentKeys?: (string | number)[];
|
|
6
6
|
filterOutParentKeys?: (string | number)[];
|
|
@@ -25,4 +25,3 @@ export type Assertion = RawAssertion & {
|
|
|
25
25
|
assertionId: string;
|
|
26
26
|
};
|
|
27
27
|
export declare const Assertions: (opts: Record<string, Assertion>) => (Oas3Visitor | Oas2Visitor | Async2Visitor | Async3Visitor | Arazzo1Visitor | Overlay1Visitor)[];
|
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|