@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
|
@@ -1,28 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const builtIn_1 = require("./builtIn");
|
|
16
|
-
const utils_2 = require("./utils");
|
|
17
|
-
const env_1 = require("../env");
|
|
18
|
-
const config_1 = require("./config");
|
|
19
|
-
const logger_1 = require("../logger");
|
|
20
|
-
const asserts_1 = require("../rules/common/assertions/asserts");
|
|
21
|
-
const redocly_yaml_1 = require("../types/redocly-yaml");
|
|
1
|
+
import * as path from 'node:path';
|
|
2
|
+
import * as url from 'node:url';
|
|
3
|
+
import * as fs from 'node:fs';
|
|
4
|
+
import module from 'node:module';
|
|
5
|
+
import { isAbsoluteUrl } from '../ref-utils.js';
|
|
6
|
+
import { pickDefined, isNotString, isString, isDefined, keysOf } from '../utils.js';
|
|
7
|
+
import { resolveDocument, BaseResolver } from '../resolve.js';
|
|
8
|
+
import { defaultPlugin } from './builtIn.js';
|
|
9
|
+
import { getResolveConfig, getUniquePlugins, isCommonJsPlugin, isDeprecatedPluginFormat, mergeExtends, parsePresetName, prefixRules, transformConfig, } from './utils.js';
|
|
10
|
+
import { isBrowser } from '../env.js';
|
|
11
|
+
import { Config } from './config.js';
|
|
12
|
+
import { colorize, logger } from '../logger.js';
|
|
13
|
+
import { asserts, buildAssertCustomFunction } from '../rules/common/assertions/asserts.js';
|
|
14
|
+
import { NormalizedConfigTypes } from '../types/redocly-yaml.js';
|
|
22
15
|
const DEFAULT_PROJECT_PLUGIN_PATHS = ['@theme/plugin.js', '@theme/plugin.cjs', '@theme/plugin.mjs'];
|
|
23
16
|
// Cache instantiated plugins during a single execution
|
|
24
17
|
const pluginsCache = new Map();
|
|
25
|
-
async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new
|
|
18
|
+
export async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new BaseResolver(), base = null, }) {
|
|
26
19
|
if (!configPath) {
|
|
27
20
|
throw new Error('Reference to a config is required.\n');
|
|
28
21
|
}
|
|
@@ -30,18 +23,18 @@ async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new
|
|
|
30
23
|
if (document instanceof Error) {
|
|
31
24
|
throw document;
|
|
32
25
|
}
|
|
33
|
-
const resolvedRefMap = await
|
|
26
|
+
const resolvedRefMap = await resolveDocument({
|
|
34
27
|
rootDocument: document,
|
|
35
|
-
rootType:
|
|
28
|
+
rootType: NormalizedConfigTypes.ConfigRoot,
|
|
36
29
|
externalRefResolver,
|
|
37
30
|
});
|
|
38
31
|
return { document, resolvedRefMap };
|
|
39
32
|
}
|
|
40
|
-
async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
|
|
41
|
-
if (rawConfig.styleguide?.extends?.some(
|
|
33
|
+
export async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
|
|
34
|
+
if (rawConfig.styleguide?.extends?.some(isNotString)) {
|
|
42
35
|
throw new Error(`Error configuration format not detected in extends value must contain strings`);
|
|
43
36
|
}
|
|
44
|
-
const resolver = externalRefResolver ?? new
|
|
37
|
+
const resolver = externalRefResolver ?? new BaseResolver(getResolveConfig(rawConfig.resolve));
|
|
45
38
|
const apis = await resolveApis({
|
|
46
39
|
rawConfig,
|
|
47
40
|
configPath,
|
|
@@ -52,7 +45,7 @@ async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
|
|
|
52
45
|
configPath,
|
|
53
46
|
resolver,
|
|
54
47
|
});
|
|
55
|
-
return new
|
|
48
|
+
return new Config({
|
|
56
49
|
...rawConfig,
|
|
57
50
|
apis,
|
|
58
51
|
styleguide,
|
|
@@ -61,55 +54,52 @@ async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
|
|
|
61
54
|
function getDefaultPluginPath(configDir) {
|
|
62
55
|
for (const pluginPath of DEFAULT_PROJECT_PLUGIN_PATHS) {
|
|
63
56
|
const absolutePluginPath = path.resolve(configDir, pluginPath);
|
|
64
|
-
if (
|
|
57
|
+
if (fs.existsSync(absolutePluginPath)) {
|
|
65
58
|
return pluginPath;
|
|
66
59
|
}
|
|
67
60
|
}
|
|
68
61
|
return;
|
|
69
62
|
}
|
|
70
|
-
async function resolvePlugins(plugins, configDir = '') {
|
|
63
|
+
export async function resolvePlugins(plugins, configDir = '') {
|
|
71
64
|
if (!plugins)
|
|
72
65
|
return [];
|
|
73
66
|
// TODO: implement or reuse Resolver approach so it will work in node and browser envs
|
|
74
67
|
const requireFunc = async (plugin) => {
|
|
75
|
-
if (
|
|
68
|
+
if (isString(plugin)) {
|
|
76
69
|
try {
|
|
77
70
|
const maybeAbsolutePluginPath = path.resolve(configDir, plugin);
|
|
78
|
-
const absolutePluginPath =
|
|
71
|
+
const absolutePluginPath = fs.existsSync(maybeAbsolutePluginPath)
|
|
79
72
|
? maybeAbsolutePluginPath
|
|
80
73
|
: // For plugins imported from packages specifically
|
|
81
|
-
|
|
74
|
+
module.createRequire(import.meta.url ?? __dirname).resolve(plugin, {
|
|
82
75
|
paths: [
|
|
83
76
|
// Plugins imported from the node_modules in the project directory
|
|
84
77
|
configDir,
|
|
85
78
|
// Plugins imported from the node_modules in the package install directory (for example, npx cache directory)
|
|
86
|
-
__dirname,
|
|
79
|
+
import.meta.url ? path.dirname(url.fileURLToPath(import.meta.url)) : __dirname,
|
|
87
80
|
],
|
|
88
81
|
});
|
|
89
82
|
if (!pluginsCache.has(absolutePluginPath)) {
|
|
90
83
|
let requiredPlugin;
|
|
91
84
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
92
|
-
// @ts-ignore
|
|
85
|
+
// @ts-ignore FIXME: investigate if we still need this (2.0)
|
|
93
86
|
if (typeof __webpack_require__ === 'function') {
|
|
94
87
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
95
|
-
// @ts-ignore
|
|
88
|
+
// @ts-ignore FIXME: investigate if we still need this (2.0)
|
|
96
89
|
requiredPlugin = __non_webpack_require__(absolutePluginPath);
|
|
97
90
|
}
|
|
98
91
|
else {
|
|
99
|
-
|
|
100
|
-
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
|
101
|
-
// you can import both cjs and mjs
|
|
102
|
-
const mod = await _importDynamic((0, url_1.pathToFileURL)(absolutePluginPath).href);
|
|
92
|
+
const mod = await import(url.pathToFileURL(absolutePluginPath).pathname);
|
|
103
93
|
requiredPlugin = mod.default || mod;
|
|
104
94
|
}
|
|
105
95
|
const pluginCreatorOptions = { contentDir: configDir };
|
|
106
|
-
const pluginModule =
|
|
96
|
+
const pluginModule = isDeprecatedPluginFormat(requiredPlugin)
|
|
107
97
|
? requiredPlugin
|
|
108
|
-
:
|
|
98
|
+
: isCommonJsPlugin(requiredPlugin)
|
|
109
99
|
? await requiredPlugin(pluginCreatorOptions)
|
|
110
100
|
: await requiredPlugin?.default?.(pluginCreatorOptions);
|
|
111
|
-
if (pluginModule?.id &&
|
|
112
|
-
|
|
101
|
+
if (pluginModule?.id && isDeprecatedPluginFormat(requiredPlugin)) {
|
|
102
|
+
logger.info(`Deprecated plugin format detected: ${pluginModule.id}\n`);
|
|
113
103
|
}
|
|
114
104
|
if (pluginModule) {
|
|
115
105
|
pluginsCache.set(absolutePluginPath, {
|
|
@@ -137,9 +127,9 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
137
127
|
}
|
|
138
128
|
const resolvedPlugins = new Set();
|
|
139
129
|
const instances = await Promise.all(plugins.map(async (p) => {
|
|
140
|
-
if (
|
|
141
|
-
if (
|
|
142
|
-
throw new Error(
|
|
130
|
+
if (isString(p)) {
|
|
131
|
+
if (isAbsoluteUrl(p)) {
|
|
132
|
+
throw new Error(colorize.red(`We don't support remote plugins yet.`));
|
|
143
133
|
}
|
|
144
134
|
if (resolvedPlugins.has(p)) {
|
|
145
135
|
return;
|
|
@@ -152,11 +142,11 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
152
142
|
}
|
|
153
143
|
const id = pluginModule.id;
|
|
154
144
|
if (typeof id !== 'string') {
|
|
155
|
-
throw new Error(
|
|
145
|
+
throw new Error(colorize.red(`Plugin must define \`id\` property in ${colorize.blue(p.toString())}.`));
|
|
156
146
|
}
|
|
157
147
|
if (seenPluginIds.has(id)) {
|
|
158
148
|
const pluginPath = seenPluginIds.get(id);
|
|
159
|
-
throw new Error(
|
|
149
|
+
throw new Error(colorize.red(`Plugin "id" must be unique. Plugin ${colorize.blue(p.toString())} uses id "${colorize.blue(id)}" already seen in ${colorize.blue(pluginPath)}`));
|
|
160
150
|
}
|
|
161
151
|
seenPluginIds.set(id, p.toString());
|
|
162
152
|
const plugin = {
|
|
@@ -175,22 +165,22 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
175
165
|
}
|
|
176
166
|
plugin.rules = {};
|
|
177
167
|
if (pluginModule.rules.oas3) {
|
|
178
|
-
plugin.rules.oas3 =
|
|
168
|
+
plugin.rules.oas3 = prefixRules(pluginModule.rules.oas3, id);
|
|
179
169
|
}
|
|
180
170
|
if (pluginModule.rules.oas2) {
|
|
181
|
-
plugin.rules.oas2 =
|
|
171
|
+
plugin.rules.oas2 = prefixRules(pluginModule.rules.oas2, id);
|
|
182
172
|
}
|
|
183
173
|
if (pluginModule.rules.async2) {
|
|
184
|
-
plugin.rules.async2 =
|
|
174
|
+
plugin.rules.async2 = prefixRules(pluginModule.rules.async2, id);
|
|
185
175
|
}
|
|
186
176
|
if (pluginModule.rules.async3) {
|
|
187
|
-
plugin.rules.async3 =
|
|
177
|
+
plugin.rules.async3 = prefixRules(pluginModule.rules.async3, id);
|
|
188
178
|
}
|
|
189
179
|
if (pluginModule.rules.arazzo1) {
|
|
190
|
-
plugin.rules.arazzo1 =
|
|
180
|
+
plugin.rules.arazzo1 = prefixRules(pluginModule.rules.arazzo1, id);
|
|
191
181
|
}
|
|
192
182
|
if (pluginModule.rules.overlay1) {
|
|
193
|
-
plugin.rules.overlay1 =
|
|
183
|
+
plugin.rules.overlay1 = prefixRules(pluginModule.rules.overlay1, id);
|
|
194
184
|
}
|
|
195
185
|
}
|
|
196
186
|
if (pluginModule.preprocessors) {
|
|
@@ -204,22 +194,22 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
204
194
|
}
|
|
205
195
|
plugin.preprocessors = {};
|
|
206
196
|
if (pluginModule.preprocessors.oas3) {
|
|
207
|
-
plugin.preprocessors.oas3 =
|
|
197
|
+
plugin.preprocessors.oas3 = prefixRules(pluginModule.preprocessors.oas3, id);
|
|
208
198
|
}
|
|
209
199
|
if (pluginModule.preprocessors.oas2) {
|
|
210
|
-
plugin.preprocessors.oas2 =
|
|
200
|
+
plugin.preprocessors.oas2 = prefixRules(pluginModule.preprocessors.oas2, id);
|
|
211
201
|
}
|
|
212
202
|
if (pluginModule.preprocessors.async2) {
|
|
213
|
-
plugin.preprocessors.async2 =
|
|
203
|
+
plugin.preprocessors.async2 = prefixRules(pluginModule.preprocessors.async2, id);
|
|
214
204
|
}
|
|
215
205
|
if (pluginModule.preprocessors.async3) {
|
|
216
|
-
plugin.preprocessors.async3 =
|
|
206
|
+
plugin.preprocessors.async3 = prefixRules(pluginModule.preprocessors.async3, id);
|
|
217
207
|
}
|
|
218
208
|
if (pluginModule.preprocessors.arazzo1) {
|
|
219
|
-
plugin.preprocessors.arazzo1 =
|
|
209
|
+
plugin.preprocessors.arazzo1 = prefixRules(pluginModule.preprocessors.arazzo1, id);
|
|
220
210
|
}
|
|
221
211
|
if (pluginModule.preprocessors.overlay1) {
|
|
222
|
-
plugin.preprocessors.overlay1 =
|
|
212
|
+
plugin.preprocessors.overlay1 = prefixRules(pluginModule.preprocessors.overlay1, id);
|
|
223
213
|
}
|
|
224
214
|
}
|
|
225
215
|
if (pluginModule.decorators) {
|
|
@@ -233,22 +223,22 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
233
223
|
}
|
|
234
224
|
plugin.decorators = {};
|
|
235
225
|
if (pluginModule.decorators.oas3) {
|
|
236
|
-
plugin.decorators.oas3 =
|
|
226
|
+
plugin.decorators.oas3 = prefixRules(pluginModule.decorators.oas3, id);
|
|
237
227
|
}
|
|
238
228
|
if (pluginModule.decorators.oas2) {
|
|
239
|
-
plugin.decorators.oas2 =
|
|
229
|
+
plugin.decorators.oas2 = prefixRules(pluginModule.decorators.oas2, id);
|
|
240
230
|
}
|
|
241
231
|
if (pluginModule.decorators.async2) {
|
|
242
|
-
plugin.decorators.async2 =
|
|
232
|
+
plugin.decorators.async2 = prefixRules(pluginModule.decorators.async2, id);
|
|
243
233
|
}
|
|
244
234
|
if (pluginModule.decorators.async3) {
|
|
245
|
-
plugin.decorators.async3 =
|
|
235
|
+
plugin.decorators.async3 = prefixRules(pluginModule.decorators.async3, id);
|
|
246
236
|
}
|
|
247
237
|
if (pluginModule.decorators.arazzo1) {
|
|
248
|
-
plugin.decorators.arazzo1 =
|
|
238
|
+
plugin.decorators.arazzo1 = prefixRules(pluginModule.decorators.arazzo1, id);
|
|
249
239
|
}
|
|
250
240
|
if (pluginModule.decorators.overlay1) {
|
|
251
|
-
plugin.decorators.overlay1 =
|
|
241
|
+
plugin.decorators.overlay1 = prefixRules(pluginModule.decorators.overlay1, id);
|
|
252
242
|
}
|
|
253
243
|
}
|
|
254
244
|
if (pluginModule.assertions) {
|
|
@@ -259,13 +249,13 @@ async function resolvePlugins(plugins, configDir = '') {
|
|
|
259
249
|
...plugin,
|
|
260
250
|
};
|
|
261
251
|
}));
|
|
262
|
-
return instances.filter(
|
|
252
|
+
return instances.filter(isDefined);
|
|
263
253
|
}
|
|
264
|
-
async function resolveApis({ rawConfig, configPath = '', resolver, }) {
|
|
254
|
+
export async function resolveApis({ rawConfig, configPath = '', resolver, }) {
|
|
265
255
|
const { apis = {}, styleguide: styleguideConfig = {} } = rawConfig;
|
|
266
256
|
const resolvedApis = {};
|
|
267
257
|
for (const [apiName, apiContent] of Object.entries(apis || {})) {
|
|
268
|
-
if (apiContent.styleguide?.extends?.some(
|
|
258
|
+
if (apiContent.styleguide?.extends?.some(isNotString)) {
|
|
269
259
|
throw new Error(`Error configuration format not detected in extends value must contain strings`);
|
|
270
260
|
}
|
|
271
261
|
const rawStyleguideConfig = getMergedRawStyleguideConfig(styleguideConfig, apiContent.styleguide);
|
|
@@ -278,27 +268,27 @@ async function resolveApis({ rawConfig, configPath = '', resolver, }) {
|
|
|
278
268
|
}
|
|
279
269
|
return resolvedApis;
|
|
280
270
|
}
|
|
281
|
-
async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configPath = '', resolver = new
|
|
271
|
+
async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configPath = '', resolver = new BaseResolver(), parentConfigPaths = [], extendPaths = [], }) {
|
|
282
272
|
if (parentConfigPaths.includes(configPath)) {
|
|
283
273
|
throw new Error(`Circular dependency in config file: "${configPath}"`);
|
|
284
274
|
}
|
|
285
|
-
const plugins =
|
|
275
|
+
const plugins = isBrowser
|
|
286
276
|
? // In browser, we don't support plugins from config file yet
|
|
287
|
-
[
|
|
288
|
-
:
|
|
277
|
+
[defaultPlugin]
|
|
278
|
+
: getUniquePlugins(await resolvePlugins([...(styleguideConfig?.plugins || []), defaultPlugin], path.dirname(configPath)));
|
|
289
279
|
const pluginPaths = styleguideConfig?.plugins
|
|
290
|
-
?.filter(
|
|
280
|
+
?.filter(isString)
|
|
291
281
|
.map((p) => path.resolve(path.dirname(configPath), p));
|
|
292
|
-
const resolvedConfigPath =
|
|
282
|
+
const resolvedConfigPath = isAbsoluteUrl(configPath)
|
|
293
283
|
? configPath
|
|
294
284
|
: configPath && path.resolve(configPath);
|
|
295
285
|
const extendConfigs = await Promise.all(styleguideConfig?.extends?.map(async (presetItem) => {
|
|
296
|
-
if (!
|
|
286
|
+
if (!isAbsoluteUrl(presetItem) && !path.extname(presetItem)) {
|
|
297
287
|
return resolvePreset(presetItem, plugins);
|
|
298
288
|
}
|
|
299
|
-
const pathItem =
|
|
289
|
+
const pathItem = isAbsoluteUrl(presetItem)
|
|
300
290
|
? presetItem
|
|
301
|
-
:
|
|
291
|
+
: isAbsoluteUrl(configPath)
|
|
302
292
|
? new URL(presetItem, configPath).href
|
|
303
293
|
: path.resolve(path.dirname(configPath), presetItem);
|
|
304
294
|
const extendedStyleguideConfig = await loadExtendStyleguideConfig(pathItem, resolver);
|
|
@@ -310,7 +300,7 @@ async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configP
|
|
|
310
300
|
extendPaths,
|
|
311
301
|
});
|
|
312
302
|
}) || []);
|
|
313
|
-
const { plugins: mergedPlugins = [], ...styleguide } =
|
|
303
|
+
const { plugins: mergedPlugins = [], ...styleguide } = mergeExtends([
|
|
314
304
|
...extendConfigs,
|
|
315
305
|
{
|
|
316
306
|
...styleguideConfig,
|
|
@@ -322,37 +312,37 @@ async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configP
|
|
|
322
312
|
]);
|
|
323
313
|
return {
|
|
324
314
|
...styleguide,
|
|
325
|
-
extendPaths: styleguide.extendPaths?.filter((path) => path && !
|
|
326
|
-
plugins:
|
|
315
|
+
extendPaths: styleguide.extendPaths?.filter((path) => path && !isAbsoluteUrl(path)),
|
|
316
|
+
plugins: getUniquePlugins(mergedPlugins),
|
|
327
317
|
recommendedFallback: styleguideConfig?.recommendedFallback,
|
|
328
318
|
doNotResolveExamples: styleguideConfig?.doNotResolveExamples,
|
|
329
319
|
};
|
|
330
320
|
}
|
|
331
|
-
async function resolveStyleguideConfig(opts) {
|
|
321
|
+
export async function resolveStyleguideConfig(opts) {
|
|
332
322
|
const resolvedStyleguideConfig = await resolveAndMergeNestedStyleguideConfig(opts);
|
|
333
323
|
return {
|
|
334
324
|
...resolvedStyleguideConfig,
|
|
335
325
|
rules: resolvedStyleguideConfig.rules && groupStyleguideAssertionRules(resolvedStyleguideConfig),
|
|
336
326
|
};
|
|
337
327
|
}
|
|
338
|
-
function resolvePreset(presetName, plugins) {
|
|
339
|
-
const { pluginId, configName } =
|
|
328
|
+
export function resolvePreset(presetName, plugins) {
|
|
329
|
+
const { pluginId, configName } = parsePresetName(presetName);
|
|
340
330
|
const plugin = plugins.find((p) => p.id === pluginId);
|
|
341
331
|
if (!plugin) {
|
|
342
|
-
throw new Error(`Invalid config ${
|
|
332
|
+
throw new Error(`Invalid config ${colorize.red(presetName)}: plugin ${pluginId} is not included.`);
|
|
343
333
|
}
|
|
344
334
|
const preset = plugin.configs?.[configName];
|
|
345
335
|
if (!preset) {
|
|
346
336
|
throw new Error(pluginId
|
|
347
|
-
? `Invalid config ${
|
|
348
|
-
: `Invalid config ${
|
|
337
|
+
? `Invalid config ${colorize.red(presetName)}: plugin ${pluginId} doesn't export config with name ${configName}.`
|
|
338
|
+
: `Invalid config ${colorize.red(presetName)}: there is no such built-in config.`);
|
|
349
339
|
}
|
|
350
340
|
return preset;
|
|
351
341
|
}
|
|
352
342
|
async function loadExtendStyleguideConfig(filePath, resolver) {
|
|
353
343
|
try {
|
|
354
344
|
const { parsed } = (await resolver.resolveDocument(null, filePath));
|
|
355
|
-
const rawConfig =
|
|
345
|
+
const rawConfig = transformConfig(parsed);
|
|
356
346
|
if (!rawConfig.styleguide) {
|
|
357
347
|
throw new Error(`Styleguide configuration format not detected: "${filePath}"`);
|
|
358
348
|
}
|
|
@@ -365,7 +355,7 @@ async function loadExtendStyleguideConfig(filePath, resolver) {
|
|
|
365
355
|
function getMergedRawStyleguideConfig(rootStyleguideConfig, apiStyleguideConfig) {
|
|
366
356
|
const resultLint = {
|
|
367
357
|
...rootStyleguideConfig,
|
|
368
|
-
...
|
|
358
|
+
...pickDefined(apiStyleguideConfig),
|
|
369
359
|
rules: { ...rootStyleguideConfig?.rules, ...apiStyleguideConfig?.rules },
|
|
370
360
|
oas2Rules: { ...rootStyleguideConfig?.oas2Rules, ...apiStyleguideConfig?.oas2Rules },
|
|
371
361
|
oas3_0Rules: { ...rootStyleguideConfig?.oas3_0Rules, ...apiStyleguideConfig?.oas3_0Rules },
|
|
@@ -429,10 +419,7 @@ function groupStyleguideAssertionRules({ rules, plugins, }) {
|
|
|
429
419
|
// Collect assertion rules
|
|
430
420
|
const assertions = [];
|
|
431
421
|
for (const [ruleKey, rule] of Object.entries(rules)) {
|
|
432
|
-
|
|
433
|
-
if ((ruleKey.startsWith('rule/') || ruleKey.startsWith('assert/')) &&
|
|
434
|
-
typeof rule === 'object' &&
|
|
435
|
-
rule !== null) {
|
|
422
|
+
if (ruleKey.startsWith('rule/') && typeof rule === 'object' && rule !== null) {
|
|
436
423
|
const assertion = rule;
|
|
437
424
|
if (plugins) {
|
|
438
425
|
registerCustomAssertions(plugins, assertion);
|
|
@@ -457,17 +444,18 @@ function groupStyleguideAssertionRules({ rules, plugins, }) {
|
|
|
457
444
|
return transformedRules;
|
|
458
445
|
}
|
|
459
446
|
function registerCustomAssertions(plugins, assertion) {
|
|
460
|
-
for (const field of
|
|
447
|
+
for (const field of keysOf(assertion.assertions)) {
|
|
461
448
|
const [pluginId, fn] = field.split('/');
|
|
462
449
|
if (!pluginId || !fn)
|
|
463
450
|
continue;
|
|
464
451
|
const plugin = plugins.find((plugin) => plugin.id === pluginId);
|
|
465
452
|
if (!plugin) {
|
|
466
|
-
throw Error(
|
|
453
|
+
throw Error(colorize.red(`Plugin ${colorize.blue(pluginId)} isn't found.`));
|
|
467
454
|
}
|
|
468
455
|
if (!plugin.assertions || !plugin.assertions[fn]) {
|
|
469
|
-
throw Error(`Plugin ${
|
|
456
|
+
throw Error(`Plugin ${colorize.red(pluginId)} doesn't export assertions function with name ${colorize.red(fn)}.`);
|
|
470
457
|
}
|
|
471
|
-
|
|
458
|
+
asserts[field] = buildAssertCustomFunction(plugin.assertions[fn]);
|
|
472
459
|
}
|
|
473
460
|
}
|
|
461
|
+
//# sourceMappingURL=config-resolvers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-resolvers.js","sourceRoot":"","sources":["../../src/config/config-resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,KAAK,GAAG,MAAM,UAAU,CAAC;AAChC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,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@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SpecVersion, SpecMajorVersion } from '../oas-types';
|
|
2
|
-
import type { NormalizedProblem } from '../walk';
|
|
3
|
-
import type { Oas2RuleSet, Oas3RuleSet, Async3RuleSet, Arazzo1RuleSet, Overlay1RuleSet } from '../oas-types';
|
|
4
|
-
import type { NodeType } from '../types';
|
|
5
|
-
import type { DecoratorConfig, Plugin, PreprocessorConfig,
|
|
1
|
+
import { SpecVersion, SpecMajorVersion } from '../oas-types.js';
|
|
2
|
+
import type { NormalizedProblem } from '../walk.js';
|
|
3
|
+
import type { Oas2RuleSet, Oas3RuleSet, Async3RuleSet, Arazzo1RuleSet, Overlay1RuleSet } from '../oas-types.js';
|
|
4
|
+
import type { NodeType } from '../types/index.js';
|
|
5
|
+
import type { DecoratorConfig, Plugin, PreprocessorConfig, ResolveConfig, ResolvedApi, ResolvedConfig, ResolvedStyleguideConfig, RuleConfig, RuleSettings, Telemetry, ThemeRawConfig } from './types.js';
|
|
6
6
|
export declare const IGNORE_FILE = ".redocly.lint-ignore.yaml";
|
|
7
7
|
export declare class StyleguideConfig {
|
|
8
8
|
rawConfig: ResolvedStyleguideConfig;
|
|
@@ -44,10 +44,8 @@ export declare class Config {
|
|
|
44
44
|
styleguide: StyleguideConfig;
|
|
45
45
|
resolve: ResolveConfig;
|
|
46
46
|
licenseKey?: string;
|
|
47
|
-
region?: Region;
|
|
48
47
|
theme: ThemeRawConfig;
|
|
49
|
-
organization?: string;
|
|
50
|
-
files: string[];
|
|
51
48
|
telemetry?: Telemetry;
|
|
52
49
|
constructor(rawConfig: ResolvedConfig, configFile?: string | undefined);
|
|
53
50
|
}
|
|
51
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAKh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