@redocly/openapi-core 0.0.0-snapshot.1744801622 → 0.0.0-snapshot.1747225307
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 -57
- 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/bundle.js
CHANGED
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
const ref_utils_1 = require("./ref-utils");
|
|
15
|
-
const rules_1 = require("./config/rules");
|
|
16
|
-
const no_unresolved_refs_1 = require("./rules/no-unresolved-refs");
|
|
17
|
-
const utils_1 = require("./utils");
|
|
18
|
-
const domains_1 = require("./redocly/domains");
|
|
19
|
-
const remove_unused_components_1 = require("./decorators/oas2/remove-unused-components");
|
|
20
|
-
const remove_unused_components_2 = require("./decorators/oas3/remove-unused-components");
|
|
21
|
-
const redocly_yaml_1 = require("./types/redocly-yaml");
|
|
22
|
-
var OasVersion;
|
|
1
|
+
import { BaseResolver, resolveDocument, makeRefId, makeDocumentFromString } from './resolve.js';
|
|
2
|
+
import { normalizeVisitors } from './visitors.js';
|
|
3
|
+
import { normalizeTypes } from './types/index.js';
|
|
4
|
+
import { walkDocument } from './walk.js';
|
|
5
|
+
import { detectSpec, getTypes, getMajorSpecVersion, SpecMajorVersion, SpecVersion, } from './oas-types.js';
|
|
6
|
+
import { isAbsoluteUrl, isExternalValue, isRef, refBaseName } from './ref-utils.js';
|
|
7
|
+
import { initRules } from './config/rules.js';
|
|
8
|
+
import { reportUnresolvedRef } from './rules/no-unresolved-refs.js';
|
|
9
|
+
import { dequal, isPlainObject, isTruthy } from './utils.js';
|
|
10
|
+
import { RemoveUnusedComponents as RemoveUnusedComponentsOas2 } from './decorators/oas2/remove-unused-components.js';
|
|
11
|
+
import { RemoveUnusedComponents as RemoveUnusedComponentsOas3 } from './decorators/oas3/remove-unused-components.js';
|
|
12
|
+
import { NormalizedConfigTypes } from './types/redocly-yaml.js';
|
|
13
|
+
export var OasVersion;
|
|
23
14
|
(function (OasVersion) {
|
|
24
15
|
OasVersion["Version2"] = "oas2";
|
|
25
16
|
OasVersion["Version3_0"] = "oas3_0";
|
|
26
17
|
OasVersion["Version3_1"] = "oas3_1";
|
|
27
|
-
})(OasVersion || (
|
|
28
|
-
const bundleVisitor =
|
|
18
|
+
})(OasVersion || (OasVersion = {}));
|
|
19
|
+
const bundleVisitor = normalizeVisitors([
|
|
29
20
|
{
|
|
30
21
|
severity: 'error',
|
|
31
22
|
ruleId: 'configBundler',
|
|
@@ -37,25 +28,25 @@ const bundleVisitor = (0, visitors_1.normalizeVisitors)([
|
|
|
37
28
|
},
|
|
38
29
|
},
|
|
39
30
|
},
|
|
40
|
-
],
|
|
41
|
-
async function bundleConfig(document, resolvedRefMap) {
|
|
31
|
+
], NormalizedConfigTypes);
|
|
32
|
+
export async function bundleConfig(document, resolvedRefMap) {
|
|
42
33
|
const ctx = {
|
|
43
34
|
problems: [],
|
|
44
|
-
oasVersion:
|
|
35
|
+
oasVersion: SpecVersion.OAS3_0,
|
|
45
36
|
refTypes: new Map(),
|
|
46
37
|
visitorsData: {},
|
|
47
38
|
};
|
|
48
|
-
|
|
39
|
+
walkDocument({
|
|
49
40
|
document,
|
|
50
|
-
rootType:
|
|
41
|
+
rootType: NormalizedConfigTypes.ConfigRoot,
|
|
51
42
|
normalizedVisitors: bundleVisitor,
|
|
52
43
|
resolvedRefMap,
|
|
53
44
|
ctx,
|
|
54
45
|
});
|
|
55
46
|
return document.parsed ?? {};
|
|
56
47
|
}
|
|
57
|
-
async function bundle(opts) {
|
|
58
|
-
const { ref, doc, externalRefResolver = new
|
|
48
|
+
export async function bundle(opts) {
|
|
49
|
+
const { ref, doc, externalRefResolver = new BaseResolver(opts.config.resolve), base = null, } = opts;
|
|
59
50
|
if (!(ref || doc)) {
|
|
60
51
|
throw new Error('Document or reference is required.\n');
|
|
61
52
|
}
|
|
@@ -71,9 +62,9 @@ async function bundle(opts) {
|
|
|
71
62
|
externalRefResolver,
|
|
72
63
|
});
|
|
73
64
|
}
|
|
74
|
-
async function bundleFromString(opts) {
|
|
75
|
-
const { source, absoluteRef, externalRefResolver = new
|
|
76
|
-
const document =
|
|
65
|
+
export async function bundleFromString(opts) {
|
|
66
|
+
const { source, absoluteRef, externalRefResolver = new BaseResolver(opts.config.resolve) } = opts;
|
|
67
|
+
const document = makeDocumentFromString(source, absoluteRef || '/');
|
|
77
68
|
return bundleDocument({
|
|
78
69
|
document,
|
|
79
70
|
...opts,
|
|
@@ -81,14 +72,14 @@ async function bundleFromString(opts) {
|
|
|
81
72
|
config: opts.config.styleguide,
|
|
82
73
|
});
|
|
83
74
|
}
|
|
84
|
-
async function bundleDocument(opts) {
|
|
85
|
-
const { document, config, customTypes, externalRefResolver, dereference = false,
|
|
86
|
-
const specVersion =
|
|
87
|
-
const specMajorVersion =
|
|
75
|
+
export async function bundleDocument(opts) {
|
|
76
|
+
const { document, config, customTypes, externalRefResolver, dereference = false, removeUnusedComponents = false, keepUrlRefs = false, } = opts;
|
|
77
|
+
const specVersion = detectSpec(document.parsed);
|
|
78
|
+
const specMajorVersion = getMajorSpecVersion(specVersion);
|
|
88
79
|
const rules = config.getRulesForSpecVersion(specMajorVersion);
|
|
89
|
-
const types =
|
|
90
|
-
const preprocessors =
|
|
91
|
-
const decorators =
|
|
80
|
+
const types = normalizeTypes(config.extendTypes(customTypes ?? getTypes(specVersion), specVersion), config);
|
|
81
|
+
const preprocessors = initRules(rules, config, 'preprocessors', specVersion);
|
|
82
|
+
const decorators = initRules(rules, config, 'decorators', specVersion);
|
|
92
83
|
const ctx = {
|
|
93
84
|
problems: [],
|
|
94
85
|
oasVersion: specVersion,
|
|
@@ -99,40 +90,40 @@ async function bundleDocument(opts) {
|
|
|
99
90
|
decorators.push({
|
|
100
91
|
severity: 'error',
|
|
101
92
|
ruleId: 'remove-unused-components',
|
|
102
|
-
visitor: specMajorVersion ===
|
|
103
|
-
? (
|
|
104
|
-
: (
|
|
93
|
+
visitor: specMajorVersion === SpecMajorVersion.OAS2
|
|
94
|
+
? RemoveUnusedComponentsOas2({})
|
|
95
|
+
: RemoveUnusedComponentsOas3({}),
|
|
105
96
|
});
|
|
106
97
|
}
|
|
107
|
-
let resolvedRefMap = await
|
|
98
|
+
let resolvedRefMap = await resolveDocument({
|
|
108
99
|
rootDocument: document,
|
|
109
100
|
rootType: types.Root,
|
|
110
101
|
externalRefResolver,
|
|
111
102
|
});
|
|
112
103
|
if (preprocessors.length > 0) {
|
|
113
104
|
// Make additional pass to resolve refs defined in preprocessors.
|
|
114
|
-
|
|
105
|
+
walkDocument({
|
|
115
106
|
document,
|
|
116
107
|
rootType: types.Root,
|
|
117
|
-
normalizedVisitors:
|
|
108
|
+
normalizedVisitors: normalizeVisitors(preprocessors, types),
|
|
118
109
|
resolvedRefMap,
|
|
119
110
|
ctx,
|
|
120
111
|
});
|
|
121
|
-
resolvedRefMap = await
|
|
112
|
+
resolvedRefMap = await resolveDocument({
|
|
122
113
|
rootDocument: document,
|
|
123
114
|
rootType: types.Root,
|
|
124
115
|
externalRefResolver,
|
|
125
116
|
});
|
|
126
117
|
}
|
|
127
|
-
const bundleVisitor =
|
|
118
|
+
const bundleVisitor = normalizeVisitors([
|
|
128
119
|
{
|
|
129
120
|
severity: 'error',
|
|
130
121
|
ruleId: 'bundler',
|
|
131
|
-
visitor: makeBundleVisitor(specMajorVersion, dereference,
|
|
122
|
+
visitor: makeBundleVisitor(specMajorVersion, dereference, document, resolvedRefMap, keepUrlRefs),
|
|
132
123
|
},
|
|
133
124
|
...decorators,
|
|
134
125
|
], types);
|
|
135
|
-
|
|
126
|
+
walkDocument({
|
|
136
127
|
document,
|
|
137
128
|
rootType: types.Root,
|
|
138
129
|
normalizedVisitors: bundleVisitor,
|
|
@@ -148,9 +139,9 @@ async function bundleDocument(opts) {
|
|
|
148
139
|
visitorsData: ctx.visitorsData,
|
|
149
140
|
};
|
|
150
141
|
}
|
|
151
|
-
function mapTypeToComponent(typeName, version) {
|
|
142
|
+
export function mapTypeToComponent(typeName, version) {
|
|
152
143
|
switch (version) {
|
|
153
|
-
case
|
|
144
|
+
case SpecMajorVersion.OAS3:
|
|
154
145
|
switch (typeName) {
|
|
155
146
|
case 'Schema':
|
|
156
147
|
return 'schemas';
|
|
@@ -173,7 +164,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
173
164
|
default:
|
|
174
165
|
return null;
|
|
175
166
|
}
|
|
176
|
-
case
|
|
167
|
+
case SpecMajorVersion.OAS2:
|
|
177
168
|
switch (typeName) {
|
|
178
169
|
case 'Schema':
|
|
179
170
|
return 'definitions';
|
|
@@ -184,7 +175,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
184
175
|
default:
|
|
185
176
|
return null;
|
|
186
177
|
}
|
|
187
|
-
case
|
|
178
|
+
case SpecMajorVersion.Async2:
|
|
188
179
|
switch (typeName) {
|
|
189
180
|
case 'Schema':
|
|
190
181
|
return 'schemas';
|
|
@@ -193,7 +184,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
193
184
|
default:
|
|
194
185
|
return null;
|
|
195
186
|
}
|
|
196
|
-
case
|
|
187
|
+
case SpecMajorVersion.Async3:
|
|
197
188
|
switch (typeName) {
|
|
198
189
|
case 'Schema':
|
|
199
190
|
return 'schemas';
|
|
@@ -202,7 +193,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
202
193
|
default:
|
|
203
194
|
return null;
|
|
204
195
|
}
|
|
205
|
-
case
|
|
196
|
+
case SpecMajorVersion.Arazzo1:
|
|
206
197
|
switch (typeName) {
|
|
207
198
|
case 'Root.workflows_items.parameters_items':
|
|
208
199
|
case 'Root.workflows_items.steps_items.parameters_items':
|
|
@@ -210,7 +201,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
210
201
|
default:
|
|
211
202
|
return null;
|
|
212
203
|
}
|
|
213
|
-
case
|
|
204
|
+
case SpecMajorVersion.Overlay1:
|
|
214
205
|
switch (typeName) {
|
|
215
206
|
default:
|
|
216
207
|
return null;
|
|
@@ -218,7 +209,7 @@ function mapTypeToComponent(typeName, version) {
|
|
|
218
209
|
}
|
|
219
210
|
}
|
|
220
211
|
function replaceRef(ref, resolved, ctx) {
|
|
221
|
-
if (!
|
|
212
|
+
if (!isPlainObject(resolved.node)) {
|
|
222
213
|
ctx.parent[ctx.key] = resolved.node;
|
|
223
214
|
}
|
|
224
215
|
else {
|
|
@@ -230,14 +221,14 @@ function replaceRef(ref, resolved, ctx) {
|
|
|
230
221
|
}
|
|
231
222
|
}
|
|
232
223
|
// function oas3Move
|
|
233
|
-
function makeBundleVisitor(version, dereference,
|
|
224
|
+
function makeBundleVisitor(version, dereference, rootDocument, resolvedRefMap, keepUrlRefs) {
|
|
234
225
|
let components;
|
|
235
226
|
let rootLocation;
|
|
236
227
|
const visitor = {
|
|
237
228
|
ref: {
|
|
238
229
|
leave(node, ctx, resolved) {
|
|
239
230
|
if (!resolved.location || resolved.node === undefined) {
|
|
240
|
-
|
|
231
|
+
reportUnresolvedRef(resolved, ctx.report, ctx.location);
|
|
241
232
|
return;
|
|
242
233
|
}
|
|
243
234
|
if (resolved.location.source === rootDocument.source &&
|
|
@@ -246,11 +237,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
246
237
|
!dereference) {
|
|
247
238
|
return;
|
|
248
239
|
}
|
|
249
|
-
|
|
250
|
-
if (skipRedoclyRegistryRefs && (0, domains_1.isRedoclyRegistryURL)(node.$ref)) {
|
|
251
|
-
return;
|
|
252
|
-
}
|
|
253
|
-
if (keepUrlRefs && (0, ref_utils_1.isAbsoluteUrl)(node.$ref)) {
|
|
240
|
+
if (keepUrlRefs && isAbsoluteUrl(node.$ref)) {
|
|
254
241
|
return;
|
|
255
242
|
}
|
|
256
243
|
const componentType = mapTypeToComponent(ctx.type.name, version);
|
|
@@ -271,13 +258,13 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
271
258
|
},
|
|
272
259
|
Example: {
|
|
273
260
|
leave(node, ctx) {
|
|
274
|
-
if (
|
|
261
|
+
if (isExternalValue(node) && node.value === undefined) {
|
|
275
262
|
const resolved = ctx.resolve({ $ref: node.externalValue });
|
|
276
263
|
if (!resolved.location || resolved.node === undefined) {
|
|
277
|
-
|
|
264
|
+
reportUnresolvedRef(resolved, ctx.report, ctx.location);
|
|
278
265
|
return;
|
|
279
266
|
}
|
|
280
|
-
if (keepUrlRefs &&
|
|
267
|
+
if (keepUrlRefs && isAbsoluteUrl(node.externalValue)) {
|
|
281
268
|
return;
|
|
282
269
|
}
|
|
283
270
|
node.value = ctx.resolve({ $ref: node.externalValue }).node;
|
|
@@ -288,32 +275,32 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
288
275
|
Root: {
|
|
289
276
|
enter(root, ctx) {
|
|
290
277
|
rootLocation = ctx.location;
|
|
291
|
-
if (version ===
|
|
278
|
+
if (version === SpecMajorVersion.OAS3) {
|
|
292
279
|
components = root.components = root.components || {};
|
|
293
280
|
}
|
|
294
|
-
else if (version ===
|
|
281
|
+
else if (version === SpecMajorVersion.OAS2) {
|
|
295
282
|
components = root;
|
|
296
283
|
}
|
|
297
|
-
else if (version ===
|
|
284
|
+
else if (version === SpecMajorVersion.Async2) {
|
|
298
285
|
components = root.components = root.components || {};
|
|
299
286
|
}
|
|
300
|
-
else if (version ===
|
|
287
|
+
else if (version === SpecMajorVersion.Async3) {
|
|
301
288
|
components = root.components = root.components || {};
|
|
302
289
|
}
|
|
303
|
-
else if (version ===
|
|
290
|
+
else if (version === SpecMajorVersion.Arazzo1) {
|
|
304
291
|
components = root.components = root.components || {};
|
|
305
292
|
}
|
|
306
293
|
},
|
|
307
294
|
},
|
|
308
295
|
};
|
|
309
|
-
if (version ===
|
|
296
|
+
if (version === SpecMajorVersion.OAS3) {
|
|
310
297
|
visitor.DiscriminatorMapping = {
|
|
311
298
|
leave(mapping, ctx) {
|
|
312
299
|
for (const name of Object.keys(mapping)) {
|
|
313
300
|
const $ref = mapping[name];
|
|
314
301
|
const resolved = ctx.resolve({ $ref });
|
|
315
302
|
if (!resolved.location || resolved.node === undefined) {
|
|
316
|
-
|
|
303
|
+
reportUnresolvedRef(resolved, ctx.report, ctx.location.child(name));
|
|
317
304
|
return;
|
|
318
305
|
}
|
|
319
306
|
const componentType = mapTypeToComponent('Schema', version);
|
|
@@ -323,7 +310,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
323
310
|
};
|
|
324
311
|
}
|
|
325
312
|
function resolveBundledComponent(node, resolved, ctx) {
|
|
326
|
-
const newRefId =
|
|
313
|
+
const newRefId = makeRefId(ctx.location.source.absoluteRef, node.$ref);
|
|
327
314
|
resolvedRefMap.set(newRefId, {
|
|
328
315
|
document: rootDocument,
|
|
329
316
|
isRemote: false,
|
|
@@ -336,9 +323,9 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
336
323
|
components[componentType] = components[componentType] || {};
|
|
337
324
|
const name = getComponentName(target, componentType, ctx);
|
|
338
325
|
components[componentType][name] = target.node;
|
|
339
|
-
if (version ===
|
|
340
|
-
version ===
|
|
341
|
-
version ===
|
|
326
|
+
if (version === SpecMajorVersion.OAS3 ||
|
|
327
|
+
version === SpecMajorVersion.Async2 ||
|
|
328
|
+
version === SpecMajorVersion.Async3) {
|
|
342
329
|
return `#/components/${componentType}/${name}`;
|
|
343
330
|
}
|
|
344
331
|
else {
|
|
@@ -346,18 +333,18 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
346
333
|
}
|
|
347
334
|
}
|
|
348
335
|
function isEqualOrEqualRef(node, target, ctx) {
|
|
349
|
-
if (
|
|
336
|
+
if (isRef(node) &&
|
|
350
337
|
ctx.resolve(node, rootLocation.absolutePointer).location?.absolutePointer ===
|
|
351
338
|
target.location.absolutePointer) {
|
|
352
339
|
return true;
|
|
353
340
|
}
|
|
354
|
-
return
|
|
341
|
+
return dequal(node, target.node);
|
|
355
342
|
}
|
|
356
343
|
function getComponentName(target, componentType, ctx) {
|
|
357
344
|
const [fileRef, pointer] = [target.location.source.absoluteRef, target.location.pointer];
|
|
358
345
|
const componentsGroup = components[componentType];
|
|
359
346
|
let name = '';
|
|
360
|
-
const refParts = pointer.slice(2).split('/').filter(
|
|
347
|
+
const refParts = pointer.slice(2).split('/').filter(isTruthy); // slice(2) removes "#/"
|
|
361
348
|
while (refParts.length > 0) {
|
|
362
349
|
name = refParts.pop() + (name ? `-${name}` : '');
|
|
363
350
|
if (!componentsGroup ||
|
|
@@ -366,7 +353,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
366
353
|
return name;
|
|
367
354
|
}
|
|
368
355
|
}
|
|
369
|
-
name =
|
|
356
|
+
name = refBaseName(fileRef) + (name ? `_${name}` : '');
|
|
370
357
|
if (!componentsGroup[name] || isEqualOrEqualRef(componentsGroup[name], target, ctx)) {
|
|
371
358
|
return name;
|
|
372
359
|
}
|
|
@@ -387,3 +374,4 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
|
|
|
387
374
|
}
|
|
388
375
|
return visitor;
|
|
389
376
|
}
|
|
377
|
+
//# sourceMappingURL=bundle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bundle.js","sourceRoot":"","sources":["../src/bundle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EACL,UAAU,EACV,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,WAAW,GACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,sBAAsB,IAAI,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AACrH,OAAO,EAAE,sBAAsB,IAAI,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AACrH,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAWhE,MAAM,CAAN,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,m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
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
1
|
const all = {
|
|
4
2
|
rules: {
|
|
5
3
|
struct: 'error',
|
|
@@ -230,4 +228,5 @@ const all = {
|
|
|
230
228
|
'info-contact': 'error',
|
|
231
229
|
},
|
|
232
230
|
};
|
|
233
|
-
|
|
231
|
+
export default all;
|
|
232
|
+
//# sourceMappingURL=all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"all.js","sourceRoot":"","sources":["../../src/config/all.ts"],"names":[],"mappings":"AAEA,MAAM,GAAG,GAAuC;IAC9C,KAAK,EAAE;QACL,MAAM,EAAE,OAAO;KAChB;IACD,SAAS,EAAE;QACT,4BAA4B,EAAE,OAAO;QACrC,cAAc,EAAE,OAAO;QACvB,cAAc,EAAE,OAAO;QACvB,kBAAkB,EAAE,OAAO;QAC3B,qBAAqB,EAAE,OAAO;QAC9B,wBAAwB,EAAE,OAAO;QACjC,oBAAoB,EAAE,OAAO;QAC7B,oBAAoB,EAAE,OAAO;QAC7B,4BAA4B,EAAE,OAAO;QACrC,+BAA+B,EAAE,OAAO;QACxC,wBAAwB,EAAE,OAAO;QACjC,uBAAuB,EAAE,OAAO;QAChC,oBAAoB,EAAE,OAAO;QAC7B,yCAAyC,EAAE,OAAO;QAClD,yBAAyB,EAAE,OAAO;QAClC,mBAAmB,EAAE,OAAO;QAC5B,uBAAuB,EAAE,OAAO;QAChC,8BAA8B,EAAE,OAAO;QACvC,gCAAgC,EAAE,OAAO;QACzC,uBAAuB,EAAE,OAAO;QAChC,wBAAwB,EAAE,OAAO;QACjC,wBAAwB,EAAE,OAAO;QACjC,6BAA6B,EAAE,OAAO;QACtC,uBAAuB,EAAE,OAAO;QAChC,wBAAwB,EAAE,OAAO;QACjC,uBAAuB,EAAE,OAAO;QAChC,6BAA6B,EAAE,OAAO;QACtC,wBAAwB,EAAE,OAAO;QACjC,yBAAyB,EAAE,OAAO;QAClC,kBAAkB,E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
|
1
|
+
import type { StyleguideRawConfig, Plugin } from './types.js';
|
|
2
2
|
export declare const builtInConfigs: Record<string, StyleguideRawConfig>;
|
|
3
3
|
export declare const defaultPlugin: Plugin<'built-in'>;
|
|
4
|
+
//# sourceMappingURL=builtIn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtIn.d.ts","sourceRoot":"","sources":["../../src/config/builtIn.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAE9D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAM9D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,CA2B5C,CAAC"}
|
package/lib/config/builtIn.js
CHANGED
|
@@ -1,58 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
minimal: minimal_1.default,
|
|
25
|
-
all: all_1.default,
|
|
26
|
-
spec: spec_1.default,
|
|
27
|
-
'redocly-registry': {
|
|
28
|
-
decorators: { 'registry-dependencies': 'on' },
|
|
29
|
-
},
|
|
1
|
+
import recommended from './recommended.js';
|
|
2
|
+
import recommendedStrict from './recommended-strict.js';
|
|
3
|
+
import all from './all.js';
|
|
4
|
+
import minimal from './minimal.js';
|
|
5
|
+
import spec from './spec.js';
|
|
6
|
+
import { rules as oas3Rules, preprocessors as oas3Preprocessors } from '../rules/oas3/index.js';
|
|
7
|
+
import { rules as oas2Rules, preprocessors as oas2Preprocessors } from '../rules/oas2/index.js';
|
|
8
|
+
import { rules as async2Rules, preprocessors as async2Preprocessors, } from '../rules/async2/index.js';
|
|
9
|
+
import { rules as async3Rules, preprocessors as async3Preprocessors, } from '../rules/async3/index.js';
|
|
10
|
+
import { rules as arazzo1Rules, preprocessors as arazzoPreprocessors, } from '../rules/arazzo/index.js';
|
|
11
|
+
import { rules as overlay1Rules, preprocessors as overlay1Preprocessors, } from '../rules/overlay1/index.js';
|
|
12
|
+
import { decorators as oas3Decorators } from '../decorators/oas3/index.js';
|
|
13
|
+
import { decorators as oas2Decorators } from '../decorators/oas2/index.js';
|
|
14
|
+
import { decorators as async2Decorators } from '../decorators/async2/index.js';
|
|
15
|
+
import { decorators as async3Decorators } from '../decorators/async3/index.js';
|
|
16
|
+
import { decorators as arazzo1Decorators } from '../decorators/arazzo/index.js';
|
|
17
|
+
import { decorators as overlay1Decorators } from '../decorators/overlay1/index.js';
|
|
18
|
+
export const builtInConfigs = {
|
|
19
|
+
recommended,
|
|
20
|
+
'recommended-strict': recommendedStrict,
|
|
21
|
+
minimal,
|
|
22
|
+
all,
|
|
23
|
+
spec,
|
|
30
24
|
};
|
|
31
|
-
|
|
25
|
+
export const defaultPlugin = {
|
|
32
26
|
id: '', // default plugin doesn't have id
|
|
33
27
|
rules: {
|
|
34
|
-
oas3:
|
|
35
|
-
oas2:
|
|
36
|
-
async2:
|
|
37
|
-
async3:
|
|
38
|
-
arazzo1:
|
|
39
|
-
overlay1:
|
|
28
|
+
oas3: oas3Rules,
|
|
29
|
+
oas2: oas2Rules,
|
|
30
|
+
async2: async2Rules,
|
|
31
|
+
async3: async3Rules,
|
|
32
|
+
arazzo1: arazzo1Rules,
|
|
33
|
+
overlay1: overlay1Rules,
|
|
40
34
|
},
|
|
41
35
|
preprocessors: {
|
|
42
|
-
oas3:
|
|
43
|
-
oas2:
|
|
44
|
-
async2:
|
|
45
|
-
async3:
|
|
46
|
-
arazzo1:
|
|
47
|
-
overlay1:
|
|
36
|
+
oas3: oas3Preprocessors,
|
|
37
|
+
oas2: oas2Preprocessors,
|
|
38
|
+
async2: async2Preprocessors,
|
|
39
|
+
async3: async3Preprocessors,
|
|
40
|
+
arazzo1: arazzoPreprocessors,
|
|
41
|
+
overlay1: overlay1Preprocessors,
|
|
48
42
|
},
|
|
49
43
|
decorators: {
|
|
50
|
-
oas3:
|
|
51
|
-
oas2:
|
|
52
|
-
async2:
|
|
53
|
-
async3:
|
|
54
|
-
arazzo1:
|
|
55
|
-
overlay1:
|
|
44
|
+
oas3: oas3Decorators,
|
|
45
|
+
oas2: oas2Decorators,
|
|
46
|
+
async2: async2Decorators,
|
|
47
|
+
async3: async3Decorators,
|
|
48
|
+
arazzo1: arazzo1Decorators,
|
|
49
|
+
overlay1: overlay1Decorators,
|
|
56
50
|
},
|
|
57
|
-
configs:
|
|
51
|
+
configs: builtInConfigs,
|
|
58
52
|
};
|
|
53
|
+
//# sourceMappingURL=builtIn.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtIn.js","sourceRoot":"","sources":["../../src/config/builtIn.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,aAAa,IAAI,mBAAmB,GACrC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,aAAa,IAAI,mBAAmB,GACrC,MAAM,0BAA0B,CAAC;AAClC,OAA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O,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,kBAAkB;KAC7B;IACD,OAAO,EAAE,cAAc;CACxB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { BaseResolver } from '../resolve';
|
|
2
|
-
import { Config } from './config';
|
|
3
|
-
import type { StyleguideRawConfig, Plugin, RawConfig, ResolvedApi, ResolvedStyleguideConfig } from './types';
|
|
4
|
-
import type { BundleOptions } from '../bundle';
|
|
5
|
-
import type { Document, ResolvedRefMap } from '../resolve';
|
|
1
|
+
import { BaseResolver } from '../resolve.js';
|
|
2
|
+
import { Config } from './config.js';
|
|
3
|
+
import type { StyleguideRawConfig, Plugin, RawConfig, ResolvedApi, ResolvedStyleguideConfig } from './types.js';
|
|
4
|
+
import type { BundleOptions } from '../bundle.js';
|
|
5
|
+
import type { Document, ResolvedRefMap } from '../resolve.js';
|
|
6
6
|
export declare function resolveConfigFileAndRefs({ configPath, externalRefResolver, base, }: Omit<BundleOptions, 'config'> & {
|
|
7
7
|
configPath?: string;
|
|
8
8
|
}): Promise<{
|
|
@@ -28,3 +28,4 @@ export declare function resolveStyleguideConfig(opts: {
|
|
|
28
28
|
extendPaths?: string[];
|
|
29
29
|
}): Promise<ResolvedStyleguideConfig>;
|
|
30
30
|
export declare function resolvePreset(presetName: string, plugins: Plugin[]): ResolvedStyleguideConfig;
|
|
31
|
+
//# sourceMappingURL=config-resolvers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-resolvers.d.ts","sourceRoot":"","sources":["../../src/config/config-resolvers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAa9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EACV,mBAAmB,EAEnB,MAAM,EACN,SAAS,EACT,WAAW,EACX,wBAAwB,EAIzB,MAAM,YAAY,CAAC;AAOpB,OAAO,KAAK,EAAE,aAAa,EA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