@redocly/openapi-core 0.0.0-snapshot.1744362365 → 0.0.0-snapshot.1744801622
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-many-rules.bench.js +19 -17
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-no-rules.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +19 -15
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +1 -2
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +19 -15
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts +1 -2
- package/lib/benchmark/benches/recommended-oas3.bench.js +18 -15
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts +1 -2
- package/lib/benchmark/benches/resolve-with-no-external.bench.js +17 -14
- package/lib/benchmark/utils.d.ts +4 -5
- package/lib/benchmark/utils.js +14 -11
- package/lib/bundle.d.ts +9 -8
- package/lib/bundle.js +84 -72
- package/lib/config/all.d.ts +1 -2
- package/lib/config/all.js +3 -2
- package/lib/config/builtIn.d.ts +1 -2
- package/lib/config/builtIn.js +49 -44
- package/lib/config/config-resolvers.d.ts +5 -6
- package/lib/config/config-resolvers.js +94 -85
- package/lib/config/config.d.ts +8 -6
- package/lib/config/config.js +73 -66
- package/lib/config/index.d.ts +7 -8
- package/lib/config/index.js +23 -8
- package/lib/config/load.d.ts +8 -5
- package/lib/config/load.js +73 -28
- package/lib/config/minimal.d.ts +1 -2
- package/lib/config/minimal.js +3 -2
- package/lib/config/recommended-strict.d.ts +1 -2
- package/lib/config/recommended-strict.js +3 -2
- package/lib/config/recommended.d.ts +1 -2
- package/lib/config/recommended.js +3 -2
- package/lib/config/rules.d.ts +3 -4
- package/lib/config/rules.js +6 -4
- package/lib/config/spec.d.ts +1 -2
- package/lib/config/spec.js +3 -2
- package/lib/config/types.d.ts +13 -6
- package/lib/config/types.js +2 -2
- package/lib/config/utils.d.ts +2 -3
- package/lib/config/utils.js +89 -75
- package/lib/decorators/arazzo/index.d.ts +0 -1
- package/lib/decorators/arazzo/index.js +4 -2
- package/lib/decorators/async2/index.d.ts +0 -1
- package/lib/decorators/async2/index.js +4 -2
- package/lib/decorators/async3/index.d.ts +0 -1
- package/lib/decorators/async3/index.js +4 -2
- package/lib/decorators/common/filters/filter-helper.d.ts +1 -2
- package/lib/decorators/common/filters/filter-helper.js +12 -9
- package/lib/decorators/common/filters/filter-in.d.ts +1 -2
- package/lib/decorators/common/filters/filter-in.js +8 -5
- package/lib/decorators/common/filters/filter-out.d.ts +1 -2
- package/lib/decorators/common/filters/filter-out.js +8 -5
- package/lib/decorators/common/info-description-override.d.ts +1 -2
- package/lib/decorators/common/info-description-override.js +7 -4
- package/lib/decorators/common/info-override.d.ts +1 -2
- package/lib/decorators/common/info-override.js +5 -2
- package/lib/decorators/common/media-type-examples-override.d.ts +1 -2
- package/lib/decorators/common/media-type-examples-override.js +10 -7
- package/lib/decorators/common/operation-description-override.d.ts +1 -2
- package/lib/decorators/common/operation-description-override.js +7 -4
- package/lib/decorators/common/registry-dependencies.d.ts +2 -0
- package/lib/decorators/common/registry-dependencies.js +24 -0
- package/lib/decorators/common/remove-x-internal.d.ts +1 -2
- package/lib/decorators/common/remove-x-internal.js +14 -11
- package/lib/decorators/common/tag-description-override.d.ts +1 -2
- package/lib/decorators/common/tag-description-override.js +7 -4
- package/lib/decorators/oas2/index.d.ts +2 -2
- package/lib/decorators/oas2/index.js +20 -16
- package/lib/decorators/oas2/remove-unused-components.d.ts +1 -2
- package/lib/decorators/oas2/remove-unused-components.js +7 -4
- package/lib/decorators/oas3/index.d.ts +2 -2
- package/lib/decorators/oas3/index.js +22 -18
- package/lib/decorators/oas3/remove-unused-components.d.ts +1 -2
- package/lib/decorators/oas3/remove-unused-components.js +8 -5
- package/lib/decorators/overlay1/index.d.ts +0 -1
- package/lib/decorators/overlay1/index.js +4 -2
- package/lib/env.d.ts +0 -1
- package/lib/env.js +5 -3
- package/lib/format/codeframes.d.ts +1 -2
- package/lib/format/codeframes.js +19 -15
- package/lib/format/format.d.ts +1 -2
- package/lib/format/format.js +62 -57
- package/lib/index.d.ts +26 -29
- package/lib/index.js +98 -24
- package/lib/js-yaml/index.d.ts +0 -1
- package/lib/js-yaml/index.js +11 -7
- package/lib/lint.d.ts +10 -11
- package/lib/lint.js +44 -39
- package/lib/logger.d.ts +1 -2
- package/lib/logger.js +17 -15
- package/lib/oas-types.d.ts +3 -4
- package/lib/oas-types.js +32 -27
- package/lib/output.d.ts +3 -0
- package/lib/output.js +9 -0
- package/lib/redocly/domains.d.ts +14 -0
- package/lib/redocly/domains.js +41 -0
- package/lib/redocly/index.d.ts +30 -0
- package/lib/redocly/index.js +131 -0
- package/lib/redocly/redocly-client-types.d.ts +8 -0
- package/lib/redocly/redocly-client-types.js +2 -0
- package/lib/redocly/registry-api-types.d.ts +29 -0
- package/lib/redocly/registry-api-types.js +2 -0
- package/lib/redocly/registry-api.d.ts +17 -0
- package/lib/redocly/registry-api.js +100 -0
- package/lib/ref-utils.d.ts +2 -3
- package/lib/ref-utils.js +33 -18
- package/lib/resolve.d.ts +2 -3
- package/lib/resolve.js +45 -36
- package/lib/rules/ajv.d.ts +3 -4
- package/lib/rules/ajv.js +10 -7
- package/lib/rules/arazzo/criteria-unique.d.ts +1 -2
- package/lib/rules/arazzo/criteria-unique.js +5 -2
- package/lib/rules/arazzo/index.d.ts +1 -2
- package/lib/rules/arazzo/index.js +35 -33
- package/lib/rules/arazzo/parameters-unique.d.ts +1 -2
- package/lib/rules/arazzo/parameters-unique.js +5 -2
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +1 -2
- package/lib/rules/arazzo/requestBody-replacements-unique.js +5 -2
- package/lib/rules/arazzo/sourceDescription-type.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescription-type.js +5 -2
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js +5 -2
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +1 -2
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js +5 -2
- package/lib/rules/arazzo/step-onFailure-unique.d.ts +1 -2
- package/lib/rules/arazzo/step-onFailure-unique.js +5 -2
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts +1 -2
- package/lib/rules/arazzo/step-onSuccess-unique.js +5 -2
- package/lib/rules/arazzo/stepId-unique.d.ts +1 -2
- package/lib/rules/arazzo/stepId-unique.js +5 -2
- package/lib/rules/arazzo/workflow-dependsOn.d.ts +1 -2
- package/lib/rules/arazzo/workflow-dependsOn.js +5 -2
- package/lib/rules/arazzo/workflowId-unique.d.ts +1 -2
- package/lib/rules/arazzo/workflowId-unique.js +5 -2
- package/lib/rules/async2/channels-kebab-case.d.ts +1 -2
- package/lib/rules/async2/channels-kebab-case.js +5 -2
- package/lib/rules/async2/index.d.ts +1 -2
- package/lib/rules/async2/index.js +24 -22
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +1 -2
- package/lib/rules/async2/no-channel-trailing-slash.js +5 -2
- package/lib/rules/async3/channels-kebab-case.d.ts +1 -2
- package/lib/rules/async3/channels-kebab-case.js +5 -2
- package/lib/rules/async3/index.d.ts +1 -2
- package/lib/rules/async3/index.js +24 -22
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +1 -2
- package/lib/rules/async3/no-channel-trailing-slash.js +6 -3
- package/lib/rules/common/assertions/asserts.d.ts +2 -3
- package/lib/rules/common/assertions/asserts.js +38 -35
- package/lib/rules/common/assertions/index.d.ts +3 -4
- package/lib/rules/common/assertions/index.js +10 -7
- package/lib/rules/common/assertions/utils.d.ts +4 -5
- package/lib/rules/common/assertions/utils.js +29 -21
- package/lib/rules/common/info-contact.d.ts +1 -2
- package/lib/rules/common/info-contact.js +7 -4
- package/lib/rules/common/info-license-strict.d.ts +1 -2
- package/lib/rules/common/info-license-strict.js +10 -7
- package/lib/rules/common/info-license-url.d.ts +1 -2
- package/lib/rules/common/info-license-url.js +7 -4
- package/lib/rules/common/info-license.d.ts +1 -2
- package/lib/rules/common/info-license.js +7 -4
- package/lib/rules/common/no-ambiguous-paths.d.ts +1 -2
- package/lib/rules/common/no-ambiguous-paths.js +5 -2
- package/lib/rules/common/no-enum-type-mismatch.d.ts +1 -2
- package/lib/rules/common/no-enum-type-mismatch.js +9 -6
- package/lib/rules/common/no-http-verbs-in-paths.d.ts +1 -2
- package/lib/rules/common/no-http-verbs-in-paths.js +8 -5
- package/lib/rules/common/no-identical-paths.d.ts +1 -2
- package/lib/rules/common/no-identical-paths.js +5 -2
- package/lib/rules/common/no-invalid-parameter-examples.d.ts +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.js +9 -6
- package/lib/rules/common/no-invalid-schema-examples.d.ts +1 -2
- package/lib/rules/common/no-invalid-schema-examples.js +9 -6
- package/lib/rules/common/no-path-trailing-slash.d.ts +1 -2
- package/lib/rules/common/no-path-trailing-slash.js +5 -2
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts +1 -2
- package/lib/rules/common/no-required-schema-properties-undefined.js +7 -4
- package/lib/rules/common/no-schema-type-mismatch.d.ts +1 -2
- package/lib/rules/common/no-schema-type-mismatch.js +5 -2
- package/lib/rules/common/operation-2xx-response.d.ts +1 -2
- package/lib/rules/common/operation-2xx-response.js +8 -5
- package/lib/rules/common/operation-4xx-response.d.ts +1 -2
- package/lib/rules/common/operation-4xx-response.js +8 -5
- package/lib/rules/common/operation-description.d.ts +1 -2
- package/lib/rules/common/operation-description.js +7 -4
- package/lib/rules/common/operation-operationId-unique.d.ts +1 -2
- package/lib/rules/common/operation-operationId-unique.js +5 -2
- package/lib/rules/common/operation-operationId-url-safe.d.ts +1 -2
- package/lib/rules/common/operation-operationId-url-safe.js +5 -2
- package/lib/rules/common/operation-operationId.d.ts +1 -2
- package/lib/rules/common/operation-operationId.js +7 -4
- package/lib/rules/common/operation-parameters-unique.d.ts +1 -2
- package/lib/rules/common/operation-parameters-unique.js +5 -2
- package/lib/rules/common/operation-singular-tag.d.ts +1 -2
- package/lib/rules/common/operation-singular-tag.js +5 -2
- package/lib/rules/common/operation-summary.d.ts +1 -2
- package/lib/rules/common/operation-summary.js +7 -4
- package/lib/rules/common/operation-tag-defined.d.ts +1 -2
- package/lib/rules/common/operation-tag-defined.js +5 -2
- package/lib/rules/common/parameter-description.d.ts +1 -2
- package/lib/rules/common/parameter-description.js +5 -2
- package/lib/rules/common/path-declaration-must-exist.d.ts +1 -2
- package/lib/rules/common/path-declaration-must-exist.js +5 -2
- package/lib/rules/common/path-excludes-patterns.d.ts +1 -2
- package/lib/rules/common/path-excludes-patterns.js +5 -2
- package/lib/rules/common/path-http-verbs-order.d.ts +1 -2
- package/lib/rules/common/path-http-verbs-order.js +5 -2
- package/lib/rules/common/path-not-include-query.d.ts +1 -2
- package/lib/rules/common/path-not-include-query.js +5 -2
- package/lib/rules/common/path-params-defined.d.ts +1 -2
- package/lib/rules/common/path-params-defined.js +5 -2
- package/lib/rules/common/path-segment-plural.d.ts +1 -2
- package/lib/rules/common/path-segment-plural.js +8 -5
- package/lib/rules/common/paths-kebab-case.d.ts +1 -2
- package/lib/rules/common/paths-kebab-case.js +5 -2
- package/lib/rules/common/required-string-property-missing-min-length.d.ts +1 -2
- package/lib/rules/common/required-string-property-missing-min-length.js +5 -2
- package/lib/rules/common/response-contains-header.d.ts +1 -2
- package/lib/rules/common/response-contains-header.js +8 -5
- package/lib/rules/common/scalar-property-missing-example.d.ts +1 -2
- package/lib/rules/common/scalar-property-missing-example.js +7 -4
- package/lib/rules/common/security-defined.d.ts +1 -2
- package/lib/rules/common/security-defined.js +5 -2
- package/lib/rules/common/spec-strict-refs.d.ts +1 -2
- package/lib/rules/common/spec-strict-refs.js +7 -4
- package/lib/rules/common/struct.d.ts +1 -2
- package/lib/rules/common/struct.js +21 -18
- package/lib/rules/common/tag-description.d.ts +1 -2
- package/lib/rules/common/tag-description.js +7 -4
- package/lib/rules/common/tags-alphabetical.d.ts +1 -2
- package/lib/rules/common/tags-alphabetical.js +5 -2
- package/lib/rules/no-unresolved-refs.d.ts +3 -4
- package/lib/rules/no-unresolved-refs.js +9 -5
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +1 -2
- package/lib/rules/oas2/boolean-parameter-prefixes.js +5 -2
- package/lib/rules/oas2/index.d.ts +1 -2
- package/lib/rules/oas2/index.js +97 -95
- package/lib/rules/oas2/request-mime-type.d.ts +1 -2
- package/lib/rules/oas2/request-mime-type.js +8 -5
- package/lib/rules/oas2/response-contains-property.d.ts +1 -2
- package/lib/rules/oas2/response-contains-property.js +8 -5
- package/lib/rules/oas2/response-mime-type.d.ts +1 -2
- package/lib/rules/oas2/response-mime-type.js +8 -5
- package/lib/rules/oas3/array-parameter-serialization.d.ts +1 -2
- package/lib/rules/oas3/array-parameter-serialization.js +7 -4
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +1 -2
- package/lib/rules/oas3/boolean-parameter-prefixes.js +5 -2
- package/lib/rules/oas3/component-name-unique.d.ts +1 -2
- package/lib/rules/oas3/component-name-unique.js +5 -2
- package/lib/rules/oas3/index.d.ts +1 -2
- package/lib/rules/oas3/index.js +121 -119
- package/lib/rules/oas3/no-empty-servers.d.ts +1 -2
- package/lib/rules/oas3/no-empty-servers.js +5 -2
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +1 -2
- package/lib/rules/oas3/no-example-value-and-externalValue.js +5 -2
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +1 -2
- package/lib/rules/oas3/no-invalid-media-type-examples.js +10 -7
- package/lib/rules/oas3/no-server-example.com.d.ts +1 -2
- package/lib/rules/oas3/no-server-example.com.js +5 -2
- package/lib/rules/oas3/no-server-trailing-slash.d.ts +1 -2
- package/lib/rules/oas3/no-server-trailing-slash.js +5 -2
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +1 -2
- package/lib/rules/oas3/no-server-variables-empty-enum.js +5 -2
- package/lib/rules/oas3/no-undefined-server-variable.d.ts +1 -2
- package/lib/rules/oas3/no-undefined-server-variable.js +5 -2
- package/lib/rules/oas3/no-unused-components.d.ts +1 -2
- package/lib/rules/oas3/no-unused-components.js +5 -2
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +1 -2
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +9 -6
- package/lib/rules/oas3/request-mime-type.d.ts +1 -2
- package/lib/rules/oas3/request-mime-type.js +9 -6
- package/lib/rules/oas3/response-contains-property.d.ts +1 -2
- package/lib/rules/oas3/response-contains-property.js +8 -5
- package/lib/rules/oas3/response-mime-type.d.ts +1 -2
- package/lib/rules/oas3/response-mime-type.js +9 -6
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +1 -2
- package/lib/rules/oas3/spec-components-invalid-map-name.js +5 -2
- package/lib/rules/other/stats.d.ts +3 -4
- package/lib/rules/other/stats.js +5 -2
- package/lib/rules/overlay1/index.d.ts +1 -2
- package/lib/rules/overlay1/index.js +11 -9
- package/lib/rules/respect/no-criteria-xpath.d.ts +1 -2
- package/lib/rules/respect/no-criteria-xpath.js +5 -2
- package/lib/rules/respect/respect-supported-versions.d.ts +1 -2
- package/lib/rules/respect/respect-supported-versions.js +10 -7
- package/lib/rules/utils.d.ts +3 -4
- package/lib/rules/utils.js +36 -23
- package/lib/types/arazzo.d.ts +1 -2
- package/lib/types/arazzo.js +23 -21
- package/lib/types/asyncapi2.d.ts +1 -2
- package/lib/types/asyncapi2.js +56 -54
- package/lib/types/asyncapi3.d.ts +1 -2
- package/lib/types/asyncapi3.js +43 -41
- package/lib/types/index.d.ts +0 -1
- package/lib/types/index.js +13 -7
- package/lib/types/json-schema-adapter.d.ts +1 -2
- package/lib/types/json-schema-adapter.js +17 -15
- package/lib/types/oas2.d.ts +2 -3
- package/lib/types/oas2.js +19 -17
- package/lib/types/oas3.d.ts +2 -3
- package/lib/types/oas3.js +41 -39
- package/lib/types/oas3_1.d.ts +2 -3
- package/lib/types/oas3_1.js +20 -18
- package/lib/types/overlay.d.ts +1 -2
- package/lib/types/overlay.js +6 -4
- package/lib/types/redocly-yaml.d.ts +3 -4
- package/lib/types/redocly-yaml.js +48 -31
- package/lib/typings/arazzo.d.ts +0 -1
- package/lib/typings/arazzo.js +5 -3
- package/lib/typings/asyncapi.d.ts +0 -1
- package/lib/typings/asyncapi.js +2 -2
- package/lib/typings/asyncapi3.d.ts +0 -1
- package/lib/typings/asyncapi3.js +2 -2
- package/lib/typings/common.d.ts +0 -1
- package/lib/typings/common.js +2 -2
- package/lib/typings/openapi.d.ts +0 -1
- package/lib/typings/openapi.js +2 -2
- package/lib/typings/overlay.d.ts +0 -1
- package/lib/typings/overlay.js +4 -2
- package/lib/typings/swagger.d.ts +1 -2
- package/lib/typings/swagger.js +2 -2
- package/lib/utils.d.ts +5 -4
- package/lib/utils.js +99 -52
- package/lib/visitors.d.ts +10 -11
- package/lib/visitors.js +6 -4
- package/lib/walk.d.ts +8 -9
- package/lib/walk.js +25 -23
- package/package.json +9 -30
- package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-many-rules.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-nested-rule.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-no-rules.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/lint-with-top-level-rule.bench.js.map +0 -1
- package/lib/benchmark/benches/recommended-oas3.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/recommended-oas3.bench.js.map +0 -1
- package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts.map +0 -1
- package/lib/benchmark/benches/resolve-with-no-external.bench.js.map +0 -1
- package/lib/benchmark/utils.d.ts.map +0 -1
- package/lib/benchmark/utils.js.map +0 -1
- package/lib/bundle.d.ts.map +0 -1
- package/lib/bundle.js.map +0 -1
- package/lib/config/all.d.ts.map +0 -1
- package/lib/config/all.js.map +0 -1
- package/lib/config/builtIn.d.ts.map +0 -1
- package/lib/config/builtIn.js.map +0 -1
- package/lib/config/config-resolvers.d.ts.map +0 -1
- package/lib/config/config-resolvers.js.map +0 -1
- package/lib/config/config.d.ts.map +0 -1
- package/lib/config/config.js.map +0 -1
- package/lib/config/index.d.ts.map +0 -1
- package/lib/config/index.js.map +0 -1
- package/lib/config/load.d.ts.map +0 -1
- package/lib/config/load.js.map +0 -1
- package/lib/config/minimal.d.ts.map +0 -1
- package/lib/config/minimal.js.map +0 -1
- package/lib/config/recommended-strict.d.ts.map +0 -1
- package/lib/config/recommended-strict.js.map +0 -1
- package/lib/config/recommended.d.ts.map +0 -1
- package/lib/config/recommended.js.map +0 -1
- package/lib/config/rules.d.ts.map +0 -1
- package/lib/config/rules.js.map +0 -1
- package/lib/config/spec.d.ts.map +0 -1
- package/lib/config/spec.js.map +0 -1
- package/lib/config/types.d.ts.map +0 -1
- package/lib/config/types.js.map +0 -1
- package/lib/config/utils.d.ts.map +0 -1
- package/lib/config/utils.js.map +0 -1
- package/lib/decorators/arazzo/index.d.ts.map +0 -1
- package/lib/decorators/arazzo/index.js.map +0 -1
- package/lib/decorators/async2/index.d.ts.map +0 -1
- package/lib/decorators/async2/index.js.map +0 -1
- package/lib/decorators/async3/index.d.ts.map +0 -1
- package/lib/decorators/async3/index.js.map +0 -1
- package/lib/decorators/common/filters/filter-helper.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-helper.js.map +0 -1
- package/lib/decorators/common/filters/filter-in.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-in.js.map +0 -1
- package/lib/decorators/common/filters/filter-out.d.ts.map +0 -1
- package/lib/decorators/common/filters/filter-out.js.map +0 -1
- package/lib/decorators/common/info-description-override.d.ts.map +0 -1
- package/lib/decorators/common/info-description-override.js.map +0 -1
- package/lib/decorators/common/info-override.d.ts.map +0 -1
- package/lib/decorators/common/info-override.js.map +0 -1
- package/lib/decorators/common/media-type-examples-override.d.ts.map +0 -1
- package/lib/decorators/common/media-type-examples-override.js.map +0 -1
- package/lib/decorators/common/operation-description-override.d.ts.map +0 -1
- package/lib/decorators/common/operation-description-override.js.map +0 -1
- package/lib/decorators/common/remove-x-internal.d.ts.map +0 -1
- package/lib/decorators/common/remove-x-internal.js.map +0 -1
- package/lib/decorators/common/tag-description-override.d.ts.map +0 -1
- package/lib/decorators/common/tag-description-override.js.map +0 -1
- package/lib/decorators/oas2/index.d.ts.map +0 -1
- package/lib/decorators/oas2/index.js.map +0 -1
- package/lib/decorators/oas2/remove-unused-components.d.ts.map +0 -1
- package/lib/decorators/oas2/remove-unused-components.js.map +0 -1
- package/lib/decorators/oas3/index.d.ts.map +0 -1
- package/lib/decorators/oas3/index.js.map +0 -1
- package/lib/decorators/oas3/remove-unused-components.d.ts.map +0 -1
- package/lib/decorators/oas3/remove-unused-components.js.map +0 -1
- package/lib/decorators/overlay1/index.d.ts.map +0 -1
- package/lib/decorators/overlay1/index.js.map +0 -1
- package/lib/env.d.ts.map +0 -1
- package/lib/env.js.map +0 -1
- package/lib/format/codeframes.d.ts.map +0 -1
- package/lib/format/codeframes.js.map +0 -1
- package/lib/format/format.d.ts.map +0 -1
- package/lib/format/format.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/js-yaml/index.d.ts.map +0 -1
- package/lib/js-yaml/index.js.map +0 -1
- package/lib/lint.d.ts.map +0 -1
- package/lib/lint.js.map +0 -1
- package/lib/logger.d.ts.map +0 -1
- package/lib/logger.js.map +0 -1
- package/lib/oas-types.d.ts.map +0 -1
- package/lib/oas-types.js.map +0 -1
- package/lib/ref-utils.d.ts.map +0 -1
- package/lib/ref-utils.js.map +0 -1
- package/lib/resolve.d.ts.map +0 -1
- package/lib/resolve.js.map +0 -1
- package/lib/rules/ajv.d.ts.map +0 -1
- package/lib/rules/ajv.js.map +0 -1
- package/lib/rules/arazzo/criteria-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/criteria-unique.js.map +0 -1
- package/lib/rules/arazzo/index.d.ts.map +0 -1
- package/lib/rules/arazzo/index.js.map +0 -1
- package/lib/rules/arazzo/parameters-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/parameters-unique.js.map +0 -1
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/requestBody-replacements-unique.js.map +0 -1
- package/lib/rules/arazzo/sourceDescription-type.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescription-type.js.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +0 -1
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +0 -1
- package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/step-onFailure-unique.js.map +0 -1
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/step-onSuccess-unique.js.map +0 -1
- package/lib/rules/arazzo/stepId-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/stepId-unique.js.map +0 -1
- package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +0 -1
- package/lib/rules/arazzo/workflow-dependsOn.js.map +0 -1
- package/lib/rules/arazzo/workflowId-unique.d.ts.map +0 -1
- package/lib/rules/arazzo/workflowId-unique.js.map +0 -1
- package/lib/rules/async2/channels-kebab-case.d.ts.map +0 -1
- package/lib/rules/async2/channels-kebab-case.js.map +0 -1
- package/lib/rules/async2/index.d.ts.map +0 -1
- package/lib/rules/async2/index.js.map +0 -1
- package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +0 -1
- package/lib/rules/async2/no-channel-trailing-slash.js.map +0 -1
- package/lib/rules/async3/channels-kebab-case.d.ts.map +0 -1
- package/lib/rules/async3/channels-kebab-case.js.map +0 -1
- package/lib/rules/async3/index.d.ts.map +0 -1
- package/lib/rules/async3/index.js.map +0 -1
- package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +0 -1
- package/lib/rules/async3/no-channel-trailing-slash.js.map +0 -1
- package/lib/rules/common/assertions/asserts.d.ts.map +0 -1
- package/lib/rules/common/assertions/asserts.js.map +0 -1
- package/lib/rules/common/assertions/index.d.ts.map +0 -1
- package/lib/rules/common/assertions/index.js.map +0 -1
- package/lib/rules/common/assertions/utils.d.ts.map +0 -1
- package/lib/rules/common/assertions/utils.js.map +0 -1
- package/lib/rules/common/info-contact.d.ts.map +0 -1
- package/lib/rules/common/info-contact.js.map +0 -1
- package/lib/rules/common/info-license-strict.d.ts.map +0 -1
- package/lib/rules/common/info-license-strict.js.map +0 -1
- package/lib/rules/common/info-license-url.d.ts.map +0 -1
- package/lib/rules/common/info-license-url.js.map +0 -1
- package/lib/rules/common/info-license.d.ts.map +0 -1
- package/lib/rules/common/info-license.js.map +0 -1
- package/lib/rules/common/no-ambiguous-paths.d.ts.map +0 -1
- package/lib/rules/common/no-ambiguous-paths.js.map +0 -1
- package/lib/rules/common/no-enum-type-mismatch.d.ts.map +0 -1
- package/lib/rules/common/no-enum-type-mismatch.js.map +0 -1
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +0 -1
- package/lib/rules/common/no-http-verbs-in-paths.js.map +0 -1
- package/lib/rules/common/no-identical-paths.d.ts.map +0 -1
- package/lib/rules/common/no-identical-paths.js.map +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +0 -1
- package/lib/rules/common/no-invalid-parameter-examples.js.map +0 -1
- package/lib/rules/common/no-invalid-schema-examples.d.ts.map +0 -1
- package/lib/rules/common/no-invalid-schema-examples.js.map +0 -1
- package/lib/rules/common/no-path-trailing-slash.d.ts.map +0 -1
- package/lib/rules/common/no-path-trailing-slash.js.map +0 -1
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +0 -1
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +0 -1
- package/lib/rules/common/no-schema-type-mismatch.d.ts.map +0 -1
- package/lib/rules/common/no-schema-type-mismatch.js.map +0 -1
- package/lib/rules/common/operation-2xx-response.d.ts.map +0 -1
- package/lib/rules/common/operation-2xx-response.js.map +0 -1
- package/lib/rules/common/operation-4xx-response.d.ts.map +0 -1
- package/lib/rules/common/operation-4xx-response.js.map +0 -1
- package/lib/rules/common/operation-description.d.ts.map +0 -1
- package/lib/rules/common/operation-description.js.map +0 -1
- package/lib/rules/common/operation-operationId-unique.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId-unique.js.map +0 -1
- package/lib/rules/common/operation-operationId-url-safe.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId-url-safe.js.map +0 -1
- package/lib/rules/common/operation-operationId.d.ts.map +0 -1
- package/lib/rules/common/operation-operationId.js.map +0 -1
- package/lib/rules/common/operation-parameters-unique.d.ts.map +0 -1
- package/lib/rules/common/operation-parameters-unique.js.map +0 -1
- package/lib/rules/common/operation-singular-tag.d.ts.map +0 -1
- package/lib/rules/common/operation-singular-tag.js.map +0 -1
- package/lib/rules/common/operation-summary.d.ts.map +0 -1
- package/lib/rules/common/operation-summary.js.map +0 -1
- package/lib/rules/common/operation-tag-defined.d.ts.map +0 -1
- package/lib/rules/common/operation-tag-defined.js.map +0 -1
- package/lib/rules/common/parameter-description.d.ts.map +0 -1
- package/lib/rules/common/parameter-description.js.map +0 -1
- package/lib/rules/common/path-declaration-must-exist.d.ts.map +0 -1
- package/lib/rules/common/path-declaration-must-exist.js.map +0 -1
- package/lib/rules/common/path-excludes-patterns.d.ts.map +0 -1
- package/lib/rules/common/path-excludes-patterns.js.map +0 -1
- package/lib/rules/common/path-http-verbs-order.d.ts.map +0 -1
- package/lib/rules/common/path-http-verbs-order.js.map +0 -1
- package/lib/rules/common/path-not-include-query.d.ts.map +0 -1
- package/lib/rules/common/path-not-include-query.js.map +0 -1
- package/lib/rules/common/path-params-defined.d.ts.map +0 -1
- package/lib/rules/common/path-params-defined.js.map +0 -1
- package/lib/rules/common/path-segment-plural.d.ts.map +0 -1
- package/lib/rules/common/path-segment-plural.js.map +0 -1
- package/lib/rules/common/paths-kebab-case.d.ts.map +0 -1
- package/lib/rules/common/paths-kebab-case.js.map +0 -1
- package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +0 -1
- package/lib/rules/common/required-string-property-missing-min-length.js.map +0 -1
- package/lib/rules/common/response-contains-header.d.ts.map +0 -1
- package/lib/rules/common/response-contains-header.js.map +0 -1
- package/lib/rules/common/scalar-property-missing-example.d.ts.map +0 -1
- package/lib/rules/common/scalar-property-missing-example.js.map +0 -1
- package/lib/rules/common/security-defined.d.ts.map +0 -1
- package/lib/rules/common/security-defined.js.map +0 -1
- package/lib/rules/common/spec-strict-refs.d.ts.map +0 -1
- package/lib/rules/common/spec-strict-refs.js.map +0 -1
- package/lib/rules/common/struct.d.ts.map +0 -1
- package/lib/rules/common/struct.js.map +0 -1
- package/lib/rules/common/tag-description.d.ts.map +0 -1
- package/lib/rules/common/tag-description.js.map +0 -1
- package/lib/rules/common/tags-alphabetical.d.ts.map +0 -1
- package/lib/rules/common/tags-alphabetical.js.map +0 -1
- package/lib/rules/no-unresolved-refs.d.ts.map +0 -1
- package/lib/rules/no-unresolved-refs.js.map +0 -1
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +0 -1
- package/lib/rules/oas2/boolean-parameter-prefixes.js.map +0 -1
- package/lib/rules/oas2/index.d.ts.map +0 -1
- package/lib/rules/oas2/index.js.map +0 -1
- package/lib/rules/oas2/request-mime-type.d.ts.map +0 -1
- package/lib/rules/oas2/request-mime-type.js.map +0 -1
- package/lib/rules/oas2/response-contains-property.d.ts.map +0 -1
- package/lib/rules/oas2/response-contains-property.js.map +0 -1
- package/lib/rules/oas2/response-mime-type.d.ts.map +0 -1
- package/lib/rules/oas2/response-mime-type.js.map +0 -1
- package/lib/rules/oas3/array-parameter-serialization.d.ts.map +0 -1
- package/lib/rules/oas3/array-parameter-serialization.js.map +0 -1
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +0 -1
- package/lib/rules/oas3/boolean-parameter-prefixes.js.map +0 -1
- package/lib/rules/oas3/component-name-unique.d.ts.map +0 -1
- package/lib/rules/oas3/component-name-unique.js.map +0 -1
- package/lib/rules/oas3/index.d.ts.map +0 -1
- package/lib/rules/oas3/index.js.map +0 -1
- package/lib/rules/oas3/no-empty-servers.d.ts.map +0 -1
- package/lib/rules/oas3/no-empty-servers.js.map +0 -1
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +0 -1
- package/lib/rules/oas3/no-example-value-and-externalValue.js.map +0 -1
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +0 -1
- package/lib/rules/oas3/no-invalid-media-type-examples.js.map +0 -1
- package/lib/rules/oas3/no-server-example.com.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-example.com.js.map +0 -1
- package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-trailing-slash.js.map +0 -1
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +0 -1
- package/lib/rules/oas3/no-server-variables-empty-enum.js.map +0 -1
- package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +0 -1
- package/lib/rules/oas3/no-undefined-server-variable.js.map +0 -1
- package/lib/rules/oas3/no-unused-components.d.ts.map +0 -1
- package/lib/rules/oas3/no-unused-components.js.map +0 -1
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +0 -1
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +0 -1
- package/lib/rules/oas3/request-mime-type.d.ts.map +0 -1
- package/lib/rules/oas3/request-mime-type.js.map +0 -1
- package/lib/rules/oas3/response-contains-property.d.ts.map +0 -1
- package/lib/rules/oas3/response-contains-property.js.map +0 -1
- package/lib/rules/oas3/response-mime-type.d.ts.map +0 -1
- package/lib/rules/oas3/response-mime-type.js.map +0 -1
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +0 -1
- package/lib/rules/oas3/spec-components-invalid-map-name.js.map +0 -1
- package/lib/rules/other/stats.d.ts.map +0 -1
- package/lib/rules/other/stats.js.map +0 -1
- package/lib/rules/overlay1/index.d.ts.map +0 -1
- package/lib/rules/overlay1/index.js.map +0 -1
- package/lib/rules/respect/no-criteria-xpath.d.ts.map +0 -1
- package/lib/rules/respect/no-criteria-xpath.js.map +0 -1
- package/lib/rules/respect/respect-supported-versions.d.ts.map +0 -1
- package/lib/rules/respect/respect-supported-versions.js.map +0 -1
- package/lib/rules/utils.d.ts.map +0 -1
- package/lib/rules/utils.js.map +0 -1
- package/lib/types/arazzo.d.ts.map +0 -1
- package/lib/types/arazzo.js.map +0 -1
- package/lib/types/asyncapi2.d.ts.map +0 -1
- package/lib/types/asyncapi2.js.map +0 -1
- package/lib/types/asyncapi3.d.ts.map +0 -1
- package/lib/types/asyncapi3.js.map +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/index.js.map +0 -1
- package/lib/types/json-schema-adapter.d.ts.map +0 -1
- package/lib/types/json-schema-adapter.js.map +0 -1
- package/lib/types/oas2.d.ts.map +0 -1
- package/lib/types/oas2.js.map +0 -1
- package/lib/types/oas3.d.ts.map +0 -1
- package/lib/types/oas3.js.map +0 -1
- package/lib/types/oas3_1.d.ts.map +0 -1
- package/lib/types/oas3_1.js.map +0 -1
- package/lib/types/overlay.d.ts.map +0 -1
- package/lib/types/overlay.js.map +0 -1
- package/lib/types/redocly-yaml.d.ts.map +0 -1
- package/lib/types/redocly-yaml.js.map +0 -1
- package/lib/typings/arazzo.d.ts.map +0 -1
- package/lib/typings/arazzo.js.map +0 -1
- package/lib/typings/asyncapi.d.ts.map +0 -1
- package/lib/typings/asyncapi.js.map +0 -1
- package/lib/typings/asyncapi3.d.ts.map +0 -1
- package/lib/typings/asyncapi3.js.map +0 -1
- package/lib/typings/common.d.ts.map +0 -1
- package/lib/typings/common.js.map +0 -1
- package/lib/typings/openapi.d.ts.map +0 -1
- package/lib/typings/openapi.js.map +0 -1
- package/lib/typings/overlay.d.ts.map +0 -1
- package/lib/typings/overlay.js.map +0 -1
- package/lib/typings/swagger.d.ts.map +0 -1
- package/lib/typings/swagger.js.map +0 -1
- package/lib/utils/error.d.ts +0 -3
- package/lib/utils/error.d.ts.map +0 -1
- package/lib/utils/error.js +0 -3
- package/lib/utils/error.js.map +0 -1
- package/lib/utils.d.ts.map +0 -1
- package/lib/utils.js.map +0 -1
- package/lib/visitors.d.ts.map +0 -1
- package/lib/visitors.js.map +0 -1
- package/lib/walk.d.ts.map +0 -1
- package/lib/walk.js.map +0 -1
package/lib/types/oas3.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Oas3Types = exports.Discriminator = exports.DiscriminatorMapping = exports.Xml = exports.ExternalDocs = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
const ref_utils_1 = require("../ref-utils");
|
|
3
6
|
const responseCodeRegexp = /^[0-9][0-9Xx]{2}$/;
|
|
4
7
|
const Root = {
|
|
5
8
|
properties: {
|
|
@@ -36,7 +39,7 @@ const TagGroup = {
|
|
|
36
39
|
},
|
|
37
40
|
extensionsPrefix: 'x-',
|
|
38
41
|
};
|
|
39
|
-
|
|
42
|
+
exports.ExternalDocs = {
|
|
40
43
|
properties: {
|
|
41
44
|
description: { type: 'string' },
|
|
42
45
|
url: { type: 'string' },
|
|
@@ -300,14 +303,14 @@ const Schema = {
|
|
|
300
303
|
type: {
|
|
301
304
|
enum: ['object', 'array', 'string', 'number', 'integer', 'boolean'],
|
|
302
305
|
},
|
|
303
|
-
allOf: listOf('Schema'),
|
|
304
|
-
anyOf: listOf('Schema'),
|
|
305
|
-
oneOf: listOf('Schema'),
|
|
306
|
+
allOf: (0, _1.listOf)('Schema'),
|
|
307
|
+
anyOf: (0, _1.listOf)('Schema'),
|
|
308
|
+
oneOf: (0, _1.listOf)('Schema'),
|
|
306
309
|
not: 'Schema',
|
|
307
310
|
properties: 'SchemaProperties',
|
|
308
311
|
items: (value) => {
|
|
309
312
|
if (Array.isArray(value)) {
|
|
310
|
-
return listOf('Schema');
|
|
313
|
+
return (0, _1.listOf)('Schema');
|
|
311
314
|
}
|
|
312
315
|
else {
|
|
313
316
|
return 'Schema';
|
|
@@ -336,7 +339,7 @@ const Schema = {
|
|
|
336
339
|
},
|
|
337
340
|
extensionsPrefix: 'x-',
|
|
338
341
|
};
|
|
339
|
-
|
|
342
|
+
exports.Xml = {
|
|
340
343
|
properties: {
|
|
341
344
|
name: { type: 'string' },
|
|
342
345
|
namespace: { type: 'string' },
|
|
@@ -350,10 +353,10 @@ const SchemaProperties = {
|
|
|
350
353
|
properties: {},
|
|
351
354
|
additionalProperties: 'Schema',
|
|
352
355
|
};
|
|
353
|
-
|
|
356
|
+
exports.DiscriminatorMapping = {
|
|
354
357
|
properties: {},
|
|
355
358
|
additionalProperties: (value) => {
|
|
356
|
-
if (isMappingRef(value)) {
|
|
359
|
+
if ((0, ref_utils_1.isMappingRef)(value)) {
|
|
357
360
|
return { type: 'string', directResolveAs: 'Schema' };
|
|
358
361
|
}
|
|
359
362
|
else {
|
|
@@ -361,7 +364,7 @@ export const DiscriminatorMapping = {
|
|
|
361
364
|
}
|
|
362
365
|
},
|
|
363
366
|
};
|
|
364
|
-
|
|
367
|
+
exports.Discriminator = {
|
|
365
368
|
properties: {
|
|
366
369
|
propertyName: { type: 'string' },
|
|
367
370
|
mapping: 'DiscriminatorMapping',
|
|
@@ -485,59 +488,59 @@ const XUsePkce = {
|
|
|
485
488
|
hideClientSecretInput: { type: 'boolean' },
|
|
486
489
|
},
|
|
487
490
|
};
|
|
488
|
-
|
|
491
|
+
exports.Oas3Types = {
|
|
489
492
|
Root,
|
|
490
493
|
Tag,
|
|
491
|
-
TagList: listOf('Tag'),
|
|
492
|
-
TagGroups: listOf('TagGroup'),
|
|
494
|
+
TagList: (0, _1.listOf)('Tag'),
|
|
495
|
+
TagGroups: (0, _1.listOf)('TagGroup'),
|
|
493
496
|
TagGroup,
|
|
494
|
-
ExternalDocs,
|
|
497
|
+
ExternalDocs: exports.ExternalDocs,
|
|
495
498
|
Server,
|
|
496
|
-
ServerList: listOf('Server'),
|
|
499
|
+
ServerList: (0, _1.listOf)('Server'),
|
|
497
500
|
ServerVariable,
|
|
498
|
-
ServerVariablesMap: mapOf('ServerVariable'),
|
|
501
|
+
ServerVariablesMap: (0, _1.mapOf)('ServerVariable'),
|
|
499
502
|
SecurityRequirement,
|
|
500
|
-
SecurityRequirementList: listOf('SecurityRequirement'),
|
|
503
|
+
SecurityRequirementList: (0, _1.listOf)('SecurityRequirement'),
|
|
501
504
|
Info,
|
|
502
505
|
Contact,
|
|
503
506
|
License,
|
|
504
507
|
Paths,
|
|
505
508
|
PathItem,
|
|
506
509
|
Parameter,
|
|
507
|
-
ParameterList: listOf('Parameter'),
|
|
510
|
+
ParameterList: (0, _1.listOf)('Parameter'),
|
|
508
511
|
Operation,
|
|
509
|
-
Callback: mapOf('PathItem'),
|
|
510
|
-
CallbacksMap: mapOf('Callback'),
|
|
512
|
+
Callback: (0, _1.mapOf)('PathItem'),
|
|
513
|
+
CallbacksMap: (0, _1.mapOf)('Callback'),
|
|
511
514
|
RequestBody,
|
|
512
515
|
MediaTypesMap,
|
|
513
516
|
MediaType,
|
|
514
517
|
Example,
|
|
515
|
-
ExamplesMap: mapOf('Example'),
|
|
518
|
+
ExamplesMap: (0, _1.mapOf)('Example'),
|
|
516
519
|
Encoding,
|
|
517
|
-
EncodingMap: mapOf('Encoding'),
|
|
520
|
+
EncodingMap: (0, _1.mapOf)('Encoding'),
|
|
518
521
|
EnumDescriptions,
|
|
519
522
|
Header,
|
|
520
|
-
HeadersMap: mapOf('Header'),
|
|
523
|
+
HeadersMap: (0, _1.mapOf)('Header'),
|
|
521
524
|
Responses,
|
|
522
525
|
Response,
|
|
523
526
|
Link,
|
|
524
527
|
Logo,
|
|
525
528
|
Schema,
|
|
526
|
-
Xml,
|
|
529
|
+
Xml: exports.Xml,
|
|
527
530
|
SchemaProperties,
|
|
528
|
-
DiscriminatorMapping,
|
|
529
|
-
Discriminator,
|
|
531
|
+
DiscriminatorMapping: exports.DiscriminatorMapping,
|
|
532
|
+
Discriminator: exports.Discriminator,
|
|
530
533
|
Components,
|
|
531
|
-
LinksMap: mapOf('Link'),
|
|
532
|
-
NamedSchemas: mapOf('Schema'),
|
|
533
|
-
NamedResponses: mapOf('Response'),
|
|
534
|
-
NamedParameters: mapOf('Parameter'),
|
|
535
|
-
NamedExamples: mapOf('Example'),
|
|
536
|
-
NamedRequestBodies: mapOf('RequestBody'),
|
|
537
|
-
NamedHeaders: mapOf('Header'),
|
|
538
|
-
NamedSecuritySchemes: mapOf('SecurityScheme'),
|
|
539
|
-
NamedLinks: mapOf('Link'),
|
|
540
|
-
NamedCallbacks: mapOf('Callback'),
|
|
534
|
+
LinksMap: (0, _1.mapOf)('Link'),
|
|
535
|
+
NamedSchemas: (0, _1.mapOf)('Schema'),
|
|
536
|
+
NamedResponses: (0, _1.mapOf)('Response'),
|
|
537
|
+
NamedParameters: (0, _1.mapOf)('Parameter'),
|
|
538
|
+
NamedExamples: (0, _1.mapOf)('Example'),
|
|
539
|
+
NamedRequestBodies: (0, _1.mapOf)('RequestBody'),
|
|
540
|
+
NamedHeaders: (0, _1.mapOf)('Header'),
|
|
541
|
+
NamedSecuritySchemes: (0, _1.mapOf)('SecurityScheme'),
|
|
542
|
+
NamedLinks: (0, _1.mapOf)('Link'),
|
|
543
|
+
NamedCallbacks: (0, _1.mapOf)('Callback'),
|
|
541
544
|
ImplicitFlow,
|
|
542
545
|
PasswordFlow,
|
|
543
546
|
ClientCredentials,
|
|
@@ -545,8 +548,7 @@ export const Oas3Types = {
|
|
|
545
548
|
OAuth2Flows,
|
|
546
549
|
SecurityScheme,
|
|
547
550
|
XCodeSample,
|
|
548
|
-
XCodeSampleList: listOf('XCodeSample'),
|
|
551
|
+
XCodeSampleList: (0, _1.listOf)('XCodeSample'),
|
|
549
552
|
XUsePkce,
|
|
550
553
|
WebhooksMap,
|
|
551
554
|
};
|
|
552
|
-
//# sourceMappingURL=oas3.js.map
|
package/lib/types/oas3_1.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { NodeType } from '
|
|
2
|
-
import type { Oas3_1NodeType } from './redocly-yaml
|
|
1
|
+
import type { NodeType } from '.';
|
|
2
|
+
import type { Oas3_1NodeType } from './redocly-yaml';
|
|
3
3
|
export declare const Schema: NodeType;
|
|
4
4
|
export declare const SchemaProperties: NodeType;
|
|
5
5
|
export declare const DependentRequired: NodeType;
|
|
6
6
|
export declare const Oas3_1Types: Record<Oas3_1NodeType, NodeType>;
|
|
7
|
-
//# sourceMappingURL=oas3_1.d.ts.map
|
package/lib/types/oas3_1.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Oas3_1Types = exports.DependentRequired = exports.SchemaProperties = exports.Schema = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
5
|
+
const oas3_1 = require("./oas3");
|
|
3
6
|
const Root = {
|
|
4
7
|
properties: {
|
|
5
8
|
openapi: null,
|
|
@@ -78,7 +81,7 @@ const Operation = {
|
|
|
78
81
|
},
|
|
79
82
|
extensionsPrefix: 'x-',
|
|
80
83
|
};
|
|
81
|
-
|
|
84
|
+
exports.Schema = {
|
|
82
85
|
properties: {
|
|
83
86
|
$id: { type: 'string' },
|
|
84
87
|
$anchor: { type: 'string' },
|
|
@@ -118,16 +121,16 @@ export const Schema = {
|
|
|
118
121
|
};
|
|
119
122
|
}
|
|
120
123
|
},
|
|
121
|
-
allOf: listOf('Schema'),
|
|
122
|
-
anyOf: listOf('Schema'),
|
|
123
|
-
oneOf: listOf('Schema'),
|
|
124
|
+
allOf: (0, _1.listOf)('Schema'),
|
|
125
|
+
anyOf: (0, _1.listOf)('Schema'),
|
|
126
|
+
oneOf: (0, _1.listOf)('Schema'),
|
|
124
127
|
not: 'Schema',
|
|
125
128
|
if: 'Schema',
|
|
126
129
|
then: 'Schema',
|
|
127
130
|
else: 'Schema',
|
|
128
|
-
dependentSchemas: mapOf('Schema'),
|
|
131
|
+
dependentSchemas: (0, _1.mapOf)('Schema'),
|
|
129
132
|
dependentRequired: 'DependentRequired',
|
|
130
|
-
prefixItems: listOf('Schema'),
|
|
133
|
+
prefixItems: (0, _1.listOf)('Schema'),
|
|
131
134
|
contains: 'Schema',
|
|
132
135
|
minContains: { type: 'integer', minimum: 0 },
|
|
133
136
|
maxContains: { type: 'integer', minimum: 0 },
|
|
@@ -182,7 +185,7 @@ export const Schema = {
|
|
|
182
185
|
},
|
|
183
186
|
extensionsPrefix: 'x-',
|
|
184
187
|
};
|
|
185
|
-
|
|
188
|
+
exports.SchemaProperties = {
|
|
186
189
|
properties: {},
|
|
187
190
|
additionalProperties: (value) => {
|
|
188
191
|
if (typeof value === 'boolean') {
|
|
@@ -262,22 +265,21 @@ const SecurityScheme = {
|
|
|
262
265
|
},
|
|
263
266
|
extensionsPrefix: 'x-',
|
|
264
267
|
};
|
|
265
|
-
|
|
268
|
+
exports.DependentRequired = {
|
|
266
269
|
properties: {},
|
|
267
270
|
additionalProperties: { type: 'array', items: { type: 'string' } },
|
|
268
271
|
};
|
|
269
|
-
|
|
270
|
-
...Oas3Types,
|
|
272
|
+
exports.Oas3_1Types = {
|
|
273
|
+
...oas3_1.Oas3Types,
|
|
271
274
|
Info,
|
|
272
275
|
Root,
|
|
273
|
-
Schema,
|
|
274
|
-
SchemaProperties,
|
|
275
|
-
PatternProperties: SchemaProperties,
|
|
276
|
+
Schema: exports.Schema,
|
|
277
|
+
SchemaProperties: exports.SchemaProperties,
|
|
278
|
+
PatternProperties: exports.SchemaProperties,
|
|
276
279
|
License,
|
|
277
280
|
Components,
|
|
278
|
-
NamedPathItems: mapOf('PathItem'),
|
|
281
|
+
NamedPathItems: (0, _1.mapOf)('PathItem'),
|
|
279
282
|
SecurityScheme,
|
|
280
283
|
Operation,
|
|
281
|
-
DependentRequired,
|
|
284
|
+
DependentRequired: exports.DependentRequired,
|
|
282
285
|
};
|
|
283
|
-
//# sourceMappingURL=oas3_1.js.map
|
package/lib/types/overlay.d.ts
CHANGED
package/lib/types/overlay.js
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Overlay1Types = void 0;
|
|
4
|
+
const _1 = require(".");
|
|
2
5
|
const Root = {
|
|
3
6
|
properties: {
|
|
4
7
|
overlay: { type: 'string' },
|
|
@@ -17,7 +20,7 @@ const Info = {
|
|
|
17
20
|
required: ['title', 'version'],
|
|
18
21
|
extensionsPrefix: 'x-',
|
|
19
22
|
};
|
|
20
|
-
const Actions = listOf('Action');
|
|
23
|
+
const Actions = (0, _1.listOf)('Action');
|
|
21
24
|
const Action = {
|
|
22
25
|
properties: {
|
|
23
26
|
target: { type: 'string' },
|
|
@@ -28,10 +31,9 @@ const Action = {
|
|
|
28
31
|
required: ['target'],
|
|
29
32
|
extensionsPrefix: 'x-',
|
|
30
33
|
};
|
|
31
|
-
|
|
34
|
+
exports.Overlay1Types = {
|
|
32
35
|
Root,
|
|
33
36
|
Info,
|
|
34
37
|
Actions,
|
|
35
38
|
Action,
|
|
36
39
|
};
|
|
37
|
-
//# sourceMappingURL=overlay.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { JSONSchema } from 'json-schema-to-ts';
|
|
2
|
-
import type { NodeType } from '
|
|
3
|
-
import type { Config } from '../config
|
|
2
|
+
import type { NodeType } from '.';
|
|
3
|
+
import type { Config } from '../config';
|
|
4
4
|
declare const builtInOAS2Rules: readonly ["info-contact", "operation-operationId", "tag-description", "tags-alphabetical", "info-license-url", "info-license-strict", "info-license", "no-ambiguous-paths", "no-enum-type-mismatch", "no-http-verbs-in-paths", "no-identical-paths", "no-invalid-parameter-examples", "no-invalid-schema-examples", "no-path-trailing-slash", "operation-2xx-response", "operation-4xx-response", "operation-description", "operation-operationId-unique", "operation-operationId-url-safe", "operation-parameters-unique", "operation-singular-tag", "operation-summary", "operation-tag-defined", "parameter-description", "path-declaration-must-exist", "path-excludes-patterns", "path-http-verbs-order", "path-not-include-query", "path-params-defined", "path-parameters-defined", "path-segment-plural", "paths-kebab-case", "required-string-property-missing-min-length", "response-contains-header", "scalar-property-missing-example", "security-defined", "spec-strict-refs", "no-unresolved-refs", "no-required-schema-properties-undefined", "no-schema-type-mismatch", "boolean-parameter-prefixes", "request-mime-type", "response-contains-property", "response-mime-type"];
|
|
5
5
|
export type BuiltInOAS2RuleId = typeof builtInOAS2Rules[number];
|
|
6
6
|
declare const builtInOAS3Rules: readonly ["info-contact", "operation-operationId", "tag-description", "tags-alphabetical", "info-license-url", "info-license-strict", "info-license", "no-ambiguous-paths", "no-enum-type-mismatch", "no-http-verbs-in-paths", "no-identical-paths", "no-invalid-parameter-examples", "no-invalid-schema-examples", "no-path-trailing-slash", "operation-2xx-response", "operation-4xx-response", "operation-description", "operation-operationId-unique", "operation-operationId-url-safe", "operation-parameters-unique", "operation-singular-tag", "operation-summary", "operation-tag-defined", "parameter-description", "path-declaration-must-exist", "path-excludes-patterns", "path-http-verbs-order", "path-not-include-query", "path-params-defined", "path-parameters-defined", "path-segment-plural", "paths-kebab-case", "required-string-property-missing-min-length", "response-contains-header", "scalar-property-missing-example", "security-defined", "spec-strict-refs", "no-unresolved-refs", "no-required-schema-properties-undefined", "no-schema-type-mismatch", "boolean-parameter-prefixes", "component-name-unique", "no-empty-servers", "no-example-value-and-externalValue", "no-invalid-media-type-examples", "no-server-example.com", "no-server-trailing-slash", "no-server-variables-empty-enum", "no-undefined-server-variable", "no-unused-components", "operation-4xx-problem-details-rfc7807", "request-mime-type", "response-contains-property", "response-mime-type", "spec-components-invalid-map-name", "array-parameter-serialization"];
|
|
@@ -25,6 +25,5 @@ export declare function createConfigTypes(extraSchemas: JSONSchema, config?: Con
|
|
|
25
25
|
AssertionDefinitionSubject: NodeType;
|
|
26
26
|
};
|
|
27
27
|
export declare const ConfigTypes: Record<string, NodeType>;
|
|
28
|
-
export declare const NormalizedConfigTypes: Record<string, import("
|
|
28
|
+
export declare const NormalizedConfigTypes: Record<string, import(".").NormalizedNodeType>;
|
|
29
29
|
export {};
|
|
30
|
-
//# sourceMappingURL=redocly-yaml.d.ts.map
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizedConfigTypes = exports.ConfigTypes = void 0;
|
|
4
|
+
exports.createConfigTypes = createConfigTypes;
|
|
5
|
+
const config_1 = require("@redocly/config");
|
|
6
|
+
const _1 = require(".");
|
|
7
|
+
const oas_types_1 = require("../oas-types");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const json_schema_adapter_1 = require("./json-schema-adapter");
|
|
10
|
+
const types_1 = require("../types");
|
|
7
11
|
const builtInOAS2Rules = [
|
|
8
12
|
'info-contact',
|
|
9
13
|
'operation-operationId',
|
|
@@ -304,6 +308,8 @@ const createConfigRoot = (nodeTypes) => ({
|
|
|
304
308
|
apis: 'ConfigApis', // Override apis with internal format
|
|
305
309
|
'features.openapi': 'ConfigReferenceDocs', // deprecated
|
|
306
310
|
'features.mockServer': 'ConfigMockServer', // deprecated
|
|
311
|
+
organization: { type: 'string' },
|
|
312
|
+
region: { enum: ['us', 'eu'] },
|
|
307
313
|
telemetry: { enum: ['on', 'off'] },
|
|
308
314
|
resolve: {
|
|
309
315
|
properties: {
|
|
@@ -311,6 +317,12 @@ const createConfigRoot = (nodeTypes) => ({
|
|
|
311
317
|
doNotResolveExamples: { type: 'boolean' },
|
|
312
318
|
},
|
|
313
319
|
},
|
|
320
|
+
files: {
|
|
321
|
+
type: 'array',
|
|
322
|
+
items: {
|
|
323
|
+
type: 'string',
|
|
324
|
+
},
|
|
325
|
+
},
|
|
314
326
|
},
|
|
315
327
|
});
|
|
316
328
|
const ConfigApis = {
|
|
@@ -330,6 +342,12 @@ const createConfigApisProperties = (nodeTypes) => ({
|
|
|
330
342
|
...ConfigStyleguide.properties,
|
|
331
343
|
'features.openapi': 'ConfigReferenceDocs', // deprecated
|
|
332
344
|
'features.mockServer': 'ConfigMockServer', // deprecated
|
|
345
|
+
files: {
|
|
346
|
+
type: 'array',
|
|
347
|
+
items: {
|
|
348
|
+
type: 'string',
|
|
349
|
+
},
|
|
350
|
+
},
|
|
333
351
|
},
|
|
334
352
|
});
|
|
335
353
|
const ConfigHTTP = {
|
|
@@ -362,7 +380,7 @@ const Rules = {
|
|
|
362
380
|
return 'Assert';
|
|
363
381
|
}
|
|
364
382
|
}
|
|
365
|
-
else if (builtInRules.includes(key) || isCustomRuleId(key)) {
|
|
383
|
+
else if (builtInRules.includes(key) || (0, utils_1.isCustomRuleId)(key)) {
|
|
366
384
|
if (typeof value === 'string') {
|
|
367
385
|
return { enum: ['error', 'warn', 'off'] };
|
|
368
386
|
}
|
|
@@ -457,7 +475,7 @@ const AssertionDefinitionAssertions = {
|
|
|
457
475
|
},
|
|
458
476
|
additionalProperties: (_value, key) => {
|
|
459
477
|
if (/^\w+\/\w+$/.test(key))
|
|
460
|
-
return {};
|
|
478
|
+
return { type: 'object' };
|
|
461
479
|
return;
|
|
462
480
|
},
|
|
463
481
|
};
|
|
@@ -472,7 +490,7 @@ const Assert = {
|
|
|
472
490
|
properties: {
|
|
473
491
|
subject: 'AssertionDefinitionSubject',
|
|
474
492
|
assertions: 'AssertionDefinitionAssertions',
|
|
475
|
-
where: listOf('AssertDefinition'),
|
|
493
|
+
where: (0, _1.listOf)('AssertDefinition'),
|
|
476
494
|
message: { type: 'string' },
|
|
477
495
|
suggest: { type: 'array', items: { type: 'string' } },
|
|
478
496
|
severity: { enum: ['error', 'warn', 'off'] },
|
|
@@ -520,8 +538,8 @@ const ConfigLabels = {
|
|
|
520
538
|
};
|
|
521
539
|
const ConfigSidebarLinks = {
|
|
522
540
|
properties: {
|
|
523
|
-
beforeInfo: listOf('CommonConfigSidebarLinks'),
|
|
524
|
-
end: listOf('CommonConfigSidebarLinks'),
|
|
541
|
+
beforeInfo: (0, _1.listOf)('CommonConfigSidebarLinks'),
|
|
542
|
+
end: (0, _1.listOf)('CommonConfigSidebarLinks'),
|
|
525
543
|
},
|
|
526
544
|
};
|
|
527
545
|
const CommonConfigSidebarLinks = {
|
|
@@ -549,7 +567,7 @@ const CommonColorProps = {
|
|
|
549
567
|
},
|
|
550
568
|
};
|
|
551
569
|
const BorderThemeColors = {
|
|
552
|
-
properties: pickObjectProps(CommonThemeColors.properties, ['light', 'dark']),
|
|
570
|
+
properties: (0, utils_1.pickObjectProps)(CommonThemeColors.properties, ['light', 'dark']),
|
|
553
571
|
};
|
|
554
572
|
const HttpColors = {
|
|
555
573
|
properties: {
|
|
@@ -573,7 +591,7 @@ const ResponseColors = {
|
|
|
573
591
|
},
|
|
574
592
|
};
|
|
575
593
|
const SecondaryColors = {
|
|
576
|
-
properties: omitObjectProps(CommonThemeColors.properties, ['dark']),
|
|
594
|
+
properties: (0, utils_1.omitObjectProps)(CommonThemeColors.properties, ['dark']),
|
|
577
595
|
};
|
|
578
596
|
const TextThemeColors = {
|
|
579
597
|
properties: {
|
|
@@ -622,7 +640,7 @@ const FontConfig = {
|
|
|
622
640
|
};
|
|
623
641
|
const ButtonsConfig = {
|
|
624
642
|
properties: {
|
|
625
|
-
...omitObjectProps(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
643
|
+
...(0, utils_1.omitObjectProps)(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
626
644
|
borderRadius: { type: 'string' },
|
|
627
645
|
hoverStyle: { type: 'string' },
|
|
628
646
|
boxShadow: { type: 'string' },
|
|
@@ -631,7 +649,7 @@ const ButtonsConfig = {
|
|
|
631
649
|
},
|
|
632
650
|
};
|
|
633
651
|
const BadgeFontConfig = {
|
|
634
|
-
properties: pickObjectProps(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
652
|
+
properties: (0, utils_1.pickObjectProps)(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
635
653
|
};
|
|
636
654
|
const BadgeSizes = {
|
|
637
655
|
properties: {
|
|
@@ -641,7 +659,7 @@ const BadgeSizes = {
|
|
|
641
659
|
};
|
|
642
660
|
const HttpBadgesConfig = {
|
|
643
661
|
properties: {
|
|
644
|
-
...omitObjectProps(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
662
|
+
...(0, utils_1.omitObjectProps)(FontConfig.properties, ['fontSize', 'lineHeight']),
|
|
645
663
|
borderRadius: { type: 'string' },
|
|
646
664
|
color: { type: 'string' },
|
|
647
665
|
sizes: 'BadgeSizes',
|
|
@@ -731,7 +749,7 @@ const GroupItemsConfig = {
|
|
|
731
749
|
},
|
|
732
750
|
};
|
|
733
751
|
const Level1Items = {
|
|
734
|
-
properties: pickObjectProps(GroupItemsConfig.properties, ['textTransform']),
|
|
752
|
+
properties: (0, utils_1.pickObjectProps)(GroupItemsConfig.properties, ['textTransform']),
|
|
735
753
|
};
|
|
736
754
|
const SpacingConfig = {
|
|
737
755
|
properties: {
|
|
@@ -745,7 +763,7 @@ const SpacingConfig = {
|
|
|
745
763
|
};
|
|
746
764
|
const Sidebar = {
|
|
747
765
|
properties: {
|
|
748
|
-
...omitObjectProps(FontConfig.properties, ['fontWeight', 'lineHeight']),
|
|
766
|
+
...(0, utils_1.omitObjectProps)(FontConfig.properties, ['fontWeight', 'lineHeight']),
|
|
749
767
|
activeBgColor: { type: 'string' },
|
|
750
768
|
activeTextColor: { type: 'string' },
|
|
751
769
|
backgroundColor: { type: 'string' },
|
|
@@ -791,7 +809,7 @@ const CodeConfig = {
|
|
|
791
809
|
},
|
|
792
810
|
};
|
|
793
811
|
const HeadingsConfig = {
|
|
794
|
-
properties: omitObjectProps(FontConfig.properties, ['fontSize']),
|
|
812
|
+
properties: (0, utils_1.omitObjectProps)(FontConfig.properties, ['fontSize']),
|
|
795
813
|
};
|
|
796
814
|
const LinksConfig = {
|
|
797
815
|
properties: {
|
|
@@ -806,7 +824,7 @@ const Typography = {
|
|
|
806
824
|
properties: {
|
|
807
825
|
code: 'CodeConfig',
|
|
808
826
|
fieldName: 'FontConfig',
|
|
809
|
-
...pickObjectProps(FontConfig.properties, ['fontSize', 'fontFamily']),
|
|
827
|
+
...(0, utils_1.pickObjectProps)(FontConfig.properties, ['fontSize', 'fontFamily']),
|
|
810
828
|
fontWeightBold: { type: 'string' },
|
|
811
829
|
fontWeightLight: { type: 'string' },
|
|
812
830
|
fontWeightRegular: { type: 'string' },
|
|
@@ -824,7 +842,7 @@ const Typography = {
|
|
|
824
842
|
const TokenProps = {
|
|
825
843
|
properties: {
|
|
826
844
|
color: { type: 'string' },
|
|
827
|
-
...omitObjectProps(FontConfig.properties, ['fontWeight']),
|
|
845
|
+
...(0, utils_1.omitObjectProps)(FontConfig.properties, ['fontWeight']),
|
|
828
846
|
},
|
|
829
847
|
};
|
|
830
848
|
const CodeBlock = {
|
|
@@ -901,14 +919,14 @@ const ConfigTheme = {
|
|
|
901
919
|
const GenerateCodeSamples = {
|
|
902
920
|
properties: {
|
|
903
921
|
skipOptionalParameters: { type: 'boolean' },
|
|
904
|
-
languages: listOf('ConfigLanguage'),
|
|
922
|
+
languages: (0, _1.listOf)('ConfigLanguage'),
|
|
905
923
|
},
|
|
906
924
|
required: ['languages'],
|
|
907
925
|
};
|
|
908
926
|
// TODO: deprecated
|
|
909
927
|
const ConfigReferenceDocs = {
|
|
910
928
|
properties: {
|
|
911
|
-
theme: 'ConfigTheme',
|
|
929
|
+
theme: 'ConfigTheme',
|
|
912
930
|
corsProxyUrl: { type: 'string' },
|
|
913
931
|
ctrlFHijack: { type: 'boolean' },
|
|
914
932
|
defaultSampleLanguage: { type: 'string' },
|
|
@@ -1041,15 +1059,15 @@ const ConfigMockServer = {
|
|
|
1041
1059
|
errorIfForcedExampleNotFound: { type: 'boolean' },
|
|
1042
1060
|
},
|
|
1043
1061
|
};
|
|
1044
|
-
|
|
1045
|
-
const nodeNames = Object.values(SpecVersion).flatMap((version) => {
|
|
1062
|
+
function createConfigTypes(extraSchemas, config) {
|
|
1063
|
+
const nodeNames = Object.values(oas_types_1.SpecVersion).flatMap((version) => {
|
|
1046
1064
|
const types = config?.styleguide
|
|
1047
|
-
? config.styleguide.extendTypes(getTypes(version), version)
|
|
1048
|
-
: getTypes(version);
|
|
1065
|
+
? config.styleguide.extendTypes((0, oas_types_1.getTypes)(version), version)
|
|
1066
|
+
: (0, oas_types_1.getTypes)(version);
|
|
1049
1067
|
return Object.keys(types);
|
|
1050
1068
|
});
|
|
1051
1069
|
// Create types based on external schemas
|
|
1052
|
-
const nodeTypes = getNodeTypesFromJSONSchema('rootRedoclyConfigSchema', extraSchemas);
|
|
1070
|
+
const nodeTypes = (0, json_schema_adapter_1.getNodeTypesFromJSONSchema)('rootRedoclyConfigSchema', extraSchemas);
|
|
1053
1071
|
return {
|
|
1054
1072
|
...CoreConfigTypes,
|
|
1055
1073
|
ConfigRoot: createConfigRoot(nodeTypes), // This is the REAL config root type
|
|
@@ -1120,6 +1138,5 @@ const CoreConfigTypes = {
|
|
|
1120
1138
|
Typography,
|
|
1121
1139
|
AssertionDefinitionAssertions,
|
|
1122
1140
|
};
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
//# sourceMappingURL=redocly-yaml.js.map
|
|
1141
|
+
exports.ConfigTypes = createConfigTypes(config_1.rootRedoclyConfigSchema);
|
|
1142
|
+
exports.NormalizedConfigTypes = (0, types_1.normalizeTypes)(exports.ConfigTypes);
|
package/lib/typings/arazzo.d.ts
CHANGED
package/lib/typings/arazzo.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT = exports.VERSION_PATTERN = void 0;
|
|
4
|
+
exports.VERSION_PATTERN = /^1\.0\.\d+(-.+)?$/;
|
|
5
|
+
exports.ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT = ['1.0.1'];
|
package/lib/typings/asyncapi.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/typings/asyncapi3.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/typings/common.d.ts
CHANGED
package/lib/typings/common.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/typings/openapi.d.ts
CHANGED
package/lib/typings/openapi.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/lib/typings/overlay.d.ts
CHANGED
package/lib/typings/overlay.js
CHANGED
package/lib/typings/swagger.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Schema } from 'js-yaml';
|
|
2
|
-
import type { Referenced } from './openapi
|
|
2
|
+
import type { Referenced } from './openapi';
|
|
3
3
|
export interface Oas2Definition {
|
|
4
4
|
swagger: '2.0';
|
|
5
5
|
info?: Oas2Info;
|
|
@@ -215,4 +215,3 @@ export interface Oas2License {
|
|
|
215
215
|
name: string;
|
|
216
216
|
url?: string;
|
|
217
217
|
}
|
|
218
|
-
//# sourceMappingURL=swagger.d.ts.map
|
package/lib/typings/swagger.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|