@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/config/config.js
CHANGED
|
@@ -1,28 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const utils_2 = require("./utils");
|
|
11
|
-
const ref_utils_1 = require("../ref-utils");
|
|
12
|
-
exports.IGNORE_FILE = '.redocly.lint-ignore.yaml';
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { parseYaml, stringifyYaml } from '../js-yaml/index.js';
|
|
4
|
+
import { slash, doesYamlFileExist } from '../utils.js';
|
|
5
|
+
import { SpecVersion, SpecMajorVersion } from '../oas-types.js';
|
|
6
|
+
import { isBrowser } from '../env.js';
|
|
7
|
+
import { getResolveConfig } from './utils.js';
|
|
8
|
+
import { isAbsoluteUrl } from '../ref-utils.js';
|
|
9
|
+
export const IGNORE_FILE = '.redocly.lint-ignore.yaml';
|
|
13
10
|
const IGNORE_BANNER = `# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.\n` +
|
|
14
11
|
`# See https://redocly.com/docs/cli/ for more information.\n`;
|
|
15
12
|
function getIgnoreFilePath(configFile) {
|
|
16
13
|
if (configFile) {
|
|
17
|
-
return
|
|
18
|
-
? path.join(path.dirname(configFile),
|
|
19
|
-
: path.join(configFile,
|
|
14
|
+
return doesYamlFileExist(configFile)
|
|
15
|
+
? path.join(path.dirname(configFile), IGNORE_FILE)
|
|
16
|
+
: path.join(configFile, IGNORE_FILE);
|
|
20
17
|
}
|
|
21
18
|
else {
|
|
22
|
-
return
|
|
19
|
+
return isBrowser ? undefined : path.join(process.cwd(), IGNORE_FILE);
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
|
-
class StyleguideConfig {
|
|
22
|
+
export class StyleguideConfig {
|
|
26
23
|
constructor(rawConfig, configFile) {
|
|
27
24
|
this.rawConfig = rawConfig;
|
|
28
25
|
this.configFile = configFile;
|
|
@@ -32,79 +29,67 @@ class StyleguideConfig {
|
|
|
32
29
|
this.plugins = rawConfig.plugins || [];
|
|
33
30
|
this.doNotResolveExamples = !!rawConfig.doNotResolveExamples;
|
|
34
31
|
this.recommendedFallback = rawConfig.recommendedFallback || false;
|
|
35
|
-
const ruleGroups = [
|
|
36
|
-
'rules',
|
|
37
|
-
'oas2Rules',
|
|
38
|
-
'oas3_0Rules',
|
|
39
|
-
'oas3_1Rules',
|
|
40
|
-
'async2Rules',
|
|
41
|
-
'async3Rules',
|
|
42
|
-
'arazzo1Rules',
|
|
43
|
-
'overlay1Rules',
|
|
44
|
-
];
|
|
45
|
-
replaceSpecWithStruct(ruleGroups, rawConfig);
|
|
46
32
|
this.rules = {
|
|
47
|
-
[
|
|
48
|
-
[
|
|
49
|
-
[
|
|
50
|
-
[
|
|
51
|
-
[
|
|
52
|
-
[
|
|
53
|
-
[
|
|
33
|
+
[SpecVersion.OAS2]: { ...rawConfig.rules, ...rawConfig.oas2Rules },
|
|
34
|
+
[SpecVersion.OAS3_0]: { ...rawConfig.rules, ...rawConfig.oas3_0Rules },
|
|
35
|
+
[SpecVersion.OAS3_1]: { ...rawConfig.rules, ...rawConfig.oas3_1Rules },
|
|
36
|
+
[SpecVersion.Async2]: { ...rawConfig.rules, ...rawConfig.async2Rules },
|
|
37
|
+
[SpecVersion.Async3]: { ...rawConfig.rules, ...rawConfig.async3Rules },
|
|
38
|
+
[SpecVersion.Arazzo1]: { ...rawConfig.rules, ...rawConfig.arazzo1Rules },
|
|
39
|
+
[SpecVersion.Overlay1]: { ...rawConfig.rules, ...rawConfig.overlay1Rules },
|
|
54
40
|
};
|
|
55
41
|
this.preprocessors = {
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
[
|
|
42
|
+
[SpecVersion.OAS2]: { ...rawConfig.preprocessors, ...rawConfig.oas2Preprocessors },
|
|
43
|
+
[SpecVersion.OAS3_0]: { ...rawConfig.preprocessors, ...rawConfig.oas3_0Preprocessors },
|
|
44
|
+
[SpecVersion.OAS3_1]: { ...rawConfig.preprocessors, ...rawConfig.oas3_1Preprocessors },
|
|
45
|
+
[SpecVersion.Async2]: { ...rawConfig.preprocessors, ...rawConfig.async2Preprocessors },
|
|
46
|
+
[SpecVersion.Async3]: { ...rawConfig.preprocessors, ...rawConfig.async3Preprocessors },
|
|
47
|
+
[SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Preprocessors },
|
|
48
|
+
[SpecVersion.Overlay1]: { ...rawConfig.preprocessors, ...rawConfig.overlay1Preprocessors },
|
|
63
49
|
};
|
|
64
50
|
this.decorators = {
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
[
|
|
71
|
-
[
|
|
51
|
+
[SpecVersion.OAS2]: { ...rawConfig.decorators, ...rawConfig.oas2Decorators },
|
|
52
|
+
[SpecVersion.OAS3_0]: { ...rawConfig.decorators, ...rawConfig.oas3_0Decorators },
|
|
53
|
+
[SpecVersion.OAS3_1]: { ...rawConfig.decorators, ...rawConfig.oas3_1Decorators },
|
|
54
|
+
[SpecVersion.Async2]: { ...rawConfig.decorators, ...rawConfig.async2Decorators },
|
|
55
|
+
[SpecVersion.Async3]: { ...rawConfig.decorators, ...rawConfig.async3Decorators },
|
|
56
|
+
[SpecVersion.Arazzo1]: { ...rawConfig.arazzo1Decorators },
|
|
57
|
+
[SpecVersion.Overlay1]: { ...rawConfig.decorators, ...rawConfig.overlay1Decorators },
|
|
72
58
|
};
|
|
73
59
|
this.extendPaths = rawConfig.extendPaths || [];
|
|
74
60
|
this.pluginPaths = rawConfig.pluginPaths || [];
|
|
75
61
|
this.resolveIgnore(getIgnoreFilePath(configFile));
|
|
76
62
|
}
|
|
77
63
|
resolveIgnore(ignoreFile) {
|
|
78
|
-
if (!ignoreFile || !
|
|
64
|
+
if (!ignoreFile || !doesYamlFileExist(ignoreFile))
|
|
79
65
|
return;
|
|
80
66
|
this.ignore =
|
|
81
|
-
|
|
82
|
-
replaceSpecWithStruct(Object.keys(this.ignore), this.ignore);
|
|
67
|
+
parseYaml(fs.readFileSync(ignoreFile, 'utf-8')) || {};
|
|
83
68
|
// resolve ignore paths
|
|
84
69
|
for (const fileName of Object.keys(this.ignore)) {
|
|
85
|
-
this.ignore[
|
|
70
|
+
this.ignore[isAbsoluteUrl(fileName) ? fileName : path.resolve(path.dirname(ignoreFile), fileName)] = this.ignore[fileName];
|
|
86
71
|
for (const ruleId of Object.keys(this.ignore[fileName])) {
|
|
87
72
|
this.ignore[fileName][ruleId] = new Set(this.ignore[fileName][ruleId]);
|
|
88
73
|
}
|
|
89
|
-
if (!
|
|
74
|
+
if (!isAbsoluteUrl(fileName)) {
|
|
90
75
|
delete this.ignore[fileName];
|
|
91
76
|
}
|
|
92
77
|
}
|
|
93
78
|
}
|
|
94
79
|
saveIgnore() {
|
|
95
80
|
const dir = this.configFile ? path.dirname(this.configFile) : process.cwd();
|
|
96
|
-
const ignoreFile = path.join(dir,
|
|
81
|
+
const ignoreFile = path.join(dir, IGNORE_FILE);
|
|
97
82
|
const mapped = {};
|
|
98
83
|
for (const absFileName of Object.keys(this.ignore)) {
|
|
99
|
-
const mappedDefinitionName =
|
|
84
|
+
const mappedDefinitionName = isAbsoluteUrl(absFileName)
|
|
100
85
|
? absFileName
|
|
101
|
-
:
|
|
86
|
+
: slash(path.relative(dir, absFileName));
|
|
102
87
|
const ignoredRules = (mapped[mappedDefinitionName] = this.ignore[absFileName]);
|
|
103
88
|
for (const ruleId of Object.keys(ignoredRules)) {
|
|
104
89
|
ignoredRules[ruleId] = Array.from(ignoredRules[ruleId]);
|
|
105
90
|
}
|
|
106
91
|
}
|
|
107
|
-
fs.writeFileSync(ignoreFile, IGNORE_BANNER +
|
|
92
|
+
fs.writeFileSync(ignoreFile, IGNORE_BANNER + stringifyYaml(mapped));
|
|
108
93
|
}
|
|
109
94
|
addIgnore(problem) {
|
|
110
95
|
const ignore = this.ignore;
|
|
@@ -134,33 +119,33 @@ class StyleguideConfig {
|
|
|
134
119
|
for (const plugin of this.plugins) {
|
|
135
120
|
if (plugin.typeExtension !== undefined) {
|
|
136
121
|
switch (version) {
|
|
137
|
-
case
|
|
138
|
-
case
|
|
122
|
+
case SpecVersion.OAS3_0:
|
|
123
|
+
case SpecVersion.OAS3_1:
|
|
139
124
|
if (!plugin.typeExtension.oas3)
|
|
140
125
|
continue;
|
|
141
126
|
extendedTypes = plugin.typeExtension.oas3(extendedTypes, version);
|
|
142
127
|
break;
|
|
143
|
-
case
|
|
128
|
+
case SpecVersion.OAS2:
|
|
144
129
|
if (!plugin.typeExtension.oas2)
|
|
145
130
|
continue;
|
|
146
131
|
extendedTypes = plugin.typeExtension.oas2(extendedTypes, version);
|
|
147
132
|
break;
|
|
148
|
-
case
|
|
133
|
+
case SpecVersion.Async2:
|
|
149
134
|
if (!plugin.typeExtension.async2)
|
|
150
135
|
continue;
|
|
151
136
|
extendedTypes = plugin.typeExtension.async2(extendedTypes, version);
|
|
152
137
|
break;
|
|
153
|
-
case
|
|
138
|
+
case SpecVersion.Async3:
|
|
154
139
|
if (!plugin.typeExtension.async3)
|
|
155
140
|
continue;
|
|
156
141
|
extendedTypes = plugin.typeExtension.async3(extendedTypes, version);
|
|
157
142
|
break;
|
|
158
|
-
case
|
|
143
|
+
case SpecVersion.Arazzo1:
|
|
159
144
|
if (!plugin.typeExtension.arazzo1)
|
|
160
145
|
continue;
|
|
161
146
|
extendedTypes = plugin.typeExtension.arazzo1(extendedTypes, version);
|
|
162
147
|
break;
|
|
163
|
-
case
|
|
148
|
+
case SpecVersion.Overlay1:
|
|
164
149
|
if (!plugin.typeExtension.overlay1)
|
|
165
150
|
continue;
|
|
166
151
|
extendedTypes = plugin.typeExtension.overlay1(extendedTypes, version);
|
|
@@ -228,42 +213,42 @@ class StyleguideConfig {
|
|
|
228
213
|
}
|
|
229
214
|
getRulesForSpecVersion(version) {
|
|
230
215
|
switch (version) {
|
|
231
|
-
case
|
|
216
|
+
case SpecMajorVersion.OAS3:
|
|
232
217
|
// eslint-disable-next-line no-case-declarations
|
|
233
218
|
const oas3Rules = [];
|
|
234
219
|
this.plugins.forEach((p) => p.preprocessors?.oas3 && oas3Rules.push(p.preprocessors.oas3));
|
|
235
220
|
this.plugins.forEach((p) => p.rules?.oas3 && oas3Rules.push(p.rules.oas3));
|
|
236
221
|
this.plugins.forEach((p) => p.decorators?.oas3 && oas3Rules.push(p.decorators.oas3));
|
|
237
222
|
return oas3Rules;
|
|
238
|
-
case
|
|
223
|
+
case SpecMajorVersion.OAS2:
|
|
239
224
|
// eslint-disable-next-line no-case-declarations
|
|
240
225
|
const oas2Rules = [];
|
|
241
226
|
this.plugins.forEach((p) => p.preprocessors?.oas2 && oas2Rules.push(p.preprocessors.oas2));
|
|
242
227
|
this.plugins.forEach((p) => p.rules?.oas2 && oas2Rules.push(p.rules.oas2));
|
|
243
228
|
this.plugins.forEach((p) => p.decorators?.oas2 && oas2Rules.push(p.decorators.oas2));
|
|
244
229
|
return oas2Rules;
|
|
245
|
-
case
|
|
230
|
+
case SpecMajorVersion.Async2:
|
|
246
231
|
// eslint-disable-next-line no-case-declarations
|
|
247
232
|
const asyncApi2Rules = [];
|
|
248
233
|
this.plugins.forEach((p) => p.preprocessors?.async2 && asyncApi2Rules.push(p.preprocessors.async2));
|
|
249
234
|
this.plugins.forEach((p) => p.rules?.async2 && asyncApi2Rules.push(p.rules.async2));
|
|
250
235
|
this.plugins.forEach((p) => p.decorators?.async2 && asyncApi2Rules.push(p.decorators.async2));
|
|
251
236
|
return asyncApi2Rules;
|
|
252
|
-
case
|
|
237
|
+
case SpecMajorVersion.Async3:
|
|
253
238
|
// eslint-disable-next-line no-case-declarations
|
|
254
239
|
const asyncApi3Rules = [];
|
|
255
240
|
this.plugins.forEach((p) => p.preprocessors?.async3 && asyncApi3Rules.push(p.preprocessors.async3));
|
|
256
241
|
this.plugins.forEach((p) => p.rules?.async3 && asyncApi3Rules.push(p.rules.async3));
|
|
257
242
|
this.plugins.forEach((p) => p.decorators?.async3 && asyncApi3Rules.push(p.decorators.async3));
|
|
258
243
|
return asyncApi3Rules;
|
|
259
|
-
case
|
|
244
|
+
case SpecMajorVersion.Arazzo1:
|
|
260
245
|
// eslint-disable-next-line no-case-declarations
|
|
261
246
|
const arazzo1Rules = [];
|
|
262
247
|
this.plugins.forEach((p) => p.preprocessors?.arazzo1 && arazzo1Rules.push(p.preprocessors.arazzo1));
|
|
263
248
|
this.plugins.forEach((p) => p.rules?.arazzo1 && arazzo1Rules.push(p.rules.arazzo1));
|
|
264
249
|
this.plugins.forEach((p) => p.decorators?.arazzo1 && arazzo1Rules.push(p.decorators.arazzo1));
|
|
265
250
|
return arazzo1Rules;
|
|
266
|
-
case
|
|
251
|
+
case SpecMajorVersion.Overlay1:
|
|
267
252
|
// eslint-disable-next-line no-case-declarations
|
|
268
253
|
const overlay1Rules = [];
|
|
269
254
|
this.plugins.forEach((p) => p.preprocessors?.overlay1 && overlay1Rules.push(p.preprocessors.overlay1));
|
|
@@ -274,7 +259,7 @@ class StyleguideConfig {
|
|
|
274
259
|
}
|
|
275
260
|
skipRules(rules) {
|
|
276
261
|
for (const ruleId of rules || []) {
|
|
277
|
-
for (const version of Object.values(
|
|
262
|
+
for (const version of Object.values(SpecVersion)) {
|
|
278
263
|
if (this.rules[version][ruleId]) {
|
|
279
264
|
this.rules[version][ruleId] = 'off';
|
|
280
265
|
}
|
|
@@ -291,7 +276,7 @@ class StyleguideConfig {
|
|
|
291
276
|
}
|
|
292
277
|
skipPreprocessors(preprocessors) {
|
|
293
278
|
for (const preprocessorId of preprocessors || []) {
|
|
294
|
-
for (const version of Object.values(
|
|
279
|
+
for (const version of Object.values(SpecVersion)) {
|
|
295
280
|
if (this.preprocessors[version][preprocessorId]) {
|
|
296
281
|
this.preprocessors[version][preprocessorId] = 'off';
|
|
297
282
|
}
|
|
@@ -300,7 +285,7 @@ class StyleguideConfig {
|
|
|
300
285
|
}
|
|
301
286
|
skipDecorators(decorators) {
|
|
302
287
|
for (const decoratorId of decorators || []) {
|
|
303
|
-
for (const version of Object.values(
|
|
288
|
+
for (const version of Object.values(SpecVersion)) {
|
|
304
289
|
if (this.decorators[version][decoratorId]) {
|
|
305
290
|
this.decorators[version][decoratorId] = 'off';
|
|
306
291
|
}
|
|
@@ -308,29 +293,15 @@ class StyleguideConfig {
|
|
|
308
293
|
}
|
|
309
294
|
}
|
|
310
295
|
}
|
|
311
|
-
|
|
312
|
-
// To support backwards compatibility with the old `spec` key we rename it to `struct`.
|
|
313
|
-
function replaceSpecWithStruct(ruleGroups, config) {
|
|
314
|
-
for (const ruleGroup of ruleGroups) {
|
|
315
|
-
if (config[ruleGroup] && (0, utils_1.isPlainObject)(config[ruleGroup]) && 'spec' in config[ruleGroup]) {
|
|
316
|
-
(0, utils_1.showWarningForDeprecatedField)('spec', 'struct');
|
|
317
|
-
config[ruleGroup].struct = config[ruleGroup].spec;
|
|
318
|
-
delete config[ruleGroup].spec;
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
class Config {
|
|
296
|
+
export class Config {
|
|
323
297
|
constructor(rawConfig, configFile) {
|
|
324
298
|
this.rawConfig = rawConfig;
|
|
325
299
|
this.configFile = configFile;
|
|
326
300
|
this.apis = rawConfig.apis || {};
|
|
327
301
|
this.styleguide = new StyleguideConfig(rawConfig.styleguide || {}, configFile);
|
|
328
|
-
this.theme = rawConfig.theme || {};
|
|
329
|
-
this.resolve =
|
|
330
|
-
this.region = rawConfig.region;
|
|
331
|
-
this.organization = rawConfig.organization;
|
|
332
|
-
this.files = rawConfig.files || [];
|
|
302
|
+
this.theme = rawConfig.theme || {}; // FIXME: theme is deprecated (2.0)
|
|
303
|
+
this.resolve = getResolveConfig(rawConfig?.resolve);
|
|
333
304
|
this.telemetry = rawConfig.telemetry;
|
|
334
305
|
}
|
|
335
306
|
}
|
|
336
|
-
|
|
307
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO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MAAM,OAAO,IAAI,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;gBACjD,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC;oBAC1C,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;gBAChD,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAED,MAAM,OAAO,MAAM;IAOjB,YAAmB,SAAyB,EAAS,UAAmB;QAArD,cAAS,GAAT,SAAS,CAAgB;QAAS,eAAU,GAAV,UAAU,CAAS;QACtE,IAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,IAAI,gBAAgB,CAAC,SAAS,CAAC,UAAU,IAAI,EAAE,EAAE,UAAU,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,mCAAmC;QACvE,IAAI,CAAC,OAAO,GAAG,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACpD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC;IACvC,CAAC;CACF"}
|
package/lib/config/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from './config';
|
|
2
|
-
export * from './types';
|
|
3
|
-
export * from './rules';
|
|
4
|
-
export * from './builtIn';
|
|
5
|
-
export * from './load';
|
|
6
|
-
export * from './utils';
|
|
7
|
-
export * from './config-resolvers';
|
|
1
|
+
export * from './config.js';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './rules.js';
|
|
4
|
+
export * from './builtIn.js';
|
|
5
|
+
export * from './load.js';
|
|
6
|
+
export * from './utils.js';
|
|
7
|
+
export * from './config-resolvers.js';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
|
package/lib/config/index.js
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./config"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
19
|
-
__exportStar(require("./rules"), exports);
|
|
20
|
-
__exportStar(require("./builtIn"), exports);
|
|
21
|
-
__exportStar(require("./load"), exports);
|
|
22
|
-
__exportStar(require("./utils"), exports);
|
|
23
|
-
__exportStar(require("./config-resolvers"), exports);
|
|
1
|
+
export * from './config.js';
|
|
2
|
+
export * from './types.js';
|
|
3
|
+
export * from './rules.js';
|
|
4
|
+
export * from './builtIn.js';
|
|
5
|
+
export * from './load.js';
|
|
6
|
+
export * from './utils.js';
|
|
7
|
+
export * from './config-resolvers.js';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,uBAAuB,CAAC"}
|
package/lib/config/load.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { BaseResolver } from '../resolve';
|
|
2
|
-
import type { Config } from './config';
|
|
3
|
-
import type { Document, ResolvedRefMap } from '../resolve';
|
|
4
|
-
import type {
|
|
5
|
-
import type { RawConfig, RawUniversalConfig, Region } from './types';
|
|
1
|
+
import { BaseResolver } from '../resolve.js';
|
|
2
|
+
import type { Config } from './config.js';
|
|
3
|
+
import type { Document, ResolvedRefMap } from '../resolve.js';
|
|
4
|
+
import type { RawConfig, RawUniversalConfig } from './types.js';
|
|
6
5
|
export type RawConfigProcessor = (params: {
|
|
7
6
|
document: Document;
|
|
8
7
|
resolvedRefMap: ResolvedRefMap;
|
|
@@ -14,8 +13,6 @@ export declare function loadConfig(options?: {
|
|
|
14
13
|
customExtends?: string[];
|
|
15
14
|
processRawConfig?: RawConfigProcessor;
|
|
16
15
|
externalRefResolver?: BaseResolver;
|
|
17
|
-
files?: string[];
|
|
18
|
-
region?: Region;
|
|
19
16
|
}): Promise<Config>;
|
|
20
17
|
export declare const CONFIG_FILE_NAMES: string[];
|
|
21
18
|
export declare function findConfig(dir?: string): string | undefined;
|
|
@@ -30,9 +27,9 @@ export declare function getConfig(options?: {
|
|
|
30
27
|
}>;
|
|
31
28
|
type CreateConfigOptions = {
|
|
32
29
|
extends?: string[];
|
|
33
|
-
tokens?: RegionalTokenWithValidity[];
|
|
34
30
|
configPath?: string;
|
|
35
31
|
externalRefResolver?: BaseResolver;
|
|
36
32
|
};
|
|
37
33
|
export declare function createConfig(config: string | RawUniversalConfig, options?: CreateConfigOptions): Promise<Config>;
|
|
38
34
|
export {};
|
|
35
|
+
//# sourceMappingURL=load.d.ts.map
|
|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AAE,cAAc,CAAC;CACjC,CAAC,CAsBD;AAED,KAAK,mBAAmB,GAAG;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,YAAY,CAAC;CACpC,CAAC;AAEF,wBAAsB,YAAY,CAChC,MAAM,EAAE,MAAM,GAAG,kBAAkB,EACnC,OAAO,CAAC,EAAE,mBAAmB,GAC5B,OAAO,CAAC,MAAM,CAAC,CAOjB"}
|
package/lib/config/load.js
CHANGED
|
@@ -1,81 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const redocly_1 = require("../redocly");
|
|
11
|
-
const utils_1 = require("../utils");
|
|
12
|
-
const js_yaml_1 = require("../js-yaml");
|
|
13
|
-
const utils_2 = require("./utils");
|
|
14
|
-
const config_resolvers_1 = require("./config-resolvers");
|
|
15
|
-
const bundle_1 = require("../bundle");
|
|
16
|
-
const resolve_1 = require("../resolve");
|
|
17
|
-
const env_1 = require("../env");
|
|
18
|
-
const domains_1 = require("../redocly/domains");
|
|
19
|
-
async function addConfigMetadata({ rawConfig, customExtends, configPath, tokens, files, region, externalRefResolver, }) {
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { isEmptyObject } from '../utils.js';
|
|
4
|
+
import { parseYaml } from '../js-yaml/index.js';
|
|
5
|
+
import { ConfigValidationError, transformConfig, deepCloneMapWithJSON } from './utils.js';
|
|
6
|
+
import { resolveConfig, resolveConfigFileAndRefs } from './config-resolvers.js';
|
|
7
|
+
import { bundleConfig } from '../bundle.js';
|
|
8
|
+
import { BaseResolver } from '../resolve.js';
|
|
9
|
+
async function addConfigMetadata({ rawConfig, customExtends, configPath, externalRefResolver, }) {
|
|
20
10
|
if (customExtends !== undefined) {
|
|
21
11
|
rawConfig.styleguide = rawConfig.styleguide || {};
|
|
22
12
|
rawConfig.styleguide.extends = customExtends;
|
|
23
13
|
}
|
|
24
|
-
else if (
|
|
14
|
+
else if (isEmptyObject(rawConfig)) {
|
|
25
15
|
rawConfig.styleguide = { extends: ['recommended'], recommendedFallback: true };
|
|
26
16
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
rawConfig.resolve = {};
|
|
30
|
-
if (!rawConfig.resolve.http)
|
|
31
|
-
rawConfig.resolve.http = {};
|
|
32
|
-
rawConfig.resolve.http.headers = [...(rawConfig.resolve.http.headers ?? [])];
|
|
33
|
-
for (const item of tokens) {
|
|
34
|
-
const domain = domains_1.DOMAINS[item.region];
|
|
35
|
-
rawConfig.resolve.http.headers.push({
|
|
36
|
-
matches: `https://api.${domain}/registry/**`,
|
|
37
|
-
name: 'Authorization',
|
|
38
|
-
envVariable: undefined,
|
|
39
|
-
value: item.token,
|
|
40
|
-
},
|
|
41
|
-
//support redocly.com domain for future compatibility
|
|
42
|
-
...(item.region === 'us'
|
|
43
|
-
? [
|
|
44
|
-
{
|
|
45
|
-
matches: `https://api.redoc.ly/registry/**`,
|
|
46
|
-
name: 'Authorization',
|
|
47
|
-
envVariable: undefined,
|
|
48
|
-
value: item.token,
|
|
49
|
-
},
|
|
50
|
-
]
|
|
51
|
-
: []));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return (0, config_resolvers_1.resolveConfig)({
|
|
55
|
-
rawConfig: {
|
|
56
|
-
...rawConfig,
|
|
57
|
-
files: files ?? rawConfig.files,
|
|
58
|
-
region: region ?? rawConfig.region,
|
|
59
|
-
},
|
|
17
|
+
return resolveConfig({
|
|
18
|
+
rawConfig,
|
|
60
19
|
configPath,
|
|
61
20
|
externalRefResolver,
|
|
62
21
|
});
|
|
63
22
|
}
|
|
64
|
-
async function loadConfig(options = {}) {
|
|
65
|
-
const { configPath = findConfig(), customExtends, processRawConfig,
|
|
23
|
+
export async function loadConfig(options = {}) {
|
|
24
|
+
const { configPath = findConfig(), customExtends, processRawConfig, externalRefResolver, } = options;
|
|
66
25
|
const { rawConfig, document, parsed, resolvedRefMap } = await getConfig({
|
|
67
26
|
configPath,
|
|
68
27
|
externalRefResolver,
|
|
69
28
|
});
|
|
70
|
-
const redoclyClient = env_1.isBrowser ? undefined : new redocly_1.RedoclyClient();
|
|
71
|
-
const tokens = redoclyClient && redoclyClient.hasTokens() ? redoclyClient.getAllTokens() : [];
|
|
72
29
|
const config = await addConfigMetadata({
|
|
73
30
|
rawConfig,
|
|
74
31
|
customExtends,
|
|
75
32
|
configPath,
|
|
76
|
-
tokens,
|
|
77
|
-
files,
|
|
78
|
-
region,
|
|
79
33
|
externalRefResolver,
|
|
80
34
|
});
|
|
81
35
|
if (document && parsed && resolvedRefMap && typeof processRawConfig === 'function') {
|
|
@@ -88,7 +42,7 @@ async function loadConfig(options = {}) {
|
|
|
88
42
|
});
|
|
89
43
|
}
|
|
90
44
|
catch (e) {
|
|
91
|
-
if (e instanceof
|
|
45
|
+
if (e instanceof ConfigValidationError) {
|
|
92
46
|
throw e;
|
|
93
47
|
}
|
|
94
48
|
throw new Error(`Error parsing config file at '${configPath}': ${e.message}`);
|
|
@@ -96,11 +50,11 @@ async function loadConfig(options = {}) {
|
|
|
96
50
|
}
|
|
97
51
|
return config;
|
|
98
52
|
}
|
|
99
|
-
|
|
100
|
-
function findConfig(dir) {
|
|
101
|
-
if (!fs?.
|
|
53
|
+
export const CONFIG_FILE_NAMES = ['redocly.yaml', 'redocly.yml', '.redocly.yaml', '.redocly.yml'];
|
|
54
|
+
export function findConfig(dir) {
|
|
55
|
+
if (!fs?.existsSync)
|
|
102
56
|
return;
|
|
103
|
-
const existingConfigFiles =
|
|
57
|
+
const existingConfigFiles = CONFIG_FILE_NAMES.map((name) => dir ? path.resolve(dir, name) : name).filter(fs.existsSync);
|
|
104
58
|
if (existingConfigFiles.length > 1) {
|
|
105
59
|
throw new Error(`
|
|
106
60
|
Multiple configuration files are not allowed.
|
|
@@ -110,19 +64,19 @@ function findConfig(dir) {
|
|
|
110
64
|
}
|
|
111
65
|
return existingConfigFiles[0];
|
|
112
66
|
}
|
|
113
|
-
async function getConfig(options = {}) {
|
|
114
|
-
const { configPath = findConfig(), externalRefResolver = new
|
|
67
|
+
export async function getConfig(options = {}) {
|
|
68
|
+
const { configPath = findConfig(), externalRefResolver = new BaseResolver() } = options;
|
|
115
69
|
if (!configPath)
|
|
116
70
|
return { rawConfig: {} };
|
|
117
71
|
try {
|
|
118
|
-
const { document, resolvedRefMap } = await
|
|
72
|
+
const { document, resolvedRefMap } = await resolveConfigFileAndRefs({
|
|
119
73
|
configPath,
|
|
120
74
|
externalRefResolver,
|
|
121
75
|
});
|
|
122
|
-
const bundledRefMap =
|
|
123
|
-
const parsed = await
|
|
76
|
+
const bundledRefMap = deepCloneMapWithJSON(resolvedRefMap);
|
|
77
|
+
const parsed = await bundleConfig(JSON.parse(JSON.stringify(document)), bundledRefMap);
|
|
124
78
|
return {
|
|
125
|
-
rawConfig:
|
|
79
|
+
rawConfig: transformConfig(parsed),
|
|
126
80
|
document,
|
|
127
81
|
parsed,
|
|
128
82
|
resolvedRefMap,
|
|
@@ -132,9 +86,10 @@ async function getConfig(options = {}) {
|
|
|
132
86
|
throw new Error(`Error parsing config file at '${configPath}': ${e.message}`);
|
|
133
87
|
}
|
|
134
88
|
}
|
|
135
|
-
async function createConfig(config, options) {
|
|
89
|
+
export async function createConfig(config, options) {
|
|
136
90
|
return addConfigMetadata({
|
|
137
|
-
rawConfig:
|
|
91
|
+
rawConfig: transformConfig(typeof config === 'string' ? parseYaml(config) : config),
|
|
138
92
|
...options,
|
|
139
93
|
});
|
|
140
94
|
}
|
|
95
|
+
//# sourceMappingURL=load.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.js","sourceRoot":"","sources":["../../src/config/load.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;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B,CAAC,UAAU,CA6M/C,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
package/lib/config/minimal.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const minimal = {
|
|
4
2
|
rules: {
|
|
5
3
|
struct: 'error',
|
|
@@ -206,4 +204,5 @@ const minimal = {
|
|
|
206
204
|
'info-contact': 'off',
|
|
207
205
|
},
|
|
208
206
|
};
|
|
209
|
-
|
|
207
|
+
export default minimal;
|
|
208
|
+
//# sourceMappingURL=minimal.js.map
|