@depup/redocly__openapi-core 2.22.1-depup.0
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/README.md +32 -0
- package/changes.json +14 -0
- package/lib/bundle/bundle-document.d.ts +33 -0
- package/lib/bundle/bundle-document.d.ts.map +1 -0
- package/lib/bundle/bundle-document.js +85 -0
- package/lib/bundle/bundle-document.js.map +1 -0
- package/lib/bundle/bundle-oas.d.ts +15 -0
- package/lib/bundle/bundle-oas.d.ts.map +1 -0
- package/lib/bundle/bundle-oas.js +55 -0
- package/lib/bundle/bundle-oas.js.map +1 -0
- package/lib/bundle/bundle-visitor.d.ts +15 -0
- package/lib/bundle/bundle-visitor.d.ts.map +1 -0
- package/lib/bundle/bundle-visitor.js +257 -0
- package/lib/bundle/bundle-visitor.js.map +1 -0
- package/lib/bundle/bundle.d.ts +26 -0
- package/lib/bundle/bundle.d.ts.map +1 -0
- package/lib/bundle/bundle.js +74 -0
- package/lib/bundle/bundle.js.map +1 -0
- package/lib/config/all.d.ts +4 -0
- package/lib/config/all.d.ts.map +1 -0
- package/lib/config/all.js +310 -0
- package/lib/config/all.js.map +1 -0
- package/lib/config/builtIn.d.ts +4 -0
- package/lib/config/builtIn.d.ts.map +1 -0
- package/lib/config/builtIn.js +58 -0
- package/lib/config/builtIn.js.map +1 -0
- package/lib/config/bundle-extends.d.ts +8 -0
- package/lib/config/bundle-extends.d.ts.map +1 -0
- package/lib/config/bundle-extends.js +27 -0
- package/lib/config/bundle-extends.js.map +1 -0
- package/lib/config/config-resolvers.d.ts +23 -0
- package/lib/config/config-resolvers.d.ts.map +1 -0
- package/lib/config/config-resolvers.js +335 -0
- package/lib/config/config-resolvers.js.map +1 -0
- package/lib/config/config.d.ts +47 -0
- package/lib/config/config.d.ts.map +1 -0
- package/lib/config/config.js +338 -0
- package/lib/config/config.js.map +1 -0
- package/lib/config/constants.d.ts +10 -0
- package/lib/config/constants.d.ts.map +1 -0
- package/lib/config/constants.js +13 -0
- package/lib/config/constants.js.map +1 -0
- package/lib/config/get-resolve-config.d.ts +3 -0
- package/lib/config/get-resolve-config.d.ts.map +1 -0
- package/lib/config/get-resolve-config.js +9 -0
- package/lib/config/get-resolve-config.js.map +1 -0
- package/lib/config/group-assertion-rules.d.ts +3 -0
- package/lib/config/group-assertion-rules.d.ts.map +1 -0
- package/lib/config/group-assertion-rules.js +51 -0
- package/lib/config/group-assertion-rules.js.map +1 -0
- package/lib/config/index.d.ts +8 -0
- package/lib/config/index.d.ts.map +1 -0
- package/lib/config/index.js +8 -0
- package/lib/config/index.js.map +1 -0
- package/lib/config/load.d.ts +19 -0
- package/lib/config/load.d.ts.map +1 -0
- package/lib/config/load.js +98 -0
- package/lib/config/load.js.map +1 -0
- package/lib/config/minimal.d.ts +4 -0
- package/lib/config/minimal.d.ts.map +1 -0
- package/lib/config/minimal.js +289 -0
- package/lib/config/minimal.js.map +1 -0
- package/lib/config/recommended-strict.d.ts +4 -0
- package/lib/config/recommended-strict.d.ts.map +1 -0
- package/lib/config/recommended-strict.js +289 -0
- package/lib/config/recommended-strict.js.map +1 -0
- package/lib/config/recommended.d.ts +4 -0
- package/lib/config/recommended.d.ts.map +1 -0
- package/lib/config/recommended.js +289 -0
- package/lib/config/recommended.js.map +1 -0
- package/lib/config/rules.d.ts +11 -0
- package/lib/config/rules.d.ts.map +1 -0
- package/lib/config/rules.js +35 -0
- package/lib/config/rules.js.map +1 -0
- package/lib/config/spec.d.ts +4 -0
- package/lib/config/spec.d.ts.map +1 -0
- package/lib/config/spec.js +289 -0
- package/lib/config/spec.js.map +1 -0
- package/lib/config/types.d.ts +158 -0
- package/lib/config/types.d.ts.map +1 -0
- package/lib/config/types.js +2 -0
- package/lib/config/types.js.map +1 -0
- package/lib/config/utils.d.ts +14 -0
- package/lib/config/utils.d.ts.map +1 -0
- package/lib/config/utils.js +129 -0
- package/lib/config/utils.js.map +1 -0
- package/lib/config/visitors.d.ts +50 -0
- package/lib/config/visitors.d.ts.map +1 -0
- package/lib/config/visitors.js +99 -0
- package/lib/config/visitors.js.map +1 -0
- package/lib/decorators/arazzo/index.d.ts +2 -0
- package/lib/decorators/arazzo/index.d.ts.map +1 -0
- package/lib/decorators/arazzo/index.js +2 -0
- package/lib/decorators/arazzo/index.js.map +1 -0
- package/lib/decorators/async2/index.d.ts +2 -0
- package/lib/decorators/async2/index.d.ts.map +1 -0
- package/lib/decorators/async2/index.js +2 -0
- package/lib/decorators/async2/index.js.map +1 -0
- package/lib/decorators/async3/index.d.ts +2 -0
- package/lib/decorators/async3/index.d.ts.map +1 -0
- package/lib/decorators/async3/index.js +2 -0
- package/lib/decorators/async3/index.js.map +1 -0
- package/lib/decorators/common/filters/filter-helper.d.ts +4 -0
- package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-helper.js +65 -0
- package/lib/decorators/common/filters/filter-helper.js.map +1 -0
- package/lib/decorators/common/filters/filter-in.d.ts +3 -0
- package/lib/decorators/common/filters/filter-in.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-in.js +67 -0
- package/lib/decorators/common/filters/filter-in.js.map +1 -0
- package/lib/decorators/common/filters/filter-out.d.ts +3 -0
- package/lib/decorators/common/filters/filter-out.d.ts.map +1 -0
- package/lib/decorators/common/filters/filter-out.js +67 -0
- package/lib/decorators/common/filters/filter-out.js.map +1 -0
- package/lib/decorators/common/info-description-override.d.ts +3 -0
- package/lib/decorators/common/info-description-override.d.ts.map +1 -0
- package/lib/decorators/common/info-description-override.js +21 -0
- package/lib/decorators/common/info-description-override.js.map +1 -0
- package/lib/decorators/common/info-override.d.ts +3 -0
- package/lib/decorators/common/info-override.d.ts.map +1 -0
- package/lib/decorators/common/info-override.js +14 -0
- package/lib/decorators/common/info-override.js.map +1 -0
- package/lib/decorators/common/media-type-examples-override.d.ts +3 -0
- package/lib/decorators/common/media-type-examples-override.d.ts.map +1 -0
- package/lib/decorators/common/media-type-examples-override.js +58 -0
- package/lib/decorators/common/media-type-examples-override.js.map +1 -0
- package/lib/decorators/common/operation-description-override.d.ts +3 -0
- package/lib/decorators/common/operation-description-override.d.ts.map +1 -0
- package/lib/decorators/common/operation-description-override.js +27 -0
- package/lib/decorators/common/operation-description-override.js.map +1 -0
- package/lib/decorators/common/remove-x-internal.d.ts +3 -0
- package/lib/decorators/common/remove-x-internal.d.ts.map +1 -0
- package/lib/decorators/common/remove-x-internal.js +68 -0
- package/lib/decorators/common/remove-x-internal.js.map +1 -0
- package/lib/decorators/common/tag-description-override.d.ts +3 -0
- package/lib/decorators/common/tag-description-override.d.ts.map +1 -0
- package/lib/decorators/common/tag-description-override.js +23 -0
- package/lib/decorators/common/tag-description-override.js.map +1 -0
- package/lib/decorators/oas2/index.d.ts +12 -0
- package/lib/decorators/oas2/index.d.ts.map +1 -0
- package/lib/decorators/oas2/index.js +19 -0
- package/lib/decorators/oas2/index.js.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.d.ts +3 -0
- package/lib/decorators/oas2/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas2/remove-unused-components.js +88 -0
- package/lib/decorators/oas2/remove-unused-components.js.map +1 -0
- package/lib/decorators/oas3/index.d.ts +13 -0
- package/lib/decorators/oas3/index.d.ts.map +1 -0
- package/lib/decorators/oas3/index.js +21 -0
- package/lib/decorators/oas3/index.js.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.d.ts +3 -0
- package/lib/decorators/oas3/remove-unused-components.d.ts.map +1 -0
- package/lib/decorators/oas3/remove-unused-components.js +116 -0
- package/lib/decorators/oas3/remove-unused-components.js.map +1 -0
- package/lib/decorators/openrpc/index.d.ts +2 -0
- package/lib/decorators/openrpc/index.d.ts.map +1 -0
- package/lib/decorators/openrpc/index.js +2 -0
- package/lib/decorators/openrpc/index.js.map +1 -0
- package/lib/decorators/overlay1/index.d.ts +2 -0
- package/lib/decorators/overlay1/index.d.ts.map +1 -0
- package/lib/decorators/overlay1/index.js +2 -0
- package/lib/decorators/overlay1/index.js.map +1 -0
- package/lib/detect-spec.d.ts +5 -0
- package/lib/detect-spec.d.ts.map +1 -0
- package/lib/detect-spec.js +79 -0
- package/lib/detect-spec.js.map +1 -0
- package/lib/env.d.ts +3 -0
- package/lib/env.d.ts.map +1 -0
- package/lib/env.js +5 -0
- package/lib/env.js.map +1 -0
- package/lib/errors/yaml-parse-error.d.ts +9 -0
- package/lib/errors/yaml-parse-error.d.ts.map +1 -0
- package/lib/errors/yaml-parse-error.js +14 -0
- package/lib/errors/yaml-parse-error.js.map +1 -0
- package/lib/format/codeframes.d.ts +23 -0
- package/lib/format/codeframes.d.ts.map +1 -0
- package/lib/format/codeframes.js +177 -0
- package/lib/format/codeframes.js.map +1 -0
- package/lib/format/format.d.ts +23 -0
- package/lib/format/format.d.ts.map +1 -0
- package/lib/format/format.js +365 -0
- package/lib/format/format.js.map +1 -0
- package/lib/index.d.ts +58 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +49 -0
- package/lib/index.js.map +1 -0
- package/lib/js-yaml/index.d.ts +4 -0
- package/lib/js-yaml/index.d.ts.map +1 -0
- package/lib/js-yaml/index.js +11 -0
- package/lib/js-yaml/index.js.map +1 -0
- package/lib/lint-entity.d.ts +24 -0
- package/lib/lint-entity.d.ts.map +1 -0
- package/lib/lint-entity.js +171 -0
- package/lib/lint-entity.js.map +1 -0
- package/lib/lint.d.ts +31 -0
- package/lib/lint.d.ts.map +1 -0
- package/lib/lint.js +123 -0
- package/lib/lint.js.map +1 -0
- package/lib/logger.d.ts +26 -0
- package/lib/logger.d.ts.map +1 -0
- package/lib/logger.js +56 -0
- package/lib/logger.js.map +1 -0
- package/lib/oas-types.d.ts +877 -0
- package/lib/oas-types.d.ts.map +1 -0
- package/lib/oas-types.js +35 -0
- package/lib/oas-types.js.map +1 -0
- package/lib/ref-utils.d.ts +32 -0
- package/lib/ref-utils.d.ts.map +1 -0
- package/lib/ref-utils.js +109 -0
- package/lib/ref-utils.js.map +1 -0
- package/lib/resolve.d.ts +57 -0
- package/lib/resolve.d.ts.map +1 -0
- package/lib/resolve.js +326 -0
- package/lib/resolve.js.map +1 -0
- package/lib/rules/ajv.d.ts +20 -0
- package/lib/rules/ajv.d.ts.map +1 -0
- package/lib/rules/ajv.js +106 -0
- package/lib/rules/ajv.js.map +1 -0
- package/lib/rules/arazzo/criteria-unique.d.ts +3 -0
- package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/criteria-unique.js +68 -0
- package/lib/rules/arazzo/criteria-unique.js.map +1 -0
- package/lib/rules/arazzo/index.d.ts +4 -0
- package/lib/rules/arazzo/index.d.ts.map +1 -0
- package/lib/rules/arazzo/index.js +52 -0
- package/lib/rules/arazzo/index.js.map +1 -0
- package/lib/rules/arazzo/outputs-defined.d.ts +3 -0
- package/lib/rules/arazzo/outputs-defined.d.ts.map +1 -0
- package/lib/rules/arazzo/outputs-defined.js +139 -0
- package/lib/rules/arazzo/outputs-defined.js.map +1 -0
- package/lib/rules/arazzo/parameters-unique.d.ts +3 -0
- package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/parameters-unique.js +27 -0
- package/lib/rules/arazzo/parameters-unique.js.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +3 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
- package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescription-type.js +19 -0
- package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
- package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +3 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
- package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.d.ts +3 -0
- package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onFailure-unique.js +27 -0
- package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts +3 -0
- package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
- package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
- package/lib/rules/arazzo/stepId-unique.d.ts +3 -0
- package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/stepId-unique.js +23 -0
- package/lib/rules/arazzo/stepId-unique.js.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.d.ts +3 -0
- package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
- package/lib/rules/arazzo/workflow-dependsOn.js +53 -0
- package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.d.ts +3 -0
- package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
- package/lib/rules/arazzo/workflowId-unique.js +19 -0
- package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
- package/lib/rules/async2/channels-kebab-case.d.ts +3 -0
- package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async2/channels-kebab-case.js +16 -0
- package/lib/rules/async2/channels-kebab-case.js.map +1 -0
- package/lib/rules/async2/index.d.ts +4 -0
- package/lib/rules/async2/index.d.ts.map +1 -0
- package/lib/rules/async2/index.js +32 -0
- package/lib/rules/async2/index.js.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts +3 -0
- package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async2/no-channel-trailing-slash.js +13 -0
- package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/async3/channels-kebab-case.d.ts +3 -0
- package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
- package/lib/rules/async3/channels-kebab-case.js +16 -0
- package/lib/rules/async3/channels-kebab-case.js.map +1 -0
- package/lib/rules/async3/index.d.ts +4 -0
- package/lib/rules/async3/index.d.ts.map +1 -0
- package/lib/rules/async3/index.js +32 -0
- package/lib/rules/async3/index.js.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts +3 -0
- package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
- package/lib/rules/async3/no-channel-trailing-slash.js +13 -0
- package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
- package/lib/rules/catalog-entity/entity-key-valid.d.ts +3 -0
- package/lib/rules/catalog-entity/entity-key-valid.d.ts.map +1 -0
- package/lib/rules/catalog-entity/entity-key-valid.js +39 -0
- package/lib/rules/catalog-entity/entity-key-valid.js.map +1 -0
- package/lib/rules/common/assertions/asserts.d.ts +30 -0
- package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
- package/lib/rules/common/assertions/asserts.js +272 -0
- package/lib/rules/common/assertions/asserts.js.map +1 -0
- package/lib/rules/common/assertions/index.d.ts +28 -0
- package/lib/rules/common/assertions/index.d.ts.map +1 -0
- package/lib/rules/common/assertions/index.js +22 -0
- package/lib/rules/common/assertions/index.js.map +1 -0
- package/lib/rules/common/assertions/utils.d.ts +21 -0
- package/lib/rules/common/assertions/utils.d.ts.map +1 -0
- package/lib/rules/common/assertions/utils.js +215 -0
- package/lib/rules/common/assertions/utils.js.map +1 -0
- package/lib/rules/common/info-contact.d.ts +3 -0
- package/lib/rules/common/info-contact.d.ts.map +1 -0
- package/lib/rules/common/info-contact.js +14 -0
- package/lib/rules/common/info-contact.js.map +1 -0
- package/lib/rules/common/info-license-strict.d.ts +3 -0
- package/lib/rules/common/info-license-strict.d.ts.map +1 -0
- package/lib/rules/common/info-license-strict.js +23 -0
- package/lib/rules/common/info-license-strict.js.map +1 -0
- package/lib/rules/common/info-license.d.ts +3 -0
- package/lib/rules/common/info-license.d.ts.map +1 -0
- package/lib/rules/common/info-license.js +14 -0
- package/lib/rules/common/info-license.js.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.d.ts +3 -0
- package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
- package/lib/rules/common/no-ambiguous-paths.js +42 -0
- package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
- package/lib/rules/common/no-duplicated-tag-names.d.ts +3 -0
- package/lib/rules/common/no-duplicated-tag-names.d.ts.map +1 -0
- package/lib/rules/common/no-duplicated-tag-names.js +21 -0
- package/lib/rules/common/no-duplicated-tag-names.js.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.d.ts +3 -0
- package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-enum-type-mismatch.js +38 -0
- package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.d.ts +3 -0
- package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
- package/lib/rules/common/no-http-verbs-in-paths.js +31 -0
- package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
- package/lib/rules/common/no-identical-paths.d.ts +3 -0
- package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
- package/lib/rules/common/no-identical-paths.js +21 -0
- package/lib/rules/common/no-identical-paths.js.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts +2 -0
- package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-parameter-examples.js +32 -0
- package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.d.ts +3 -0
- package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
- package/lib/rules/common/no-invalid-schema-examples.js +34 -0
- package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.d.ts +3 -0
- package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
- package/lib/rules/common/no-path-trailing-slash.js +13 -0
- package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts +3 -0
- package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
- package/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
- package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.d.ts +3 -0
- package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
- package/lib/rules/common/no-schema-type-mismatch.js +19 -0
- package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
- package/lib/rules/common/no-unresolved-refs.d.ts +6 -0
- package/lib/rules/common/no-unresolved-refs.d.ts.map +1 -0
- package/lib/rules/common/no-unresolved-refs.js +42 -0
- package/lib/rules/common/no-unresolved-refs.js.map +1 -0
- package/lib/rules/common/operation-2xx-response.d.ts +3 -0
- package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-2xx-response.js +20 -0
- package/lib/rules/common/operation-2xx-response.js.map +1 -0
- package/lib/rules/common/operation-4xx-response.d.ts +3 -0
- package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
- package/lib/rules/common/operation-4xx-response.js +20 -0
- package/lib/rules/common/operation-4xx-response.js.map +1 -0
- package/lib/rules/common/operation-description.d.ts +3 -0
- package/lib/rules/common/operation-description.d.ts.map +1 -0
- package/lib/rules/common/operation-description.js +9 -0
- package/lib/rules/common/operation-description.js.map +1 -0
- package/lib/rules/common/operation-operationId-unique.d.ts +3 -0
- package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-unique.js +17 -0
- package/lib/rules/common/operation-operationId-unique.js.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.d.ts +3 -0
- package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId-url-safe.js +15 -0
- package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
- package/lib/rules/common/operation-operationId.d.ts +3 -0
- package/lib/rules/common/operation-operationId.d.ts.map +1 -0
- package/lib/rules/common/operation-operationId.js +13 -0
- package/lib/rules/common/operation-operationId.js.map +1 -0
- package/lib/rules/common/operation-parameters-unique.d.ts +3 -0
- package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
- package/lib/rules/common/operation-parameters-unique.js +37 -0
- package/lib/rules/common/operation-parameters-unique.js.map +1 -0
- package/lib/rules/common/operation-singular-tag.d.ts +3 -0
- package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
- package/lib/rules/common/operation-singular-tag.js +13 -0
- package/lib/rules/common/operation-singular-tag.js.map +1 -0
- package/lib/rules/common/operation-summary.d.ts +3 -0
- package/lib/rules/common/operation-summary.d.ts.map +1 -0
- package/lib/rules/common/operation-summary.js +9 -0
- package/lib/rules/common/operation-summary.js.map +1 -0
- package/lib/rules/common/operation-tag-defined.d.ts +3 -0
- package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
- package/lib/rules/common/operation-tag-defined.js +27 -0
- package/lib/rules/common/operation-tag-defined.js.map +1 -0
- package/lib/rules/common/parameter-description.d.ts +3 -0
- package/lib/rules/common/parameter-description.d.ts.map +1 -0
- package/lib/rules/common/parameter-description.js +19 -0
- package/lib/rules/common/parameter-description.js.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.d.ts +3 -0
- package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
- package/lib/rules/common/path-declaration-must-exist.js +13 -0
- package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
- package/lib/rules/common/path-http-verbs-order.d.ts +3 -0
- package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
- package/lib/rules/common/path-http-verbs-order.js +23 -0
- package/lib/rules/common/path-http-verbs-order.js.map +1 -0
- package/lib/rules/common/path-not-include-query.d.ts +3 -0
- package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
- package/lib/rules/common/path-not-include-query.js +15 -0
- package/lib/rules/common/path-not-include-query.js.map +1 -0
- package/lib/rules/common/path-params-defined.d.ts +3 -0
- package/lib/rules/common/path-params-defined.d.ts.map +1 -0
- package/lib/rules/common/path-params-defined.js +145 -0
- package/lib/rules/common/path-params-defined.js.map +1 -0
- package/lib/rules/common/path-segment-plural.d.ts +3 -0
- package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
- package/lib/rules/common/path-segment-plural.js +30 -0
- package/lib/rules/common/path-segment-plural.js.map +1 -0
- package/lib/rules/common/paths-kebab-case.d.ts +3 -0
- package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
- package/lib/rules/common/paths-kebab-case.js +17 -0
- package/lib/rules/common/paths-kebab-case.js.map +1 -0
- package/lib/rules/common/required-string-property-missing-min-length.d.ts +3 -0
- 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 +34 -0
- package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
- package/lib/rules/common/response-contains-header.d.ts +3 -0
- package/lib/rules/common/response-contains-header.d.ts.map +1 -0
- package/lib/rules/common/response-contains-header.js +26 -0
- package/lib/rules/common/response-contains-header.js.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.d.ts +3 -0
- package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
- package/lib/rules/common/scalar-property-missing-example.js +39 -0
- package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
- package/lib/rules/common/security-defined.d.ts +3 -0
- package/lib/rules/common/security-defined.d.ts.map +1 -0
- package/lib/rules/common/security-defined.js +62 -0
- package/lib/rules/common/security-defined.js.map +1 -0
- package/lib/rules/common/spec-strict-refs.d.ts +3 -0
- package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
- package/lib/rules/common/spec-strict-refs.js +27 -0
- package/lib/rules/common/spec-strict-refs.js.map +1 -0
- package/lib/rules/common/struct.d.ts +3 -0
- package/lib/rules/common/struct.d.ts.map +1 -0
- package/lib/rules/common/struct.js +150 -0
- package/lib/rules/common/struct.js.map +1 -0
- package/lib/rules/common/tag-description.d.ts +3 -0
- package/lib/rules/common/tag-description.d.ts.map +1 -0
- package/lib/rules/common/tag-description.js +9 -0
- package/lib/rules/common/tag-description.js.map +1 -0
- package/lib/rules/common/tags-alphabetical.d.ts +3 -0
- package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
- package/lib/rules/common/tags-alphabetical.js +18 -0
- package/lib/rules/common/tags-alphabetical.js.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +6 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
- package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas2/index.d.ts +4 -0
- package/lib/rules/oas2/index.d.ts.map +1 -0
- package/lib/rules/oas2/index.js +93 -0
- package/lib/rules/oas2/index.js.map +1 -0
- package/lib/rules/oas2/request-mime-type.d.ts +3 -0
- package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/request-mime-type.js +14 -0
- package/lib/rules/oas2/request-mime-type.js.map +1 -0
- package/lib/rules/oas2/response-contains-property.d.ts +3 -0
- package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas2/response-contains-property.js +34 -0
- package/lib/rules/oas2/response-contains-property.js.map +1 -0
- package/lib/rules/oas2/response-mime-type.d.ts +3 -0
- package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas2/response-mime-type.js +14 -0
- package/lib/rules/oas2/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.d.ts +6 -0
- package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
- package/lib/rules/oas3/array-parameter-serialization.js +26 -0
- package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +6 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
- package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
- package/lib/rules/oas3/component-name-unique.d.ts +3 -0
- package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
- package/lib/rules/oas3/component-name-unique.js +130 -0
- package/lib/rules/oas3/component-name-unique.js.map +1 -0
- package/lib/rules/oas3/index.d.ts +4 -0
- package/lib/rules/oas3/index.d.ts.map +1 -0
- package/lib/rules/oas3/index.js +129 -0
- package/lib/rules/oas3/index.js.map +1 -0
- package/lib/rules/oas3/no-empty-servers.d.ts +3 -0
- package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
- package/lib/rules/oas3/no-empty-servers.js +20 -0
- package/lib/rules/oas3/no-empty-servers.js.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +3 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
- package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +3 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
- package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
- package/lib/rules/oas3/no-server-example.com.d.ts +3 -0
- package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-example.com.js +15 -0
- package/lib/rules/oas3/no-server-example.com.js.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.d.ts +3 -0
- package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-trailing-slash.js +15 -0
- package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +3 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
- package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.d.ts +3 -0
- package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
- package/lib/rules/oas3/no-undefined-server-variable.js +28 -0
- package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
- package/lib/rules/oas3/no-unused-components.d.ts +3 -0
- package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
- package/lib/rules/oas3/no-unused-components.js +83 -0
- package/lib/rules/oas3/no-unused-components.js.map +1 -0
- package/lib/rules/oas3/nullable-type-sibling.d.ts +3 -0
- package/lib/rules/oas3/nullable-type-sibling.d.ts.map +1 -0
- package/lib/rules/oas3/nullable-type-sibling.js +15 -0
- package/lib/rules/oas3/nullable-type-sibling.js.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +6 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
- package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
- package/lib/rules/oas3/request-mime-type.d.ts +3 -0
- package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/request-mime-type.js +28 -0
- package/lib/rules/oas3/request-mime-type.js.map +1 -0
- package/lib/rules/oas3/response-contains-property.d.ts +3 -0
- package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
- package/lib/rules/oas3/response-contains-property.js +36 -0
- package/lib/rules/oas3/response-contains-property.js.map +1 -0
- package/lib/rules/oas3/response-mime-type.d.ts +3 -0
- package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
- package/lib/rules/oas3/response-mime-type.js +28 -0
- package/lib/rules/oas3/response-mime-type.js.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +3 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
- package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts +3 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts.map +1 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
- package/lib/rules/oas3/spec-discriminator-defaultMapping.js.map +1 -0
- package/lib/rules/oas3/spec-example-values.d.ts +3 -0
- package/lib/rules/oas3/spec-example-values.d.ts.map +1 -0
- package/lib/rules/oas3/spec-example-values.js +31 -0
- package/lib/rules/oas3/spec-example-values.js.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts +3 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
- package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts +3 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts.map +1 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
- package/lib/rules/oas3/spec-no-invalid-tag-parents.js.map +1 -0
- package/lib/rules/oas3/spec-querystring-parameters.d.ts +3 -0
- package/lib/rules/oas3/spec-querystring-parameters.d.ts.map +1 -0
- package/lib/rules/oas3/spec-querystring-parameters.js +65 -0
- package/lib/rules/oas3/spec-querystring-parameters.js.map +1 -0
- package/lib/rules/openrpc/index.d.ts +4 -0
- package/lib/rules/openrpc/index.d.ts.map +1 -0
- package/lib/rules/openrpc/index.js +20 -0
- package/lib/rules/openrpc/index.js.map +1 -0
- package/lib/rules/openrpc/no-unused-components.d.ts +3 -0
- package/lib/rules/openrpc/no-unused-components.d.ts.map +1 -0
- package/lib/rules/openrpc/no-unused-components.js +82 -0
- package/lib/rules/openrpc/no-unused-components.js.map +1 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts +3 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts.map +1 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
- package/lib/rules/openrpc/spec-no-duplicated-method-params.js.map +1 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts +3 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts.map +1 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
- package/lib/rules/openrpc/spec-no-required-params-after-optional.js.map +1 -0
- package/lib/rules/other/stats.d.ts +104 -0
- package/lib/rules/other/stats.d.ts.map +1 -0
- package/lib/rules/other/stats.js +190 -0
- package/lib/rules/other/stats.js.map +1 -0
- package/lib/rules/overlay1/index.d.ts +4 -0
- package/lib/rules/overlay1/index.d.ts.map +1 -0
- package/lib/rules/overlay1/index.js +12 -0
- package/lib/rules/overlay1/index.js.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.d.ts +3 -0
- package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
- package/lib/rules/respect/no-criteria-xpath.js +20 -0
- package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts +3 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts.map +1 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
- package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js.map +1 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts +3 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts.map +1 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
- package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js.map +1 -0
- package/lib/rules/respect/respect-supported-versions.d.ts +3 -0
- package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
- package/lib/rules/respect/respect-supported-versions.js +18 -0
- package/lib/rules/respect/respect-supported-versions.js.map +1 -0
- package/lib/rules/respect/x-security-scheme-name-reference.d.ts +3 -0
- package/lib/rules/respect/x-security-scheme-name-reference.d.ts.map +1 -0
- package/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
- package/lib/rules/respect/x-security-scheme-name-reference.js.map +1 -0
- package/lib/rules/respect/x-security-scheme-required-values.d.ts +3 -0
- package/lib/rules/respect/x-security-scheme-required-values.d.ts.map +1 -0
- package/lib/rules/respect/x-security-scheme-required-values.js +60 -0
- package/lib/rules/respect/x-security-scheme-required-values.js.map +1 -0
- package/lib/rules/utils.d.ts +30 -0
- package/lib/rules/utils.d.ts.map +1 -0
- package/lib/rules/utils.js +172 -0
- package/lib/rules/utils.js.map +1 -0
- package/lib/types/arazzo.d.ts +3 -0
- package/lib/types/arazzo.d.ts.map +1 -0
- package/lib/types/arazzo.js +482 -0
- package/lib/types/arazzo.js.map +1 -0
- package/lib/types/asyncapi2.d.ts +13 -0
- package/lib/types/asyncapi2.d.ts.map +1 -0
- package/lib/types/asyncapi2.js +1157 -0
- package/lib/types/asyncapi2.js.map +1 -0
- package/lib/types/asyncapi3.d.ts +3 -0
- package/lib/types/asyncapi3.d.ts.map +1 -0
- package/lib/types/asyncapi3.js +511 -0
- package/lib/types/asyncapi3.js.map +1 -0
- package/lib/types/entity.d.ts +9 -0
- package/lib/types/entity.d.ts.map +1 -0
- package/lib/types/entity.js +32 -0
- package/lib/types/entity.js.map +1 -0
- package/lib/types/index.d.ts +78 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +90 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/json-schema-adapter.d.ts +12 -0
- package/lib/types/json-schema-adapter.d.ts.map +1 -0
- package/lib/types/json-schema-adapter.js +181 -0
- package/lib/types/json-schema-adapter.js.map +1 -0
- package/lib/types/json-schema-draft7.shared.d.ts +7 -0
- package/lib/types/json-schema-draft7.shared.d.ts.map +1 -0
- package/lib/types/json-schema-draft7.shared.js +101 -0
- package/lib/types/json-schema-draft7.shared.js.map +1 -0
- package/lib/types/oas2.d.ts +107 -0
- package/lib/types/oas2.d.ts.map +1 -0
- package/lib/types/oas2.js +454 -0
- package/lib/types/oas2.js.map +1 -0
- package/lib/types/oas3.d.ts +198 -0
- package/lib/types/oas3.d.ts.map +1 -0
- package/lib/types/oas3.js +828 -0
- package/lib/types/oas3.js.map +1 -0
- package/lib/types/oas3_1.d.ts +207 -0
- package/lib/types/oas3_1.d.ts.map +1 -0
- package/lib/types/oas3_1.js +292 -0
- package/lib/types/oas3_1.js.map +1 -0
- package/lib/types/oas3_2.d.ts +215 -0
- package/lib/types/oas3_2.d.ts.map +1 -0
- package/lib/types/oas3_2.js +306 -0
- package/lib/types/oas3_2.js.map +1 -0
- package/lib/types/openrpc.d.ts +136 -0
- package/lib/types/openrpc.d.ts.map +1 -0
- package/lib/types/openrpc.js +360 -0
- package/lib/types/openrpc.js.map +1 -0
- package/lib/types/overlay.d.ts +3 -0
- package/lib/types/overlay.d.ts.map +1 -0
- package/lib/types/overlay.js +61 -0
- package/lib/types/overlay.js.map +1 -0
- package/lib/types/redocly-yaml.d.ts +29 -0
- package/lib/types/redocly-yaml.d.ts.map +1 -0
- package/lib/types/redocly-yaml.js +573 -0
- package/lib/types/redocly-yaml.js.map +1 -0
- package/lib/typings/arazzo.d.ts +172 -0
- package/lib/typings/arazzo.d.ts.map +1 -0
- package/lib/typings/arazzo.js +3 -0
- package/lib/typings/arazzo.js.map +1 -0
- package/lib/typings/asyncapi.d.ts +22 -0
- package/lib/typings/asyncapi.d.ts.map +1 -0
- package/lib/typings/asyncapi.js +2 -0
- package/lib/typings/asyncapi.js.map +1 -0
- package/lib/typings/asyncapi3.d.ts +54 -0
- package/lib/typings/asyncapi3.d.ts.map +1 -0
- package/lib/typings/asyncapi3.js +2 -0
- package/lib/typings/asyncapi3.js.map +1 -0
- package/lib/typings/common.d.ts +13 -0
- package/lib/typings/common.d.ts.map +1 -0
- package/lib/typings/common.js +2 -0
- package/lib/typings/common.js.map +1 -0
- package/lib/typings/openapi.d.ts +420 -0
- package/lib/typings/openapi.d.ts.map +1 -0
- package/lib/typings/openapi.js +2 -0
- package/lib/typings/openapi.js.map +1 -0
- package/lib/typings/openrpc.d.ts +110 -0
- package/lib/typings/openrpc.d.ts.map +1 -0
- package/lib/typings/openrpc.js +2 -0
- package/lib/typings/openrpc.js.map +1 -0
- package/lib/typings/overlay.d.ts +18 -0
- package/lib/typings/overlay.d.ts.map +1 -0
- package/lib/typings/overlay.js +2 -0
- package/lib/typings/overlay.js.map +1 -0
- package/lib/typings/swagger.d.ts +218 -0
- package/lib/typings/swagger.d.ts.map +1 -0
- package/lib/typings/swagger.js +2 -0
- package/lib/typings/swagger.js.map +1 -0
- package/lib/utils/assign-config.d.ts +7 -0
- package/lib/utils/assign-config.d.ts.map +1 -0
- package/lib/utils/assign-config.js +28 -0
- package/lib/utils/assign-config.js.map +1 -0
- package/lib/utils/dequal.d.ts +6 -0
- package/lib/utils/dequal.d.ts.map +1 -0
- package/lib/utils/dequal.js +36 -0
- package/lib/utils/dequal.js.map +1 -0
- package/lib/utils/does-yaml-file-exist.d.ts +2 -0
- package/lib/utils/does-yaml-file-exist.d.ts.map +1 -0
- package/lib/utils/does-yaml-file-exist.js +7 -0
- package/lib/utils/does-yaml-file-exist.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/get-intersection-length.d.ts +2 -0
- package/lib/utils/get-intersection-length.d.ts.map +1 -0
- package/lib/utils/get-intersection-length.js +11 -0
- package/lib/utils/get-intersection-length.js.map +1 -0
- package/lib/utils/get-matching-status-code-range.d.ts +2 -0
- package/lib/utils/get-matching-status-code-range.d.ts.map +1 -0
- package/lib/utils/get-matching-status-code-range.js +4 -0
- package/lib/utils/get-matching-status-code-range.js.map +1 -0
- package/lib/utils/get-own.d.ts +2 -0
- package/lib/utils/get-own.d.ts.map +1 -0
- package/lib/utils/get-own.js +4 -0
- package/lib/utils/get-own.js.map +1 -0
- package/lib/utils/identity.d.ts +2 -0
- package/lib/utils/identity.d.ts.map +1 -0
- package/lib/utils/identity.js +4 -0
- package/lib/utils/identity.js.map +1 -0
- package/lib/utils/is-custom-rule-id.d.ts +2 -0
- package/lib/utils/is-custom-rule-id.d.ts.map +1 -0
- package/lib/utils/is-custom-rule-id.js +4 -0
- package/lib/utils/is-custom-rule-id.js.map +1 -0
- package/lib/utils/is-defined.d.ts +2 -0
- package/lib/utils/is-defined.d.ts.map +1 -0
- package/lib/utils/is-defined.js +4 -0
- package/lib/utils/is-defined.js.map +1 -0
- package/lib/utils/is-empty-array.d.ts +2 -0
- package/lib/utils/is-empty-array.d.ts.map +1 -0
- package/lib/utils/is-empty-array.js +4 -0
- package/lib/utils/is-empty-array.js.map +1 -0
- package/lib/utils/is-empty-object.d.ts +2 -0
- package/lib/utils/is-empty-object.d.ts.map +1 -0
- package/lib/utils/is-empty-object.js +5 -0
- package/lib/utils/is-empty-object.js.map +1 -0
- package/lib/utils/is-not-empty-array.d.ts +2 -0
- package/lib/utils/is-not-empty-array.d.ts.map +1 -0
- package/lib/utils/is-not-empty-array.js +4 -0
- package/lib/utils/is-not-empty-array.js.map +1 -0
- package/lib/utils/is-not-empty-object.d.ts +2 -0
- package/lib/utils/is-not-empty-object.d.ts.map +1 -0
- package/lib/utils/is-not-empty-object.js +6 -0
- package/lib/utils/is-not-empty-object.js.map +1 -0
- package/lib/utils/is-not-string.d.ts +2 -0
- package/lib/utils/is-not-string.d.ts.map +1 -0
- package/lib/utils/is-not-string.js +5 -0
- package/lib/utils/is-not-string.js.map +1 -0
- package/lib/utils/is-ordered.d.ts +7 -0
- package/lib/utils/is-ordered.d.ts.map +1 -0
- package/lib/utils/is-ordered.js +27 -0
- package/lib/utils/is-ordered.js.map +1 -0
- package/lib/utils/is-path-parameter.d.ts +2 -0
- package/lib/utils/is-path-parameter.d.ts.map +1 -0
- package/lib/utils/is-path-parameter.js +4 -0
- package/lib/utils/is-path-parameter.js.map +1 -0
- package/lib/utils/is-plain-object.d.ts +2 -0
- package/lib/utils/is-plain-object.d.ts.map +1 -0
- package/lib/utils/is-plain-object.js +4 -0
- package/lib/utils/is-plain-object.js.map +1 -0
- package/lib/utils/is-string.d.ts +2 -0
- package/lib/utils/is-string.d.ts.map +1 -0
- package/lib/utils/is-string.js +4 -0
- package/lib/utils/is-string.js.map +1 -0
- package/lib/utils/is-truthy.d.ts +3 -0
- package/lib/utils/is-truthy.d.ts.map +1 -0
- package/lib/utils/is-truthy.js +4 -0
- package/lib/utils/is-truthy.js.map +1 -0
- package/lib/utils/keys-of.d.ts +2 -0
- package/lib/utils/keys-of.d.ts.map +1 -0
- package/lib/utils/keys-of.js +6 -0
- package/lib/utils/keys-of.js.map +1 -0
- package/lib/utils/make-ref-id.d.ts +2 -0
- package/lib/utils/make-ref-id.d.ts.map +1 -0
- package/lib/utils/make-ref-id.js +4 -0
- package/lib/utils/make-ref-id.js.map +1 -0
- package/lib/utils/next-tick.d.ts +2 -0
- package/lib/utils/next-tick.d.ts.map +1 -0
- package/lib/utils/next-tick.js +6 -0
- package/lib/utils/next-tick.js.map +1 -0
- package/lib/utils/oas-has-component.d.ts +3 -0
- package/lib/utils/oas-has-component.d.ts.map +1 -0
- package/lib/utils/oas-has-component.js +4 -0
- package/lib/utils/oas-has-component.js.map +1 -0
- package/lib/utils/omit.d.ts +2 -0
- package/lib/utils/omit.d.ts.map +1 -0
- package/lib/utils/omit.js +8 -0
- package/lib/utils/omit.js.map +1 -0
- package/lib/utils/pause.d.ts +2 -0
- package/lib/utils/pause.d.ts.map +1 -0
- package/lib/utils/pause.js +4 -0
- package/lib/utils/pause.js.map +1 -0
- package/lib/utils/pluralize.d.ts +2 -0
- package/lib/utils/pluralize.d.ts.map +1 -0
- package/lib/utils/pluralize.js +8 -0
- package/lib/utils/pluralize.js.map +1 -0
- package/lib/utils/read-file-from-url.d.ts +6 -0
- package/lib/utils/read-file-from-url.d.ts.map +1 -0
- package/lib/utils/read-file-from-url.js +26 -0
- package/lib/utils/read-file-from-url.js.map +1 -0
- package/lib/utils/regex-from-string.d.ts +2 -0
- package/lib/utils/regex-from-string.d.ts.map +1 -0
- package/lib/utils/regex-from-string.js +5 -0
- package/lib/utils/regex-from-string.js.map +1 -0
- package/lib/utils/scorecards.d.ts +13 -0
- package/lib/utils/scorecards.d.ts.map +1 -0
- package/lib/utils/scorecards.js +99 -0
- package/lib/utils/scorecards.js.map +1 -0
- package/lib/utils/slash.d.ts +5 -0
- package/lib/utils/slash.d.ts.map +1 -0
- package/lib/utils/slash.js +11 -0
- package/lib/utils/slash.js.map +1 -0
- package/lib/utils/split-camel-case-into-words.d.ts +2 -0
- package/lib/utils/split-camel-case-into-words.d.ts.map +1 -0
- package/lib/utils/split-camel-case-into-words.js +13 -0
- package/lib/utils/split-camel-case-into-words.js.map +1 -0
- package/lib/utils/stack.d.ts +12 -0
- package/lib/utils/stack.d.ts.map +1 -0
- package/lib/utils/stack.js +7 -0
- package/lib/utils/stack.js.map +1 -0
- package/lib/utils/types.d.ts +5 -0
- package/lib/utils/types.d.ts.map +1 -0
- package/lib/utils/types.js +2 -0
- package/lib/utils/types.js.map +1 -0
- package/lib/utils/validate-mime-type.d.ts +4 -0
- package/lib/utils/validate-mime-type.d.ts.map +1 -0
- package/lib/utils/validate-mime-type.js +31 -0
- package/lib/utils/validate-mime-type.js.map +1 -0
- package/lib/utils/yaml-fs-helper.d.ts +6 -0
- package/lib/utils/yaml-fs-helper.d.ts.map +1 -0
- package/lib/utils/yaml-fs-helper.js +23 -0
- package/lib/utils/yaml-fs-helper.js.map +1 -0
- package/lib/visitors.d.ts +279 -0
- package/lib/visitors.d.ts.map +1 -0
- package/lib/visitors.js +177 -0
- package/lib/visitors.js.map +1 -0
- package/lib/walk.d.ts +81 -0
- package/lib/walk.d.ts.map +1 -0
- package/lib/walk.js +303 -0
- package/lib/walk.js.map +1 -0
- package/package.json +95 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oas-types.d.ts","sourceRoot":"","sources":["../src/oas-types.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,mBAAmB,EACnB,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,EAClB,UAAU,EACV,kBAAkB,EAClB,UAAU,EACV,mBAAmB,EACnB,WAAW,EACX,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,YAAY,EACb,MAAM,eAAe,CAAC;AAEvB,eAAO,MAAM,YAAY,wGAUf,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAExD,MAAM,MAAM,gBAAgB,GACxB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,UAAU,GACV,UAAU,CAAC;AAcf,MAAM,MAAM,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,UAAU,EAAE,CAAC,IAAI,MAAM,CAC7D,CAAC,SAAS,UAAU,GAAG,GAAG,GAAG,MAAM,EACnC,UAAU,CACX,CAAC;AACF,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,SAAS,IAAI,OAAO,CAC9C,iBAAiB,GA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEzC"}
|
package/lib/oas-types.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Arazzo1Types } from './types/arazzo.js';
|
|
2
|
+
import { AsyncApi2Types } from './types/asyncapi2.js';
|
|
3
|
+
import { AsyncApi3Types } from './types/asyncapi3.js';
|
|
4
|
+
import { Oas2Types } from './types/oas2.js';
|
|
5
|
+
import { Oas3Types } from './types/oas3.js';
|
|
6
|
+
import { Oas3_1Types } from './types/oas3_1.js';
|
|
7
|
+
import { Oas3_2Types } from './types/oas3_2.js';
|
|
8
|
+
import { OpenRpcTypes } from './types/openrpc.js';
|
|
9
|
+
import { Overlay1Types } from './types/overlay.js';
|
|
10
|
+
export const specVersions = [
|
|
11
|
+
'oas2',
|
|
12
|
+
'oas3_0',
|
|
13
|
+
'oas3_1',
|
|
14
|
+
'oas3_2',
|
|
15
|
+
'async2',
|
|
16
|
+
'async3',
|
|
17
|
+
'arazzo1',
|
|
18
|
+
'overlay1',
|
|
19
|
+
'openrpc1',
|
|
20
|
+
];
|
|
21
|
+
const typesMap = {
|
|
22
|
+
oas2: Oas2Types,
|
|
23
|
+
oas3_0: Oas3Types,
|
|
24
|
+
oas3_1: Oas3_1Types,
|
|
25
|
+
oas3_2: Oas3_2Types,
|
|
26
|
+
async2: AsyncApi2Types,
|
|
27
|
+
async3: AsyncApi3Types,
|
|
28
|
+
arazzo1: Arazzo1Types,
|
|
29
|
+
overlay1: Overlay1Types,
|
|
30
|
+
openrpc1: OpenRpcTypes,
|
|
31
|
+
};
|
|
32
|
+
export function getTypes(spec) {
|
|
33
|
+
return typesMap[spec];
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=oas-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oas-types.js","sourceRoot":"","sources":["../src/oas-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AA4BnD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,MAAM;IACN,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,QAAQ;IACR,SAAS;IACT,UAAU;IACV,UAAU;CACF,CAAC;AAYX,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,SAAS;IACf,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,WAAW;IACnB,MAAM,EAAE,cAAc;IACtB,MAAM,EAAE,cAAc;IACtB,OAAO,EAAE,YAAY;IACrB,QAAQ,EAAE,aAAa;IACvB,QAAQ,EAAE,YAAY;CACvB,CAAC;AA4DF,MAAM,UAAU,QAAQ,CAAC,IAAiB;IACxC,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;AACxB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Source } from './resolve.js';
|
|
2
|
+
import type { OasRef } from './typings/openapi.js';
|
|
3
|
+
import type { ResolveResult, UserContext } from './walk.js';
|
|
4
|
+
export declare function joinPointer(base: string, key: string | number): string;
|
|
5
|
+
export declare function isRef(node: unknown): node is OasRef;
|
|
6
|
+
export declare function isExternalValue(node: unknown): boolean;
|
|
7
|
+
export declare class Location {
|
|
8
|
+
source: Source;
|
|
9
|
+
pointer: string;
|
|
10
|
+
constructor(source: Source, pointer: string);
|
|
11
|
+
child(components: (string | number)[] | string | number): Location;
|
|
12
|
+
key(): this & {
|
|
13
|
+
reportOnKey: boolean;
|
|
14
|
+
};
|
|
15
|
+
get absolutePointer(): string;
|
|
16
|
+
}
|
|
17
|
+
export declare function unescapePointerFragment(fragment: string): string;
|
|
18
|
+
export declare function escapePointerFragment<T extends string | number>(fragment: T): T;
|
|
19
|
+
export declare function parseRef(ref: string): {
|
|
20
|
+
uri: string | null;
|
|
21
|
+
pointer: string[];
|
|
22
|
+
};
|
|
23
|
+
export declare function parsePointer(pointer: string): string[];
|
|
24
|
+
export declare function pointerBaseName(pointer: string): string;
|
|
25
|
+
export declare function refBaseName(ref: string): string;
|
|
26
|
+
export declare function isAbsoluteUrl(ref: string): boolean;
|
|
27
|
+
export declare function getDir(filePath: string): string;
|
|
28
|
+
export declare function resolvePath(base: string, relative: string): string;
|
|
29
|
+
export declare function isMappingRef(mapping: string): boolean;
|
|
30
|
+
export declare function isAnchor(ref: string): boolean;
|
|
31
|
+
export declare function replaceRef(ref: OasRef, resolved: ResolveResult<any>, ctx: UserContext): void;
|
|
32
|
+
//# sourceMapp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,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,WAOxC;AAED,wBAAgB,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAQ/C;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKlE;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,WAU3C;AAED,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,WAEnC;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,aAAa,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,WAAW,QAUrF"}
|
package/lib/ref-utils.js
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import * as path from 'node:path';
|
|
2
|
+
import { isPlainObject } from './utils/is-plain-object.js';
|
|
3
|
+
import { isTruthy } from './utils/is-truthy.js';
|
|
4
|
+
export function joinPointer(base, key) {
|
|
5
|
+
if (base === '')
|
|
6
|
+
base = '#/';
|
|
7
|
+
return base[base.length - 1] === '/' ? base + key : base + '/' + key;
|
|
8
|
+
}
|
|
9
|
+
export function isRef(node) {
|
|
10
|
+
return isPlainObject(node) && typeof node.$ref === 'string';
|
|
11
|
+
}
|
|
12
|
+
export function isExternalValue(node) {
|
|
13
|
+
return isPlainObject(node) && typeof node.externalValue === 'string';
|
|
14
|
+
}
|
|
15
|
+
export class Location {
|
|
16
|
+
constructor(source, pointer) {
|
|
17
|
+
this.source = source;
|
|
18
|
+
this.pointer = pointer;
|
|
19
|
+
}
|
|
20
|
+
child(components) {
|
|
21
|
+
return new Location(this.source, joinPointer(this.pointer, (Array.isArray(components) ? components : [components]).map(escapePointerFragment).join('/')));
|
|
22
|
+
}
|
|
23
|
+
key() {
|
|
24
|
+
return { ...this, reportOnKey: true };
|
|
25
|
+
}
|
|
26
|
+
get absolutePointer() {
|
|
27
|
+
return this.source.absoluteRef + (this.pointer === '#/' ? '' : this.pointer);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export function unescapePointerFragment(fragment) {
|
|
31
|
+
const unescaped = fragment.indexOf('~') === -1 ? fragment : fragment.replaceAll('~1', '/').replaceAll('~0', '~');
|
|
32
|
+
try {
|
|
33
|
+
return decodeURIComponent(unescaped);
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
return unescaped;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export function escapePointerFragment(fragment) {
|
|
40
|
+
if (typeof fragment === 'number')
|
|
41
|
+
return fragment;
|
|
42
|
+
if (fragment.indexOf('/') === -1 && fragment.indexOf('~') === -1)
|
|
43
|
+
return fragment;
|
|
44
|
+
return fragment.replaceAll('~', '~0').replaceAll('/', '~1');
|
|
45
|
+
}
|
|
46
|
+
export function parseRef(ref) {
|
|
47
|
+
const [uri, pointer = ''] = ref.split('#/');
|
|
48
|
+
return {
|
|
49
|
+
uri: (uri.endsWith('#') ? uri.slice(0, -1) : uri) || null,
|
|
50
|
+
pointer: parsePointer(pointer),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function parsePointer(pointer) {
|
|
54
|
+
return pointer.split('/').map(unescapePointerFragment).filter(isTruthy);
|
|
55
|
+
}
|
|
56
|
+
export function pointerBaseName(pointer) {
|
|
57
|
+
const parts = pointer.split('/');
|
|
58
|
+
return parts[parts.length - 1];
|
|
59
|
+
}
|
|
60
|
+
export function refBaseName(ref) {
|
|
61
|
+
// eslint-disable-next-line no-useless-escape
|
|
62
|
+
const parts = ref.split(/[\/\\]/); // split by '\' and '/'
|
|
63
|
+
return parts[parts.length - 1].replace(/\.[^.]+$/, ''); // replace extension with empty string
|
|
64
|
+
}
|
|
65
|
+
export function isAbsoluteUrl(ref) {
|
|
66
|
+
return (ref.startsWith('http://') ||
|
|
67
|
+
ref.startsWith('https://') ||
|
|
68
|
+
ref.startsWith('file://') ||
|
|
69
|
+
ref.startsWith('data:'));
|
|
70
|
+
}
|
|
71
|
+
export function getDir(filePath) {
|
|
72
|
+
if (!path.extname(filePath)) {
|
|
73
|
+
return filePath;
|
|
74
|
+
}
|
|
75
|
+
return isAbsoluteUrl(filePath)
|
|
76
|
+
? filePath.substring(0, filePath.lastIndexOf('/'))
|
|
77
|
+
: path.dirname(filePath);
|
|
78
|
+
}
|
|
79
|
+
export function resolvePath(base, relative) {
|
|
80
|
+
if (isAbsoluteUrl(base)) {
|
|
81
|
+
return new URL(relative, base.endsWith('/') ? base : `${base}/`).href;
|
|
82
|
+
}
|
|
83
|
+
return path.resolve(base, relative);
|
|
84
|
+
}
|
|
85
|
+
export function isMappingRef(mapping) {
|
|
86
|
+
// TODO: proper detection of mapping refs
|
|
87
|
+
return (mapping.startsWith('#') ||
|
|
88
|
+
mapping.startsWith('https://') ||
|
|
89
|
+
mapping.startsWith('http://') ||
|
|
90
|
+
mapping.startsWith('./') ||
|
|
91
|
+
mapping.startsWith('../') ||
|
|
92
|
+
mapping.indexOf('/') > -1);
|
|
93
|
+
}
|
|
94
|
+
export function isAnchor(ref) {
|
|
95
|
+
return /^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(ref);
|
|
96
|
+
}
|
|
97
|
+
export function replaceRef(ref, resolved, ctx) {
|
|
98
|
+
if (!isPlainObject(resolved.node)) {
|
|
99
|
+
ctx.parent[ctx.key] = resolved.node;
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
delete ref.$ref;
|
|
105
|
+
const obj = Object.assign({}, resolved.node, ref);
|
|
106
|
+
Object.assign(ref, obj); // assign ref itself again so ref fields take precedence
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=ref-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ref-utils.js","sourceRoot":"","sources":["../src/ref-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,I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,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;QAClD,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,wDAAwD;IACnF,CAAC;AACH,CAAC"}
|
package/lib/resolve.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { YAMLNode, LoadOptions } from 'yaml-ast-parser';
|
|
2
|
+
import type { ResolveConfig } from './config/types.js';
|
|
3
|
+
import { YamlParseError } from './errors/yaml-parse-error.js';
|
|
4
|
+
import type { NormalizedNodeType } from './types/index.js';
|
|
5
|
+
export type CollectedRefs = Map<string, Document>;
|
|
6
|
+
export declare class Source {
|
|
7
|
+
absoluteRef: string;
|
|
8
|
+
body: string;
|
|
9
|
+
mimeType?: string | undefined;
|
|
10
|
+
constructor(absoluteRef: string, body: string, mimeType?: string | undefined);
|
|
11
|
+
private _ast;
|
|
12
|
+
private _lines;
|
|
13
|
+
getAst(safeLoad: (input: string, options?: LoadOptions | undefined) => YAMLNode): YAMLNode;
|
|
14
|
+
getLines(): string[];
|
|
15
|
+
}
|
|
16
|
+
export declare class ResolveError extends Error {
|
|
17
|
+
originalError: Error;
|
|
18
|
+
constructor(originalError: Error);
|
|
19
|
+
}
|
|
20
|
+
export type Document<T = unknown> = {
|
|
21
|
+
source: Source;
|
|
22
|
+
parsed: T;
|
|
23
|
+
};
|
|
24
|
+
export declare function makeDocumentFromString<T = unknown>(sourceString: string, absoluteRef: string): Document<T>;
|
|
25
|
+
export declare class BaseResolver {
|
|
26
|
+
protected config: ResolveConfig;
|
|
27
|
+
cache: Map<string, Promise<Document | ResolveError>>;
|
|
28
|
+
constructor(config?: ResolveConfig);
|
|
29
|
+
getFiles(): Set<string>;
|
|
30
|
+
resolveExternalRef(base: string | null, ref: string): string;
|
|
31
|
+
loadExternalRef(absoluteRef: string): Promise<Source>;
|
|
32
|
+
parseDocument(source: Source, isRoot?: boolean): Document;
|
|
33
|
+
resolveDocument<T = unknown>(base: string | null, ref: string, isRoot?: boolean): Promise<Document<T> | ResolveError | YamlParseError>;
|
|
34
|
+
}
|
|
35
|
+
export type ResolvedRef = {
|
|
36
|
+
resolved: false;
|
|
37
|
+
isRemote: boolean;
|
|
38
|
+
nodePointer?: string;
|
|
39
|
+
document?: Document;
|
|
40
|
+
source?: Source;
|
|
41
|
+
error?: ResolveError | YamlParseError;
|
|
42
|
+
node?: any;
|
|
43
|
+
} | {
|
|
44
|
+
resolved: true;
|
|
45
|
+
node: any;
|
|
46
|
+
document: Document;
|
|
47
|
+
nodePointer: string;
|
|
48
|
+
isRemote: boolean;
|
|
49
|
+
error?: undefined;
|
|
50
|
+
};
|
|
51
|
+
export type ResolvedRefMap = Map<string, ResolvedRef>;
|
|
52
|
+
export declare function resolveDocument(opts: {
|
|
53
|
+
rootDocument: Document;
|
|
54
|
+
externalRefResolver: BaseResolver;
|
|
55
|
+
rootType: NormalizedNodeType;
|
|
56
|
+
}): Promise<ResolvedRefMap>;
|
|
57
|
+
//# sourceMappingURL=resolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["../src/resolve.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAY9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAO3D,MAAM,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,EAAyB,QAAQ,CAAC,CAAC;AAEzE,qBAAa,MAAM;IAER,WAAW,EAAE,MAAM;IACnB,IAAI,EAAE,MAAM;IACZ,QAAQ,CAAC,EAAE,MAAM;gBAFjB,WAAW,EAAE,MAAM,EACnB,IAAI,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AAW,GACnB;IACE,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;IACtC,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,GACD;IACE,QAAQ,EAAE,IAAI,CAAC;IACf,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEN,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AA2BtD,wBAAsB,eAAe,CAAC,IAAI,EAAE;IAC1C,YAAY,EAAE,QAAQ,CAAC;IACvB,mBAAmB,EAAE,YAAY,CAAC;IAClC,QAAQ,EAAE,kBAAkB,CAAC;CAC9B,GAAG,OAAO,CAAC,cAAc,CAAC,CAmP1B"}
|
package/lib/resolve.js
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import * as fs from 'node:fs';
|
|
2
|
+
import * as path from 'node:path';
|
|
3
|
+
import { YamlParseError } from './errors/yaml-parse-error.js';
|
|
4
|
+
import { parseYaml } from './js-yaml/index.js';
|
|
5
|
+
import { isRef, joinPointer, escapePointerFragment, parseRef, isAbsoluteUrl, isAnchor, isExternalValue, } from './ref-utils.js';
|
|
6
|
+
import { isNamedType, SpecExtension } from './types/index.js';
|
|
7
|
+
import { getOwn } from './utils/get-own.js';
|
|
8
|
+
import { makeRefId } from './utils/make-ref-id.js';
|
|
9
|
+
import { nextTick } from './utils/next-tick.js';
|
|
10
|
+
import { readFileFromUrl } from './utils/read-file-from-url.js';
|
|
11
|
+
export class Source {
|
|
12
|
+
constructor(absoluteRef, body, mimeType) {
|
|
13
|
+
this.absoluteRef = absoluteRef;
|
|
14
|
+
this.body = body;
|
|
15
|
+
this.mimeType = mimeType;
|
|
16
|
+
}
|
|
17
|
+
// pass safeLoad as argument to separate it from browser bundle
|
|
18
|
+
getAst(safeLoad) {
|
|
19
|
+
if (this._ast === undefined) {
|
|
20
|
+
this._ast = safeLoad(this.body, { filename: this.absoluteRef }) ?? undefined;
|
|
21
|
+
// fix ast representation of file with newlines only
|
|
22
|
+
if (this._ast &&
|
|
23
|
+
this._ast.kind === 0 && // KIND.scalar = 0
|
|
24
|
+
this._ast.value === '' &&
|
|
25
|
+
this._ast.startPosition !== 1) {
|
|
26
|
+
this._ast.startPosition = 1;
|
|
27
|
+
this._ast.endPosition = 1;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
return this._ast;
|
|
31
|
+
}
|
|
32
|
+
getLines() {
|
|
33
|
+
if (this._lines === undefined) {
|
|
34
|
+
this._lines = this.body.split(/\r\n|[\n\r]/g);
|
|
35
|
+
}
|
|
36
|
+
return this._lines;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class ResolveError extends Error {
|
|
40
|
+
constructor(originalError) {
|
|
41
|
+
super(originalError.message);
|
|
42
|
+
this.originalError = originalError;
|
|
43
|
+
// Set the prototype explicitly.
|
|
44
|
+
Object.setPrototypeOf(this, ResolveError.prototype);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export function makeDocumentFromString(sourceString, absoluteRef) {
|
|
48
|
+
const source = new Source(absoluteRef, sourceString);
|
|
49
|
+
try {
|
|
50
|
+
return {
|
|
51
|
+
source,
|
|
52
|
+
parsed: parseYaml(sourceString, { filename: absoluteRef }),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
catch (e) {
|
|
56
|
+
throw new YamlParseError(e, source);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
export class BaseResolver {
|
|
60
|
+
constructor(config = { http: { headers: [] } }) {
|
|
61
|
+
this.config = config;
|
|
62
|
+
this.cache = new Map();
|
|
63
|
+
}
|
|
64
|
+
getFiles() {
|
|
65
|
+
return new Set(Array.from(this.cache.keys()));
|
|
66
|
+
}
|
|
67
|
+
resolveExternalRef(base, ref) {
|
|
68
|
+
if (isAbsoluteUrl(ref)) {
|
|
69
|
+
return ref;
|
|
70
|
+
}
|
|
71
|
+
if (base && isAbsoluteUrl(base)) {
|
|
72
|
+
return new URL(ref, base).href;
|
|
73
|
+
}
|
|
74
|
+
return path.resolve(base ? path.dirname(base) : process.cwd(), ref);
|
|
75
|
+
}
|
|
76
|
+
async loadExternalRef(absoluteRef) {
|
|
77
|
+
try {
|
|
78
|
+
if (isAbsoluteUrl(absoluteRef)) {
|
|
79
|
+
const { body, mimeType } = await readFileFromUrl(absoluteRef, this.config.http);
|
|
80
|
+
return new Source(absoluteRef, body, mimeType);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
if (fs.lstatSync(absoluteRef).isDirectory()) {
|
|
84
|
+
throw new Error(`Expected a file but received a folder at ${absoluteRef}.`);
|
|
85
|
+
}
|
|
86
|
+
const content = await fs.promises.readFile(absoluteRef, 'utf-8');
|
|
87
|
+
// In some cases file have \r\n line delimeters like on windows, we should skip it.
|
|
88
|
+
return new Source(absoluteRef, content.replace(/\r\n/g, '\n'));
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
catch (error) {
|
|
92
|
+
error.message = error.message.replace(', lstat', '');
|
|
93
|
+
throw new ResolveError(error);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
parseDocument(source, isRoot = false) {
|
|
97
|
+
const ext = source.absoluteRef.substr(source.absoluteRef.lastIndexOf('.'));
|
|
98
|
+
if (!['.json', '.json', '.yml', '.yaml'].includes(ext) &&
|
|
99
|
+
!source.mimeType?.match(/(json|yaml|openapi)/) &&
|
|
100
|
+
!isRoot // always parse root
|
|
101
|
+
) {
|
|
102
|
+
return { source, parsed: source.body };
|
|
103
|
+
}
|
|
104
|
+
try {
|
|
105
|
+
return {
|
|
106
|
+
source,
|
|
107
|
+
parsed: parseYaml(source.body, { filename: source.absoluteRef }),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
catch (e) {
|
|
111
|
+
throw new YamlParseError(e, source);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
async resolveDocument(base, ref, isRoot = false) {
|
|
115
|
+
const absoluteRef = this.resolveExternalRef(base, ref);
|
|
116
|
+
const cachedDocument = this.cache.get(absoluteRef);
|
|
117
|
+
if (cachedDocument) {
|
|
118
|
+
return cachedDocument;
|
|
119
|
+
}
|
|
120
|
+
const doc = this.loadExternalRef(absoluteRef).then((source) => {
|
|
121
|
+
return this.parseDocument(source, isRoot);
|
|
122
|
+
});
|
|
123
|
+
this.cache.set(absoluteRef, doc);
|
|
124
|
+
return doc;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function pushRef(head, node) {
|
|
128
|
+
return {
|
|
129
|
+
prev: head,
|
|
130
|
+
node,
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function hasRef(head, node) {
|
|
134
|
+
while (head) {
|
|
135
|
+
if (head.node === node) {
|
|
136
|
+
return true;
|
|
137
|
+
}
|
|
138
|
+
head = head.prev;
|
|
139
|
+
}
|
|
140
|
+
return false;
|
|
141
|
+
}
|
|
142
|
+
const unknownType = { name: 'unknown', properties: {} };
|
|
143
|
+
const resolvableScalarType = { name: 'scalar', properties: {} };
|
|
144
|
+
export async function resolveDocument(opts) {
|
|
145
|
+
const { rootDocument, externalRefResolver, rootType } = opts;
|
|
146
|
+
const resolvedRefMap = new Map();
|
|
147
|
+
const seenNodes = new Set(); // format "${type}::${absoluteRef}${pointer}"
|
|
148
|
+
const resolvePromises = [];
|
|
149
|
+
resolveRefsInParallel(rootDocument.parsed, rootDocument, '#/', rootType);
|
|
150
|
+
let resolved;
|
|
151
|
+
do {
|
|
152
|
+
resolved = await Promise.all(resolvePromises);
|
|
153
|
+
} while (resolvePromises.length !== resolved.length);
|
|
154
|
+
return resolvedRefMap;
|
|
155
|
+
function resolveRefsInParallel(rootNode, rootNodeDocument, rootNodePointer, type) {
|
|
156
|
+
const rootNodeDocAbsoluteRef = rootNodeDocument.source.absoluteRef;
|
|
157
|
+
const anchorRefsMap = new Map();
|
|
158
|
+
walk(rootNode, type, rootNodeDocAbsoluteRef + rootNodePointer);
|
|
159
|
+
function walk(node, type, nodeAbsoluteRef) {
|
|
160
|
+
if (typeof node !== 'object' || node === null) {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
const nodeId = `${type.name}::${nodeAbsoluteRef}`;
|
|
164
|
+
if (seenNodes.has(nodeId)) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
seenNodes.add(nodeId);
|
|
168
|
+
const [_, anchor] = Object.entries(node).find(([key]) => key === '$anchor') || [];
|
|
169
|
+
if (anchor) {
|
|
170
|
+
anchorRefsMap.set(`#${anchor}`, node);
|
|
171
|
+
}
|
|
172
|
+
if (Array.isArray(node)) {
|
|
173
|
+
const itemsType = type.items;
|
|
174
|
+
// we continue resolving unknown types, but stop early on known scalars
|
|
175
|
+
if (itemsType === undefined && type !== unknownType && type !== SpecExtension) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
const isTypeAFunction = typeof itemsType === 'function';
|
|
179
|
+
for (let i = 0; i < node.length; i++) {
|
|
180
|
+
let itemType = isTypeAFunction
|
|
181
|
+
? itemsType(node[i], joinPointer(nodeAbsoluteRef, i))
|
|
182
|
+
: itemsType;
|
|
183
|
+
// we continue resolving unknown types, but stop early on known scalars
|
|
184
|
+
if (itemType === undefined && type !== unknownType && type !== SpecExtension) {
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
const value = itemType?.directResolveAs ? { $ref: node[i] } : node[i];
|
|
188
|
+
itemType = itemType?.directResolveAs || itemType;
|
|
189
|
+
walk(value, isNamedType(itemType) ? itemType : unknownType, joinPointer(nodeAbsoluteRef, i));
|
|
190
|
+
}
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
for (const propName of Object.keys(node)) {
|
|
194
|
+
let propValue = node[propName];
|
|
195
|
+
let propType = getOwn(type.properties, propName);
|
|
196
|
+
if (propType === undefined)
|
|
197
|
+
propType = type.additionalProperties;
|
|
198
|
+
if (typeof propType === 'function')
|
|
199
|
+
propType = propType(propValue, propName);
|
|
200
|
+
if (propType === undefined)
|
|
201
|
+
propType = unknownType;
|
|
202
|
+
if (type.extensionsPrefix &&
|
|
203
|
+
propName.startsWith(type.extensionsPrefix) &&
|
|
204
|
+
propType === unknownType) {
|
|
205
|
+
propType = SpecExtension;
|
|
206
|
+
}
|
|
207
|
+
if (!isNamedType(propType) && propType?.directResolveAs) {
|
|
208
|
+
propType = propType.directResolveAs;
|
|
209
|
+
propValue = { $ref: propValue };
|
|
210
|
+
}
|
|
211
|
+
if (propType && propType.name === undefined && propType.resolvable !== false) {
|
|
212
|
+
propType = resolvableScalarType;
|
|
213
|
+
}
|
|
214
|
+
if (!isNamedType(propType) || typeof propValue !== 'object') {
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
walk(propValue, propType, joinPointer(nodeAbsoluteRef, escapePointerFragment(propName)));
|
|
218
|
+
}
|
|
219
|
+
if (isRef(node)) {
|
|
220
|
+
const promise = followRef(rootNodeDocument, node, {
|
|
221
|
+
prev: null,
|
|
222
|
+
node,
|
|
223
|
+
}).then((resolvedRef) => {
|
|
224
|
+
if (resolvedRef.resolved) {
|
|
225
|
+
resolveRefsInParallel(resolvedRef.node, resolvedRef.document, resolvedRef.nodePointer, type);
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
resolvePromises.push(promise);
|
|
229
|
+
}
|
|
230
|
+
// handle example.externalValue as reference
|
|
231
|
+
if (isExternalValue(node)) {
|
|
232
|
+
const promise = followRef(rootNodeDocument, { $ref: node.externalValue }, {
|
|
233
|
+
prev: null,
|
|
234
|
+
node,
|
|
235
|
+
}).then((resolvedRef) => {
|
|
236
|
+
if (resolvedRef.resolved) {
|
|
237
|
+
resolveRefsInParallel(resolvedRef.node, resolvedRef.document, resolvedRef.nodePointer, type);
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
resolvePromises.push(promise);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async function followRef(document, ref, refStack) {
|
|
244
|
+
if (hasRef(refStack.prev, ref)) {
|
|
245
|
+
throw new Error('Self-referencing circular pointer');
|
|
246
|
+
}
|
|
247
|
+
if (isAnchor(ref.$ref)) {
|
|
248
|
+
// Wait for all anchors in the document to be collected firstly.
|
|
249
|
+
await nextTick();
|
|
250
|
+
const resolvedRef = {
|
|
251
|
+
resolved: true,
|
|
252
|
+
isRemote: false,
|
|
253
|
+
node: anchorRefsMap.get(ref.$ref),
|
|
254
|
+
document,
|
|
255
|
+
nodePointer: ref.$ref,
|
|
256
|
+
};
|
|
257
|
+
const refId = makeRefId(document.source.absoluteRef, ref.$ref);
|
|
258
|
+
resolvedRefMap.set(refId, resolvedRef);
|
|
259
|
+
return resolvedRef;
|
|
260
|
+
}
|
|
261
|
+
const { uri, pointer } = parseRef(ref.$ref);
|
|
262
|
+
const isRemote = uri !== null &&
|
|
263
|
+
externalRefResolver.resolveExternalRef(document.source.absoluteRef, uri) !==
|
|
264
|
+
document.source.absoluteRef;
|
|
265
|
+
let targetDoc;
|
|
266
|
+
try {
|
|
267
|
+
targetDoc = isRemote
|
|
268
|
+
? (await externalRefResolver.resolveDocument(document.source.absoluteRef, uri))
|
|
269
|
+
: document;
|
|
270
|
+
}
|
|
271
|
+
catch (error) {
|
|
272
|
+
const resolvedRef = {
|
|
273
|
+
resolved: false,
|
|
274
|
+
isRemote,
|
|
275
|
+
document: undefined,
|
|
276
|
+
error: error,
|
|
277
|
+
};
|
|
278
|
+
const refId = makeRefId(document.source.absoluteRef, ref.$ref);
|
|
279
|
+
resolvedRefMap.set(refId, resolvedRef);
|
|
280
|
+
return resolvedRef;
|
|
281
|
+
}
|
|
282
|
+
let resolvedRef = {
|
|
283
|
+
resolved: true,
|
|
284
|
+
document: targetDoc,
|
|
285
|
+
isRemote,
|
|
286
|
+
node: document.parsed,
|
|
287
|
+
nodePointer: '#/',
|
|
288
|
+
};
|
|
289
|
+
let target = targetDoc.parsed;
|
|
290
|
+
const segments = pointer;
|
|
291
|
+
for (const segment of segments) {
|
|
292
|
+
if (typeof target !== 'object') {
|
|
293
|
+
target = undefined;
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
else if (target[segment] !== undefined) {
|
|
297
|
+
target = target[segment];
|
|
298
|
+
resolvedRef.nodePointer = joinPointer(resolvedRef.nodePointer, escapePointerFragment(segment));
|
|
299
|
+
}
|
|
300
|
+
else if (isRef(target)) {
|
|
301
|
+
resolvedRef = await followRef(targetDoc, target, pushRef(refStack, target));
|
|
302
|
+
targetDoc = resolvedRef.document || targetDoc;
|
|
303
|
+
if (typeof resolvedRef.node !== 'object') {
|
|
304
|
+
target = undefined;
|
|
305
|
+
break;
|
|
306
|
+
}
|
|
307
|
+
target = resolvedRef.node[segment];
|
|
308
|
+
resolvedRef.nodePointer = joinPointer(resolvedRef.nodePointer, escapePointerFragment(segment));
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
target = undefined;
|
|
312
|
+
break;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
resolvedRef.node = target;
|
|
316
|
+
resolvedRef.document = targetDoc;
|
|
317
|
+
const refId = makeRefId(document.source.absoluteRef, ref.$ref);
|
|
318
|
+
if (resolvedRef.document && isRef(target)) {
|
|
319
|
+
resolvedRef = await followRef(resolvedRef.document, target, pushRef(refStack, target));
|
|
320
|
+
}
|
|
321
|
+
resolvedRefMap.set(refId, resolvedRef);
|
|
322
|
+
return { ...resolvedRef };
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
//# sourceMappingURL=resolve.js.map
|
|
@@ -0,0 +1 @@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,SAAS,CAAC;YACjC,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;YAC/D,IAAI,WAAW,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;gBAC1C,WAAW,GAAG,MAAM,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;YACzF,CAAC;YACD,cAAc,CAAC,GAAG,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;YACvC,OAAO,EAAE,GAAG,WAAW,EAAE,CAAC;QAC5B,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ErrorObject, Context as AjvContext } from '@redocly/ajv/dist/2020.js';
|
|
2
|
+
import type { SpecVersion } from '../oas-types.js';
|
|
3
|
+
import type { Location } from '../ref-utils.js';
|
|
4
|
+
import type { Oas3Schema, Oas3_1Schema } from '../typings/openapi.js';
|
|
5
|
+
import type { ResolveFn } from '../walk.js';
|
|
6
|
+
export declare function releaseAjvInstance(): void;
|
|
7
|
+
export declare function validateJsonSchema(data: unknown, schema: Oas3Schema | Oas3_1Schema, options: {
|
|
8
|
+
schemaLoc: Location;
|
|
9
|
+
instancePath: string;
|
|
10
|
+
resolve: ResolveFn;
|
|
11
|
+
allowAdditionalProperties: boolean;
|
|
12
|
+
ajvContext?: AjvContext;
|
|
13
|
+
specVersion: SpecVersion;
|
|
14
|
+
}): {
|
|
15
|
+
valid: boolean;
|
|
16
|
+
errors: (ErrorObject & {
|
|
17
|
+
suggest?: string[];
|
|
18
|
+
})[];
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=ajv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ajv.d.ts","sourceRoot":"","sources":["../../src/rules/ajv.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,WAAW,EAEX,OAAO,IAAI,UAAU,EAEtB,MAAM,2BAA2B,CAAC;AAInC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAO5C,wBAAgB,kBAAkB,SAGjC;AAuED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,UAAU,GAAG,YAAY,EACjC,OAAO,EAAE;IACP,SAAS,EAAE,QAAQ,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,SAAS,CAAC;IACnB,yBAAyB,EAAE,OAAO,CAAC;IACnC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,WAAW,EAAE,WAAW,CAAC;CAC1B,GACA;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,CAAC,WAAW,GAAG;QAAE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,EAAE,CAAA;CAAE,CAkDtE"}
|