@redocly/openapi-core 0.0.0-snapshot.1744801622 → 0.0.0-snapshot.1747233324
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 +2 -1
- package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/lint-with-many-rules.bench.js +17 -19
- package/lib/benchmark/benches/lint-with-many-rules.bench.js.map +1 -0
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +2 -1
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js +15 -19
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js.map +1 -0
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +2 -1
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/lint-with-no-rules.bench.js +15 -19
- package/lib/benchmark/benches/lint-with-no-rules.bench.js.map +1 -0
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +2 -1
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +15 -19
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js.map +1 -0
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +2 -1
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +15 -19
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js.map +1 -0
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts +2 -1
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/recommended-oas3.bench.js +15 -18
- package/lib/benchmark/benches/recommended-oas3.bench.js.map +1 -0
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts +2 -1
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts.map +1 -0
- package/lib/benchmark/benches/resolve-with-no-external.bench.js +14 -17
- package/lib/benchmark/benches/resolve-with-no-external.bench.js.map +1 -0
- package/lib/benchmark/utils.d.ts +5 -4
- package/lib/benchmark/utils.d.ts.map +1 -0
- package/lib/benchmark/utils.js +11 -14
- package/lib/benchmark/utils.js.map +1 -0
- package/lib/bundle.d.ts +8 -9
- package/lib/bundle.d.ts.map +1 -0
- package/lib/bundle.js +72 -84
- package/lib/bundle.js.map +1 -0
- package/lib/config/all.d.ts +2 -1
- package/lib/config/all.d.ts.map +1 -0
- package/lib/config/all.js +2 -3
- package/lib/config/all.js.map +1 -0
- package/lib/config/builtIn.d.ts +2 -1
- package/lib/config/builtIn.d.ts.map +1 -0
- package/lib/config/builtIn.js +44 -49
- package/lib/config/builtIn.js.map +1 -0
- package/lib/config/config-resolvers.d.ts +6 -5
- package/lib/config/config-resolvers.d.ts.map +1 -0
- package/lib/config/config-resolvers.js +86 -98
- package/lib/config/config-resolvers.js.map +1 -0
- package/lib/config/config.d.ts +6 -8
- package/lib/config/config.d.ts.map +1 -0
- package/lib/config/config.js +63 -92
- package/lib/config/config.js.map +1 -0
- package/lib/config/index.d.ts +8 -7
- package/lib/config/index.d.ts.map +1 -0
- package/lib/config/index.js +8 -23
- package/lib/config/index.js.map +1 -0
- package/lib/config/load.d.ts +5 -8
- package/lib/config/load.d.ts.map +1 -0
- package/lib/config/load.js +28 -73
- package/lib/config/load.js.map +1 -0
- package/lib/config/minimal.d.ts +2 -1
- package/lib/config/minimal.d.ts.map +1 -0
- package/lib/config/minimal.js +2 -3
- package/lib/config/minimal.js.map +1 -0
- package/lib/config/recommended-strict.d.ts +2 -1
- package/lib/config/recommended-strict.d.ts.map +1 -0
- package/lib/config/recommended-strict.js +2 -3
- package/lib/config/recommended-strict.js.map +1 -0
- package/lib/config/recommended.d.ts +2 -1
- package/lib/config/recommended.d.ts.map +1 -0
- package/lib/config/recommended.js +2 -3
- package/lib/config/recommended.js.map +1 -0
- package/lib/config/rules.d.ts +4 -3
- package/lib/config/rules.d.ts.map +1 -0
- package/lib/config/rules.js +4 -6
- package/lib/config/rules.js.map +1 -0
- package/lib/config/spec.d.ts +2 -1
- package/lib/config/spec.d.ts.map +1 -0
- package/lib/config/spec.js +2 -3
- package/lib/config/spec.js.map +1 -0
- package/lib/config/types.d.ts +6 -13
- package/lib/config/types.d.ts.map +1 -0
- package/lib/config/types.js +2 -2
- package/lib/config/types.js.map +1 -0
- package/lib/config/utils.d.ts +3 -2
- package/lib/config/utils.d.ts.map +1 -0
- package/lib/config/utils.js +74 -100
- package/lib/config/utils.js.map +1 -0
- package/lib/decorators/arazzo/index.d.ts +1 -0
- package/lib/decorators/arazzo/index.d.ts.map +1 -0
- package/lib/decorators/arazzo/index.js +2 -4
- package/lib/decorators/arazzo/index.js.map +1 -0
- package/lib/decorators/async2/index.d.ts +1 -0
- package/lib/decorators/async2/index.d.ts.map +1 -0
- package/lib/decorators/async2/index.js +2 -4
- package/lib/decorators/async2/index.js.map +1 -0
- package/lib/decorators/async3/index.d.ts +1 -0
- package/lib/decorators/async3/index.d.ts.map +1 -0
- package/lib/decorators/async3/index.js +2 -4
- package/lib/decorators/async3/index.js.map +1 -0
- package/lib/decorators/common/filters/filter-helper.d.ts +2 -1
- package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-helper.js +9 -12
- package/lib/decorators/common/filters/filter-helper.js.map +1 -0
- package/lib/decorators/common/filters/filter-in.d.ts +2 -1
- package/lib/decorators/common/filters/filter-in.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-in.js +5 -8
- package/lib/decorators/common/filters/filter-in.js.map +1 -0
- package/lib/decorators/common/filters/filter-out.d.ts +2 -1
- package/lib/decorators/common/filters/filter-out.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-out.js +5 -8
- package/lib/decorators/common/filters/filter-out.js.map +1 -0
- package/lib/decorators/common/info-description-override.d.ts +2 -1
- package/lib/decorators/common/info-description-override.d.ts.map +1 -0
- package/lib/decorators/common/info-description-override.js +4 -7
- package/lib/decorators/common/info-description-override.js.map +1 -0
- package/lib/decorators/common/info-override.d.ts +2 -1
- package/lib/decorators/common/info-override.d.ts.map +1 -0
- package/lib/decorators/common/info-override.js +2 -5
- package/lib/decorators/common/info-override.js.map +1 -0
- package/lib/decorators/common/media-type-examples-override.d.ts +2 -1
- package/lib/decorators/common/media-type-examples-override.d.ts.map +1 -0
- package/lib/decorators/common/media-type-examples-override.js +7 -10
- package/lib/decorators/common/media-type-examples-override.js.map +1 -0
- package/lib/decorators/common/operation-description-override.d.ts +2 -1
- package/lib/decorators/common/operation-description-override.d.ts.map +1 -0
- package/lib/decorators/common/operation-description-override.js +4 -7
- package/lib/decorators/common/operation-description-override.js.map +1 -0
- package/lib/decorators/common/remove-x-internal.d.ts +2 -1
- package/lib/decorators/common/remove-x-internal.d.ts.map +1 -0
- package/lib/decorators/common/remove-x-internal.js +11 -14
- package/lib/decorators/common/remove-x-internal.js.map +1 -0
- package/lib/decorators/common/tag-description-override.d.ts +2 -1
- package/lib/decorators/common/tag-description-override.d.ts.map +1 -0
- package/lib/decorators/common/tag-description-override.js +4 -7
- package/lib/decorators/common/tag-description-override.js.map +1 -0
- package/lib/decorators/oas2/index.d.ts +2 -2
- package/lib/decorators/oas2/index.d.ts.map +1 -0
- package/lib/decorators/oas2/index.js +16 -20
- package/lib/decorators/oas2/index.js.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.d.ts +2 -1
- package/lib/decorators/oas2/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.js +4 -7
- package/lib/decorators/oas2/remove-unused-components.js.map +1 -0
- package/lib/decorators/oas3/index.d.ts +2 -2
- package/lib/decorators/oas3/index.d.ts.map +1 -0
- package/lib/decorators/oas3/index.js +18 -22
- package/lib/decorators/oas3/index.js.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.d.ts +2 -1
- package/lib/decorators/oas3/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.js +5 -8
- package/lib/decorators/oas3/remove-unused-components.js.map +1 -0
- package/lib/decorators/overlay1/index.d.ts +1 -0
- package/lib/decorators/overlay1/index.d.ts.map +1 -0
- package/lib/decorators/overlay1/index.js +2 -4
- package/lib/decorators/overlay1/index.js.map +1 -0
- package/lib/env.d.ts +1 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +3 -5
- package/lib/env.js.map +1 -0
- package/lib/format/codeframes.d.ts +2 -1
- package/lib/format/codeframes.d.ts.map +1 -0
- package/lib/format/codeframes.js +15 -19
- package/lib/format/codeframes.js.map +1 -0
- package/lib/format/format.d.ts +2 -1
- package/lib/format/format.d.ts.map +1 -0
- package/lib/format/format.js +57 -62
- package/lib/format/format.js.map +1 -0
- package/lib/index.d.ts +29 -26
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +24 -98
- package/lib/index.js.map +1 -0
- package/lib/js-yaml/index.d.ts +1 -0
- package/lib/js-yaml/index.d.ts.map +1 -0
- package/lib/js-yaml/index.js +7 -11
- package/lib/js-yaml/index.js.map +1 -0
- package/lib/lint.d.ts +11 -10
- package/lib/lint.d.ts.map +1 -0
- package/lib/lint.js +40 -45
- package/lib/lint.js.map +1 -0
- package/lib/logger.d.ts +2 -1
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +15 -17
- package/lib/logger.js.map +1 -0
- package/lib/oas-types.d.ts +4 -3
- package/lib/oas-types.d.ts.map +1 -0
- package/lib/oas-types.js +27 -32
- package/lib/oas-types.js.map +1 -0
- package/lib/ref-utils.d.ts +3 -2
- package/lib/ref-utils.d.ts.map +1 -0
- package/lib/ref-utils.js +18 -33
- package/lib/ref-utils.js.map +1 -0
- package/lib/resolve.d.ts +3 -2
- package/lib/resolve.d.ts.map +1 -0
- package/lib/resolve.js +36 -45
- package/lib/resolve.js.map +1 -0
- package/lib/rules/ajv.d.ts +4 -3
- package/lib/rules/ajv.d.ts.map +1 -0
- package/lib/rules/ajv.js +7 -10
- package/lib/rules/ajv.js.map +1 -0
- package/lib/rules/arazzo/criteria-unique.d.ts +2 -1
- package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/criteria-unique.js +2 -5
- package/lib/rules/arazzo/criteria-unique.js.map +1 -0
- package/lib/rules/arazzo/index.d.ts +2 -1
- package/lib/rules/arazzo/index.d.ts.map +1 -0
- package/lib/rules/arazzo/index.js +33 -35
- package/lib/rules/arazzo/index.js.map +1 -0
- package/lib/rules/arazzo/parameters-unique.d.ts +2 -1
- package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/parameters-unique.js +2 -5
- package/lib/rules/arazzo/parameters-unique.js.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +2 -1
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.js +2 -5
- package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.d.ts +2 -1
- package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.js +2 -5
- package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +2 -1
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js +2 -5
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +2 -1
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js +2 -5
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.d.ts +2 -1
- package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.js +2 -5
- package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts +2 -1
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.js +2 -5
- package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
- package/lib/rules/arazzo/stepId-unique.d.ts +2 -1
- package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/stepId-unique.js +2 -5
- package/lib/rules/arazzo/stepId-unique.js.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.d.ts +2 -1
- package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.js +2 -5
- package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.d.ts +2 -1
- package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.js +2 -5
- package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
- package/lib/rules/async2/channels-kebab-case.d.ts +2 -1
- package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async2/channels-kebab-case.js +2 -5
- package/lib/rules/async2/channels-kebab-case.js.map +1 -0
- package/lib/rules/async2/index.d.ts +2 -1
- package/lib/rules/async2/index.d.ts.map +1 -0
- package/lib/rules/async2/index.js +21 -26
- package/lib/rules/async2/index.js.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +2 -1
- package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.js +2 -5
- package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/async3/channels-kebab-case.d.ts +2 -1
- package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async3/channels-kebab-case.js +2 -5
- package/lib/rules/async3/channels-kebab-case.js.map +1 -0
- package/lib/rules/async3/index.d.ts +2 -1
- package/lib/rules/async3/index.d.ts.map +1 -0
- package/lib/rules/async3/index.js +21 -26
- package/lib/rules/async3/index.js.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +2 -1
- package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.js +3 -6
- package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/common/assertions/asserts.d.ts +3 -2
- package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
- package/lib/rules/common/assertions/asserts.js +35 -38
- package/lib/rules/common/assertions/asserts.js.map +1 -0
- package/lib/rules/common/assertions/index.d.ts +4 -3
- package/lib/rules/common/assertions/index.d.ts.map +1 -0
- package/lib/rules/common/assertions/index.js +7 -10
- package/lib/rules/common/assertions/index.js.map +1 -0
- package/lib/rules/common/assertions/utils.d.ts +5 -4
- package/lib/rules/common/assertions/utils.d.ts.map +1 -0
- package/lib/rules/common/assertions/utils.js +21 -29
- package/lib/rules/common/assertions/utils.js.map +1 -0
- package/lib/rules/common/info-contact.d.ts +2 -1
- package/lib/rules/common/info-contact.d.ts.map +1 -0
- package/lib/rules/common/info-contact.js +4 -7
- package/lib/rules/common/info-contact.js.map +1 -0
- package/lib/rules/common/info-license-strict.d.ts +2 -1
- package/lib/rules/common/info-license-strict.d.ts.map +1 -0
- package/lib/rules/common/info-license-strict.js +7 -10
- package/lib/rules/common/info-license-strict.js.map +1 -0
- package/lib/rules/common/info-license-url.d.ts +2 -1
- package/lib/rules/common/info-license-url.d.ts.map +1 -0
- package/lib/rules/common/info-license-url.js +4 -7
- package/lib/rules/common/info-license-url.js.map +1 -0
- package/lib/rules/common/info-license.d.ts +2 -1
- package/lib/rules/common/info-license.d.ts.map +1 -0
- package/lib/rules/common/info-license.js +4 -7
- package/lib/rules/common/info-license.js.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.d.ts +2 -1
- package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.js +2 -5
- package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.d.ts +2 -1
- package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.js +6 -9
- package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.d.ts +2 -1
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.js +5 -8
- package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
- package/lib/rules/common/no-identical-paths.d.ts +2 -1
- package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
- package/lib/rules/common/no-identical-paths.js +2 -5
- package/lib/rules/common/no-identical-paths.js.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.js +6 -9
- package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.d.ts +2 -1
- package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.js +6 -9
- package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.d.ts +2 -1
- package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.js +2 -5
- package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts +2 -1
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.js +4 -7
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.d.ts +2 -1
- package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.js +2 -5
- package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
- package/lib/rules/common/operation-2xx-response.d.ts +2 -1
- package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-2xx-response.js +5 -8
- package/lib/rules/common/operation-2xx-response.js.map +1 -0
- package/lib/rules/common/operation-4xx-response.d.ts +2 -1
- package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-4xx-response.js +5 -8
- package/lib/rules/common/operation-4xx-response.js.map +1 -0
- package/lib/rules/common/operation-description.d.ts +2 -1
- package/lib/rules/common/operation-description.d.ts.map +1 -0
- package/lib/rules/common/operation-description.js +4 -7
- package/lib/rules/common/operation-description.js.map +1 -0
- package/lib/rules/common/operation-operationId-unique.d.ts +2 -1
- package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-unique.js +2 -5
- package/lib/rules/common/operation-operationId-unique.js.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.d.ts +2 -1
- package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.js +2 -5
- package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
- package/lib/rules/common/operation-operationId.d.ts +2 -1
- package/lib/rules/common/operation-operationId.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId.js +4 -7
- package/lib/rules/common/operation-operationId.js.map +1 -0
- package/lib/rules/common/operation-parameters-unique.d.ts +2 -1
- package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-parameters-unique.js +2 -5
- package/lib/rules/common/operation-parameters-unique.js.map +1 -0
- package/lib/rules/common/operation-singular-tag.d.ts +2 -1
- package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
- package/lib/rules/common/operation-singular-tag.js +2 -5
- package/lib/rules/common/operation-singular-tag.js.map +1 -0
- package/lib/rules/common/operation-summary.d.ts +2 -1
- package/lib/rules/common/operation-summary.d.ts.map +1 -0
- package/lib/rules/common/operation-summary.js +4 -7
- package/lib/rules/common/operation-summary.js.map +1 -0
- package/lib/rules/common/operation-tag-defined.d.ts +2 -1
- package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
- package/lib/rules/common/operation-tag-defined.js +2 -5
- package/lib/rules/common/operation-tag-defined.js.map +1 -0
- package/lib/rules/common/parameter-description.d.ts +2 -1
- package/lib/rules/common/parameter-description.d.ts.map +1 -0
- package/lib/rules/common/parameter-description.js +2 -5
- package/lib/rules/common/parameter-description.js.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.d.ts +2 -1
- package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.js +2 -5
- package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
- package/lib/rules/common/path-excludes-patterns.d.ts +2 -1
- package/lib/rules/common/path-excludes-patterns.d.ts.map +1 -0
- package/lib/rules/common/path-excludes-patterns.js +2 -5
- package/lib/rules/common/path-excludes-patterns.js.map +1 -0
- package/lib/rules/common/path-http-verbs-order.d.ts +2 -1
- package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
- package/lib/rules/common/path-http-verbs-order.js +2 -5
- package/lib/rules/common/path-http-verbs-order.js.map +1 -0
- package/lib/rules/common/path-not-include-query.d.ts +2 -1
- package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
- package/lib/rules/common/path-not-include-query.js +2 -5
- package/lib/rules/common/path-not-include-query.js.map +1 -0
- package/lib/rules/common/path-params-defined.d.ts +2 -1
- package/lib/rules/common/path-params-defined.d.ts.map +1 -0
- package/lib/rules/common/path-params-defined.js +2 -5
- package/lib/rules/common/path-params-defined.js.map +1 -0
- package/lib/rules/common/path-segment-plural.d.ts +2 -1
- package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
- package/lib/rules/common/path-segment-plural.js +6 -9
- package/lib/rules/common/path-segment-plural.js.map +1 -0
- package/lib/rules/common/paths-kebab-case.d.ts +2 -1
- package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
- package/lib/rules/common/paths-kebab-case.js +2 -5
- package/lib/rules/common/paths-kebab-case.js.map +1 -0
- package/lib/rules/common/required-string-property-missing-min-length.d.ts +2 -1
- 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 +2 -5
- package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
- package/lib/rules/common/response-contains-header.d.ts +2 -1
- package/lib/rules/common/response-contains-header.d.ts.map +1 -0
- package/lib/rules/common/response-contains-header.js +5 -8
- package/lib/rules/common/response-contains-header.js.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.d.ts +2 -1
- package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.js +4 -7
- package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
- package/lib/rules/common/security-defined.d.ts +2 -1
- package/lib/rules/common/security-defined.d.ts.map +1 -0
- package/lib/rules/common/security-defined.js +2 -5
- package/lib/rules/common/security-defined.js.map +1 -0
- package/lib/rules/common/spec-strict-refs.d.ts +2 -1
- package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
- package/lib/rules/common/spec-strict-refs.js +4 -7
- package/lib/rules/common/spec-strict-refs.js.map +1 -0
- package/lib/rules/common/struct.d.ts +2 -1
- package/lib/rules/common/struct.d.ts.map +1 -0
- package/lib/rules/common/struct.js +18 -21
- package/lib/rules/common/struct.js.map +1 -0
- package/lib/rules/common/tag-description.d.ts +2 -1
- package/lib/rules/common/tag-description.d.ts.map +1 -0
- package/lib/rules/common/tag-description.js +4 -7
- package/lib/rules/common/tag-description.js.map +1 -0
- package/lib/rules/common/tags-alphabetical.d.ts +2 -1
- package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
- package/lib/rules/common/tags-alphabetical.js +2 -5
- package/lib/rules/common/tags-alphabetical.js.map +1 -0
- package/lib/rules/no-unresolved-refs.d.ts +4 -3
- package/lib/rules/no-unresolved-refs.d.ts.map +1 -0
- package/lib/rules/no-unresolved-refs.js +5 -9
- package/lib/rules/no-unresolved-refs.js.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +2 -1
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.js +2 -5
- package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas2/index.d.ts +2 -1
- package/lib/rules/oas2/index.d.ts.map +1 -0
- package/lib/rules/oas2/index.js +94 -99
- package/lib/rules/oas2/index.js.map +1 -0
- package/lib/rules/oas2/request-mime-type.d.ts +2 -1
- package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/request-mime-type.js +5 -8
- package/lib/rules/oas2/request-mime-type.js.map +1 -0
- package/lib/rules/oas2/response-contains-property.d.ts +2 -1
- package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas2/response-contains-property.js +5 -8
- package/lib/rules/oas2/response-contains-property.js.map +1 -0
- package/lib/rules/oas2/response-mime-type.d.ts +2 -1
- package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/response-mime-type.js +5 -8
- package/lib/rules/oas2/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.d.ts +2 -1
- package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.js +4 -7
- package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +2 -1
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.js +2 -5
- package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas3/component-name-unique.d.ts +2 -1
- package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
- package/lib/rules/oas3/component-name-unique.js +2 -5
- package/lib/rules/oas3/component-name-unique.js.map +1 -0
- package/lib/rules/oas3/index.d.ts +2 -1
- package/lib/rules/oas3/index.d.ts.map +1 -0
- package/lib/rules/oas3/index.js +118 -123
- package/lib/rules/oas3/index.js.map +1 -0
- package/lib/rules/oas3/no-empty-servers.d.ts +2 -1
- package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
- package/lib/rules/oas3/no-empty-servers.js +2 -5
- package/lib/rules/oas3/no-empty-servers.js.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +2 -1
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.js +2 -5
- package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +2 -1
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.js +7 -10
- package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
- package/lib/rules/oas3/no-server-example.com.d.ts +2 -1
- package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-example.com.js +2 -5
- package/lib/rules/oas3/no-server-example.com.js.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.d.ts +2 -1
- package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.js +2 -5
- package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +2 -1
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.js +2 -5
- package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.d.ts +2 -1
- package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.js +2 -5
- package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
- package/lib/rules/oas3/no-unused-components.d.ts +2 -1
- package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
- package/lib/rules/oas3/no-unused-components.js +2 -5
- package/lib/rules/oas3/no-unused-components.js.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +2 -1
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +6 -9
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
- package/lib/rules/oas3/request-mime-type.d.ts +2 -1
- package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/request-mime-type.js +6 -9
- package/lib/rules/oas3/request-mime-type.js.map +1 -0
- package/lib/rules/oas3/response-contains-property.d.ts +2 -1
- package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas3/response-contains-property.js +5 -8
- package/lib/rules/oas3/response-contains-property.js.map +1 -0
- package/lib/rules/oas3/response-mime-type.d.ts +2 -1
- package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/response-mime-type.js +6 -9
- package/lib/rules/oas3/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +2 -1
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.js +2 -5
- package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
- package/lib/rules/other/stats.d.ts +4 -3
- package/lib/rules/other/stats.d.ts.map +1 -0
- package/lib/rules/other/stats.js +2 -5
- package/lib/rules/other/stats.js.map +1 -0
- package/lib/rules/overlay1/index.d.ts +2 -1
- package/lib/rules/overlay1/index.d.ts.map +1 -0
- package/lib/rules/overlay1/index.js +9 -11
- package/lib/rules/overlay1/index.js.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.d.ts +2 -1
- package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.js +2 -5
- package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
- package/lib/rules/respect/respect-supported-versions.d.ts +2 -1
- package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
- package/lib/rules/respect/respect-supported-versions.js +7 -10
- package/lib/rules/respect/respect-supported-versions.js.map +1 -0
- package/lib/rules/utils.d.ts +4 -3
- package/lib/rules/utils.d.ts.map +1 -0
- package/lib/rules/utils.js +23 -36
- package/lib/rules/utils.js.map +1 -0
- package/lib/types/arazzo.d.ts +2 -1
- package/lib/types/arazzo.d.ts.map +1 -0
- package/lib/types/arazzo.js +21 -23
- package/lib/types/arazzo.js.map +1 -0
- package/lib/types/asyncapi2.d.ts +2 -1
- package/lib/types/asyncapi2.d.ts.map +1 -0
- package/lib/types/asyncapi2.js +54 -56
- package/lib/types/asyncapi2.js.map +1 -0
- package/lib/types/asyncapi3.d.ts +2 -1
- package/lib/types/asyncapi3.d.ts.map +1 -0
- package/lib/types/asyncapi3.js +41 -43
- package/lib/types/asyncapi3.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +7 -13
- package/lib/types/index.js.map +1 -0
- package/lib/types/json-schema-adapter.d.ts +2 -1
- package/lib/types/json-schema-adapter.d.ts.map +1 -0
- package/lib/types/json-schema-adapter.js +15 -17
- package/lib/types/json-schema-adapter.js.map +1 -0
- package/lib/types/oas2.d.ts +3 -2
- package/lib/types/oas2.d.ts.map +1 -0
- package/lib/types/oas2.js +17 -19
- package/lib/types/oas2.js.map +1 -0
- package/lib/types/oas3.d.ts +3 -2
- package/lib/types/oas3.d.ts.map +1 -0
- package/lib/types/oas3.js +39 -41
- package/lib/types/oas3.js.map +1 -0
- package/lib/types/oas3_1.d.ts +3 -2
- package/lib/types/oas3_1.d.ts.map +1 -0
- package/lib/types/oas3_1.js +18 -20
- package/lib/types/oas3_1.js.map +1 -0
- package/lib/types/overlay.d.ts +2 -1
- package/lib/types/overlay.d.ts.map +1 -0
- package/lib/types/overlay.js +4 -6
- package/lib/types/overlay.js.map +1 -0
- package/lib/types/redocly-yaml.d.ts +4 -3
- package/lib/types/redocly-yaml.d.ts.map +1 -0
- package/lib/types/redocly-yaml.js +31 -58
- package/lib/types/redocly-yaml.js.map +1 -0
- package/lib/typings/arazzo.d.ts +1 -0
- package/lib/typings/arazzo.d.ts.map +1 -0
- package/lib/typings/arazzo.js +3 -5
- package/lib/typings/arazzo.js.map +1 -0
- package/lib/typings/asyncapi.d.ts +1 -0
- package/lib/typings/asyncapi.d.ts.map +1 -0
- package/lib/typings/asyncapi.js +2 -2
- package/lib/typings/asyncapi.js.map +1 -0
- package/lib/typings/asyncapi3.d.ts +1 -0
- package/lib/typings/asyncapi3.d.ts.map +1 -0
- package/lib/typings/asyncapi3.js +2 -2
- package/lib/typings/asyncapi3.js.map +1 -0
- package/lib/typings/common.d.ts +1 -0
- package/lib/typings/common.d.ts.map +1 -0
- package/lib/typings/common.js +2 -2
- package/lib/typings/common.js.map +1 -0
- package/lib/typings/openapi.d.ts +1 -0
- package/lib/typings/openapi.d.ts.map +1 -0
- package/lib/typings/openapi.js +2 -2
- package/lib/typings/openapi.js.map +1 -0
- package/lib/typings/overlay.d.ts +1 -0
- package/lib/typings/overlay.d.ts.map +1 -0
- package/lib/typings/overlay.js +2 -4
- package/lib/typings/overlay.js.map +1 -0
- package/lib/typings/swagger.d.ts +2 -1
- package/lib/typings/swagger.d.ts.map +1 -0
- package/lib/typings/swagger.js +2 -2
- package/lib/typings/swagger.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.d.ts +4 -5
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +52 -99
- package/lib/utils.js.map +1 -0
- package/lib/visitors.d.ts +11 -10
- package/lib/visitors.d.ts.map +1 -0
- package/lib/visitors.js +4 -6
- package/lib/visitors.js.map +1 -0
- package/lib/walk.d.ts +9 -8
- package/lib/walk.d.ts.map +1 -0
- package/lib/walk.js +23 -25
- package/lib/walk.js.map +1 -0
- package/package.json +31 -10
- package/lib/decorators/common/registry-dependencies.d.ts +0 -2
- package/lib/decorators/common/registry-dependencies.js +0 -24
- package/lib/output.d.ts +0 -3
- package/lib/output.js +0 -9
- package/lib/redocly/domains.d.ts +0 -14
- package/lib/redocly/domains.js +0 -41
- package/lib/redocly/index.d.ts +0 -30
- package/lib/redocly/index.js +0 -131
- package/lib/redocly/redocly-client-types.d.ts +0 -8
- package/lib/redocly/redocly-client-types.js +0 -2
- package/lib/redocly/registry-api-types.d.ts +0 -29
- package/lib/redocly/registry-api-types.js +0 -2
- package/lib/redocly/registry-api.d.ts +0 -17
- package/lib/redocly/registry-api.js +0 -100
package/lib/rules/oas3/index.js
CHANGED
|
@@ -1,124 +1,119 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
'
|
|
67
|
-
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'operation-
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'operation-
|
|
77
|
-
'
|
|
78
|
-
'
|
|
79
|
-
'
|
|
80
|
-
'no-
|
|
81
|
-
'
|
|
82
|
-
'
|
|
83
|
-
'operation-
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'operation-
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'no-
|
|
98
|
-
'
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'no-
|
|
106
|
-
'no-
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
114
|
-
'
|
|
115
|
-
'
|
|
116
|
-
'
|
|
117
|
-
'required-string-property-missing-min-length': required_string_property_missing_min_length_1.RequiredStringPropertyMissingMinLength,
|
|
118
|
-
'spec-strict-refs': spec_strict_refs_1.SpecStrictRefs,
|
|
119
|
-
'component-name-unique': component_name_unique_1.ComponentNameUnique,
|
|
120
|
-
'array-parameter-serialization': array_parameter_serialization_1.ArrayParameterSerialization,
|
|
121
|
-
'no-required-schema-properties-undefined': no_required_schema_properties_undefined_1.NoRequiredSchemaPropertiesUndefined,
|
|
122
|
-
'no-schema-type-mismatch': no_schema_type_mismatch_1.NoSchemaTypeMismatch,
|
|
1
|
+
import { Struct } from '../common/struct.js';
|
|
2
|
+
import { Operation2xxResponse } from '../common/operation-2xx-response.js';
|
|
3
|
+
import { Operation4xxResponse } from '../common/operation-4xx-response.js';
|
|
4
|
+
import { Assertions } from '../common/assertions/index.js';
|
|
5
|
+
import { OperationIdUnique } from '../common/operation-operationId-unique.js';
|
|
6
|
+
import { OperationParametersUnique } from '../common/operation-parameters-unique.js';
|
|
7
|
+
import { PathParamsDefined } from '../common/path-params-defined.js';
|
|
8
|
+
import { OperationTagDefined } from '../common/operation-tag-defined.js';
|
|
9
|
+
import { NoExampleValueAndExternalValue } from './no-example-value-and-externalValue.js';
|
|
10
|
+
import { NoEnumTypeMismatch } from '../common/no-enum-type-mismatch.js';
|
|
11
|
+
import { NoPathTrailingSlash } from '../common/no-path-trailing-slash.js';
|
|
12
|
+
import { PathDeclarationMustExist } from '../common/path-declaration-must-exist.js';
|
|
13
|
+
import { OperationIdUrlSafe } from '../common/operation-operationId-url-safe.js';
|
|
14
|
+
import { TagsAlphabetical } from '../common/tags-alphabetical.js';
|
|
15
|
+
import { NoServerExample } from './no-server-example.com.js';
|
|
16
|
+
import { NoServerTrailingSlash } from './no-server-trailing-slash.js';
|
|
17
|
+
import { TagDescription } from '../common/tag-description.js';
|
|
18
|
+
import { InfoContact } from '../common/info-contact.js';
|
|
19
|
+
import { InfoLicense } from '../common/info-license.js';
|
|
20
|
+
import { InfoLicenseUrl } from '../common/info-license-url.js';
|
|
21
|
+
import { InfoLicenseStrict } from '../common/info-license-strict.js';
|
|
22
|
+
import { OperationDescription } from '../common/operation-description.js';
|
|
23
|
+
import { NoUnusedComponents } from './no-unused-components.js';
|
|
24
|
+
import { PathNotIncludeQuery } from '../common/path-not-include-query.js';
|
|
25
|
+
import { ParameterDescription } from '../common/parameter-description.js';
|
|
26
|
+
import { OperationSingularTag } from '../common/operation-singular-tag.js';
|
|
27
|
+
import { SecurityDefined } from '../common/security-defined.js';
|
|
28
|
+
import { NoUnresolvedRefs } from '../no-unresolved-refs.js';
|
|
29
|
+
import { BooleanParameterPrefixes } from './boolean-parameter-prefixes.js';
|
|
30
|
+
import { PathsKebabCase } from '../common/paths-kebab-case.js';
|
|
31
|
+
import { PathHttpVerbsOrder } from '../common/path-http-verbs-order.js';
|
|
32
|
+
import { NoEmptyServers } from './no-empty-servers.js';
|
|
33
|
+
import { ValidContentExamples } from './no-invalid-media-type-examples.js';
|
|
34
|
+
import { NoIdenticalPaths } from '../common/no-identical-paths.js';
|
|
35
|
+
import { NoUndefinedServerVariable } from './no-undefined-server-variable.js';
|
|
36
|
+
import { OperationOperationId } from '../common/operation-operationId.js';
|
|
37
|
+
import { OperationSummary } from '../common/operation-summary.js';
|
|
38
|
+
import { NoAmbiguousPaths } from '../common/no-ambiguous-paths.js';
|
|
39
|
+
import { NoServerVariablesEmptyEnum } from './no-server-variables-empty-enum.js';
|
|
40
|
+
import { NoHttpVerbsInPaths } from '../common/no-http-verbs-in-paths.js';
|
|
41
|
+
import { RequestMimeType } from './request-mime-type.js';
|
|
42
|
+
import { ResponseMimeType } from './response-mime-type.js';
|
|
43
|
+
import { PathSegmentPlural } from '../common/path-segment-plural.js';
|
|
44
|
+
import { PathExcludesPatterns } from '../common/path-excludes-patterns.js';
|
|
45
|
+
import { NoInvalidSchemaExamples } from '../common/no-invalid-schema-examples.js';
|
|
46
|
+
import { NoInvalidParameterExamples } from '../common/no-invalid-parameter-examples.js';
|
|
47
|
+
import { ResponseContainsHeader } from '../common/response-contains-header.js';
|
|
48
|
+
import { ResponseContainsProperty } from './response-contains-property.js';
|
|
49
|
+
import { ScalarPropertyMissingExample } from '../common/scalar-property-missing-example.js';
|
|
50
|
+
import { SpecComponentsInvalidMapName } from './spec-components-invalid-map-name.js';
|
|
51
|
+
import { Operation4xxProblemDetailsRfc7807 } from './operation-4xx-problem-details-rfc7807.js';
|
|
52
|
+
import { RequiredStringPropertyMissingMinLength } from '../common/required-string-property-missing-min-length.js';
|
|
53
|
+
import { SpecStrictRefs } from '../common/spec-strict-refs.js';
|
|
54
|
+
import { ComponentNameUnique } from './component-name-unique.js';
|
|
55
|
+
import { ArrayParameterSerialization } from './array-parameter-serialization.js';
|
|
56
|
+
import { NoRequiredSchemaPropertiesUndefined } from '../common/no-required-schema-properties-undefined.js';
|
|
57
|
+
import { NoSchemaTypeMismatch } from '../common/no-schema-type-mismatch.js';
|
|
58
|
+
export const rules = {
|
|
59
|
+
struct: Struct,
|
|
60
|
+
'info-contact': InfoContact,
|
|
61
|
+
'info-license': InfoLicense,
|
|
62
|
+
'info-license-url': InfoLicenseUrl,
|
|
63
|
+
'info-license-strict': InfoLicenseStrict,
|
|
64
|
+
'operation-2xx-response': Operation2xxResponse,
|
|
65
|
+
'operation-4xx-response': Operation4xxResponse,
|
|
66
|
+
'operation-4xx-problem-details-rfc7807': Operation4xxProblemDetailsRfc7807,
|
|
67
|
+
assertions: Assertions,
|
|
68
|
+
'operation-operationId-unique': OperationIdUnique,
|
|
69
|
+
'operation-parameters-unique': OperationParametersUnique,
|
|
70
|
+
'operation-tag-defined': OperationTagDefined,
|
|
71
|
+
'no-example-value-and-externalValue': NoExampleValueAndExternalValue,
|
|
72
|
+
'no-enum-type-mismatch': NoEnumTypeMismatch,
|
|
73
|
+
'no-path-trailing-slash': NoPathTrailingSlash,
|
|
74
|
+
'no-empty-servers': NoEmptyServers,
|
|
75
|
+
'path-declaration-must-exist': PathDeclarationMustExist,
|
|
76
|
+
'operation-operationId-url-safe': OperationIdUrlSafe,
|
|
77
|
+
'operation-operationId': OperationOperationId,
|
|
78
|
+
'operation-summary': OperationSummary,
|
|
79
|
+
'tags-alphabetical': TagsAlphabetical,
|
|
80
|
+
'no-server-example.com': NoServerExample,
|
|
81
|
+
'no-server-trailing-slash': NoServerTrailingSlash,
|
|
82
|
+
'tag-description': TagDescription,
|
|
83
|
+
'operation-description': OperationDescription,
|
|
84
|
+
'no-unused-components': NoUnusedComponents,
|
|
85
|
+
'path-not-include-query': PathNotIncludeQuery,
|
|
86
|
+
'path-parameters-defined': PathParamsDefined,
|
|
87
|
+
'path-params-defined': PathParamsDefined,
|
|
88
|
+
'parameter-description': ParameterDescription,
|
|
89
|
+
'operation-singular-tag': OperationSingularTag,
|
|
90
|
+
'security-defined': SecurityDefined,
|
|
91
|
+
'no-unresolved-refs': NoUnresolvedRefs,
|
|
92
|
+
'paths-kebab-case': PathsKebabCase,
|
|
93
|
+
'boolean-parameter-prefixes': BooleanParameterPrefixes,
|
|
94
|
+
'path-http-verbs-order': PathHttpVerbsOrder,
|
|
95
|
+
'no-invalid-media-type-examples': ValidContentExamples,
|
|
96
|
+
'no-identical-paths': NoIdenticalPaths,
|
|
97
|
+
'no-ambiguous-paths': NoAmbiguousPaths,
|
|
98
|
+
'no-undefined-server-variable': NoUndefinedServerVariable,
|
|
99
|
+
'no-server-variables-empty-enum': NoServerVariablesEmptyEnum,
|
|
100
|
+
'no-http-verbs-in-paths': NoHttpVerbsInPaths,
|
|
101
|
+
'path-excludes-patterns': PathExcludesPatterns,
|
|
102
|
+
'request-mime-type': RequestMimeType,
|
|
103
|
+
'response-mime-type': ResponseMimeType,
|
|
104
|
+
'path-segment-plural': PathSegmentPlural,
|
|
105
|
+
'no-invalid-schema-examples': NoInvalidSchemaExamples,
|
|
106
|
+
'no-invalid-parameter-examples': NoInvalidParameterExamples,
|
|
107
|
+
'response-contains-header': ResponseContainsHeader,
|
|
108
|
+
'response-contains-property': ResponseContainsProperty,
|
|
109
|
+
'scalar-property-missing-example': ScalarPropertyMissingExample,
|
|
110
|
+
'spec-components-invalid-map-name': SpecComponentsInvalidMapName,
|
|
111
|
+
'required-string-property-missing-min-length': RequiredStringPropertyMissingMinLength,
|
|
112
|
+
'spec-strict-refs': SpecStrictRefs,
|
|
113
|
+
'component-name-unique': ComponentNameUnique,
|
|
114
|
+
'array-parameter-serialization': ArrayParameterSerialization,
|
|
115
|
+
'no-required-schema-properties-undefined': NoRequiredSchemaPropertiesUndefined,
|
|
116
|
+
'no-schema-type-mismatch': NoSchemaTypeMismatch,
|
|
123
117
|
};
|
|
124
|
-
|
|
118
|
+
export const preprocessors = {};
|
|
119
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/oas3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,MA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D,4BAA4B,EAAE,wBAAwB;IACtD,iCAAiC,EAAE,4BAAwC;IAC3E,kCAAkC,EAAE,4BAA4B;IAChE,6CAA6C,EAAE,sCAAsC;IACrF,kBAAkB,EAAE,cAA0B;IAC9C,uBAAuB,EAAE,mBAA+B;IACxD,+BAA+B,EAAE,2BAA2B;IAC5D,yCAAyC,EAAE,mCAA+C;IAC1F,yBAAyB,EAAE,oBAAgC;CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-empty-servers.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-empty-servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,cAAc,EAAE,QAmB5B,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoEmptyServers = void 0;
|
|
4
|
-
const NoEmptyServers = () => {
|
|
1
|
+
export const NoEmptyServers = () => {
|
|
5
2
|
return {
|
|
6
3
|
Root(root, { report, location }) {
|
|
7
4
|
if (!root.hasOwnProperty('servers')) {
|
|
@@ -20,4 +17,4 @@ const NoEmptyServers = () => {
|
|
|
20
17
|
},
|
|
21
18
|
};
|
|
22
19
|
};
|
|
23
|
-
|
|
20
|
+
//# sourceMappingURL=no-empty-servers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-empty-servers.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-empty-servers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAa,GAAG,EAAE;IAC3C,OAAO;QACL,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC7B,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC;gBACpC,MAAM,CAAC;oBACL,OAAO,EAAE,0BAA0B;oBACnC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC5C,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9D,MAAM,CAAC;oBACL,OAAO,EAAE,oCAAoC;oBAC7C,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC5C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-example-value-and-externalValue.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-example-value-and-externalValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,8BAA8B,EAAE,QAW5C,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoExampleValueAndExternalValue = void 0;
|
|
4
|
-
const NoExampleValueAndExternalValue = () => {
|
|
1
|
+
export const NoExampleValueAndExternalValue = () => {
|
|
5
2
|
return {
|
|
6
3
|
Example(example, { report, location }) {
|
|
7
4
|
if (example.value && example.externalValue) {
|
|
@@ -13,4 +10,4 @@ const NoExampleValueAndExternalValue = () => {
|
|
|
13
10
|
},
|
|
14
11
|
};
|
|
15
12
|
};
|
|
16
|
-
|
|
13
|
+
//# sourceMappingURL=no-example-value-and-externalValue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-example-value-and-externalValue.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-example-value-and-externalValue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAa,GAAG,EAAE;IAC3D,OAAO;QACL,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACnC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC3C,MAAM,CAAC;oBACL,OAAO,EAAE,mEAAmE;oBAC5E,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC1C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-invalid-media-type-examples.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-invalid-media-type-examples.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAKlD,eAAO,MAAM,oBAAoB,EAAE,QA6ClC,CAAC"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
const utils_1 = require("../utils");
|
|
6
|
-
const ValidContentExamples = (opts) => {
|
|
7
|
-
const allowAdditionalProperties = (0, utils_1.getAdditionalPropertiesOption)(opts) ?? false;
|
|
1
|
+
import { isRef } from '../../ref-utils.js';
|
|
2
|
+
import { getAdditionalPropertiesOption, validateExample } from '../utils.js';
|
|
3
|
+
export const ValidContentExamples = (opts) => {
|
|
4
|
+
const allowAdditionalProperties = getAdditionalPropertiesOption(opts) ?? false;
|
|
8
5
|
return {
|
|
9
6
|
MediaType: {
|
|
10
7
|
leave(mediaType, ctx) {
|
|
@@ -20,7 +17,7 @@ const ValidContentExamples = (opts) => {
|
|
|
20
17
|
}
|
|
21
18
|
}
|
|
22
19
|
function resolveAndValidateExample(example, location, isMultiple) {
|
|
23
|
-
if (
|
|
20
|
+
if (isRef(example)) {
|
|
24
21
|
const resolved = resolve(example);
|
|
25
22
|
if (!resolved.location)
|
|
26
23
|
return;
|
|
@@ -30,10 +27,10 @@ const ValidContentExamples = (opts) => {
|
|
|
30
27
|
if (isMultiple && typeof example?.value === 'undefined') {
|
|
31
28
|
return;
|
|
32
29
|
}
|
|
33
|
-
|
|
30
|
+
validateExample(isMultiple ? example.value : example, mediaType.schema, location, ctx, allowAdditionalProperties);
|
|
34
31
|
}
|
|
35
32
|
},
|
|
36
33
|
},
|
|
37
34
|
};
|
|
38
35
|
};
|
|
39
|
-
|
|
36
|
+
//# sourceMappingURL=no-invalid-media-type-examples.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-invalid-media-type-examples.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-invalid-media-type-examples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAO7E,MAAM,CAAC,MAAM,oBAAoB,GAAa,CAAC,IAAI,EAAE,EAAE;IACrD,MAAM,yBAAyB,GAAG,6BAA6B,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC;IAE/E,OAAO;QACL,SAAS,EAAE;YACT,KAAK,CAAC,SAAS,EAAE,GAAgB;gBAC/B,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC;gBAClC,IAAI,CAAC,SAAS,CAAC,MAAM;oBAAE,OAAO;gBAC9B,IAAI,SAAS,CAAC,OAAO,KAAK,SAAS,EAAE,CAAC;oBACpC,yBAAyB,CAAC,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC1E,CAAC;qBAAM,IAAI,SAAS,CAAC,QAAQ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,eAAe,EAAE,QAa7B,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoServerExample = void 0;
|
|
4
|
-
const NoServerExample = () => {
|
|
1
|
+
export const NoServerExample = () => {
|
|
5
2
|
return {
|
|
6
3
|
Server(server, { report, location }) {
|
|
7
4
|
// eslint-disable-next-line no-useless-escape
|
|
@@ -15,4 +12,4 @@ const NoServerExample = () => {
|
|
|
15
12
|
},
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
|
-
|
|
15
|
+
//# sourceMappingURL=no-server-example.com.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-server-example.com.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-example.com.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAa,GAAG,EAAE;IAC5C,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,6CAA6C;YAC7C,MAAM,OAAO,GAAG,iDAAiD,CAAC;YAClE,IAAI,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC3C,MAAM,CAAC;oBACL,OAAO,EAAE,4DAA4D;oBACrE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;iBAClC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-server-trailing-slash.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-trailing-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,QAYnC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoServerTrailingSlash = void 0;
|
|
4
|
-
const NoServerTrailingSlash = () => {
|
|
1
|
+
export const NoServerTrailingSlash = () => {
|
|
5
2
|
return {
|
|
6
3
|
Server(server, { report, location }) {
|
|
7
4
|
if (!server.url)
|
|
@@ -15,4 +12,4 @@ const NoServerTrailingSlash = () => {
|
|
|
15
12
|
},
|
|
16
13
|
};
|
|
17
14
|
};
|
|
18
|
-
|
|
15
|
+
//# sourceMappingURL=no-server-trailing-slash.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-server-trailing-slash.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-trailing-slash.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAa,GAAG,EAAE;IAClD,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG;gBAAE,OAAO;YACxB,IAAI,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACnD,MAAM,CAAC;oBACL,OAAO,EAAE,gDAAgD;oBACzD,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;iBAClC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-server-variables-empty-enum.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-variables-empty-enum.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAOlD,eAAO,MAAM,0BAA0B,EAAE,QAoCxC,CAAC"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoServerVariablesEmptyEnum = void 0;
|
|
4
1
|
var enumError;
|
|
5
2
|
(function (enumError) {
|
|
6
3
|
enumError["empty"] = "empty";
|
|
7
4
|
enumError["invalidDefaultValue"] = "invalidDefaultValue";
|
|
8
5
|
})(enumError || (enumError = {}));
|
|
9
|
-
const NoServerVariablesEmptyEnum = () => {
|
|
6
|
+
export const NoServerVariablesEmptyEnum = () => {
|
|
10
7
|
return {
|
|
11
8
|
Root(root, { report, location }) {
|
|
12
9
|
if (!root.servers || root.servers.length === 0)
|
|
@@ -43,7 +40,6 @@ const NoServerVariablesEmptyEnum = () => {
|
|
|
43
40
|
},
|
|
44
41
|
};
|
|
45
42
|
};
|
|
46
|
-
exports.NoServerVariablesEmptyEnum = NoServerVariablesEmptyEnum;
|
|
47
43
|
function checkEnumVariables(server) {
|
|
48
44
|
if (server.variables && Object.keys(server.variables).length === 0)
|
|
49
45
|
return;
|
|
@@ -64,3 +60,4 @@ function checkEnumVariables(server) {
|
|
|
64
60
|
return errors;
|
|
65
61
|
return;
|
|
66
62
|
}
|
|
63
|
+
//# sourceMappingURL=no-server-variables-empty-enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-server-variables-empty-enum.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-variables-empty-enum.ts"],"names":[],"mappings":"AAGA,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,4BAAe,CAAA;IACf,wDAA2C,CAAA;AAC7C,CAAC,EAHI,SAAS,KAAT,SAAS,QAGb;AAED,MAAM,CAAC,MAAM,0BAA0B,GAAa,GAAG,EAAE;IACvD,OAAO;QACL,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC7B,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAA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AAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE3E,MAAM,MAAM,GAAgB,EAAE,CAAC;IAC/B,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,cAAc,CAAC,IAAI;YAAE,SAAS;QAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC;YACzE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAE/B,IAAI,CAAC,cAAc,CAAC,OAAO;YAAE,SAAS;QAEtC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;QACxD,IAAI,cAAc,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;YACpE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,MAAM,CAAC,MAAM;QAAE,OAAO,MAAM,CAAC;IACjC,OAAO;AACT,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-undefined-server-variable.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-undefined-server-variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,yBAAyB,EAAE,QA2BvC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoUndefinedServerVariable = void 0;
|
|
4
|
-
const NoUndefinedServerVariable = () => {
|
|
1
|
+
export const NoUndefinedServerVariable = () => {
|
|
5
2
|
return {
|
|
6
3
|
Server(server, { report, location }) {
|
|
7
4
|
if (!server.url)
|
|
@@ -28,4 +25,4 @@ const NoUndefinedServerVariable = () => {
|
|
|
28
25
|
},
|
|
29
26
|
};
|
|
30
27
|
};
|
|
31
|
-
|
|
28
|
+
//# sourceMappingURL=no-undefined-server-variable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-undefined-server-variable.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-undefined-server-variable.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAa,GAAG,EAAE;IACtD,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG;gBAAE,OAAO;YACxB,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC9F,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC;YAEpF,KAAK,MAAM,SAAS,IAAI,YAAY,EAAE,CAAC;gBACrC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC1C,MAAM,CAAC;wBACL,OAAO,EAAE,SAAS,SAAS,0DAA0D;wBACrF,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;qBAClC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,KAAK,MAAM,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;gBAChD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;oBAC7C,MAAM,CAAC;wBACL,OAAO,EAAE,SAAS,gBAAgB,wDAAwD;wBAC1F,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE;wBAC/D,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-components.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-unused-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,kBAAkB,EAAE,QAuEhC,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoUnusedComponents = void 0;
|
|
4
|
-
const NoUnusedComponents = () => {
|
|
1
|
+
export const NoUnusedComponents = () => {
|
|
5
2
|
const components = new Map();
|
|
6
3
|
function registerComponent(location, name) {
|
|
7
4
|
components.set(location.absolutePointer, {
|
|
@@ -70,4 +67,4 @@ const NoUnusedComponents = () => {
|
|
|
70
67
|
},
|
|
71
68
|
};
|
|
72
69
|
};
|
|
73
|
-
|
|
70
|
+
//# sourceMappingURL=no-unused-components.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-components.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-unused-components.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAa,GAAG,EAAE;IAC/C,MAAM,UAAU,GAAG,IAAI,GAAG,EAA+D,CAAC;IAE1F,SAAS,iBAAiB,CAAC,QAAkB,EAAE,IAAY;QACzD,UAAU,CAAC,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4D;oBAC5D,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;gBAC9C,CAAC;YACH,CAAC;SACF;QACD,eAAe,EAAE;YACf,SAAS,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;gBACrC,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;QACD,cAAc,EAAE;YACd,QAAQ,CAAC,SAAS,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;gBACnC,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;QACD,aAAa,EAAE;YACb,OAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;gBACjC,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;QACD,kBAAkB,EAAE;YAClB,WAAW,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;gBACzC,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;QACD,YAAY,EAAE;YACZ,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAE;gBAC/B,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import type { Oas3Rule } from '../../visitors';
|
|
1
|
+
import type { Oas3Rule } from '../../visitors.js';
|
|
2
2
|
/**
|
|
3
3
|
* Validation according to rfc7807 - https://datatracker.ietf.org/doc/html/rfc7807
|
|
4
4
|
*/
|
|
5
5
|
export declare const Operation4xxProblemDetailsRfc7807: Oas3Rule;
|
|
6
|
+
//# sourceMappingURL=operation-4xx-problem-details-rfc7807.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operation-4xx-problem-details-rfc7807.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/operation-4xx-problem-details-rfc7807.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QA2B/C,CAAC"}
|