From 9a20ace52d28d247817d6cb93c6f07f0ae88e33c Mon Sep 17 00:00:00 2001 From: Oliwia Rogala Date: Thu, 7 Nov 2024 11:04:20 +0000 Subject: [PATCH] build(ns-openapi-3-0): use nodenext for TypeScript modules Refs #4385 --- packages/apidom-ns-openapi-3-0/.eslintrc | 22 ++ .../check-types-test.tsconfig.json | 9 + .../check-types.tsconfig.json | 11 + packages/apidom-ns-openapi-3-0/package.json | 2 +- .../src/elements/Header.ts | 4 +- .../src/elements/Info.ts | 4 +- .../src/elements/Link.ts | 4 +- .../src/elements/MediaType.ts | 4 +- .../src/elements/OAuthFlows.ts | 2 +- .../src/elements/OpenApi3-0.ts | 10 +- .../src/elements/Operation.ts | 8 +- .../src/elements/Parameter.ts | 4 +- .../src/elements/PathItem.ts | 2 +- .../src/elements/Responses.ts | 4 +- .../src/elements/Schema.ts | 8 +- .../src/elements/SecurityScheme.ts | 2 +- .../apidom-ns-openapi-3-0/src/elements/Tag.ts | 2 +- packages/apidom-ns-openapi-3-0/src/index.ts | 302 +++++++++--------- .../apidom-ns-openapi-3-0/src/namespace.ts | 62 ++-- .../apidom-ns-openapi-3-0/src/predicates.ts | 52 +-- .../src/refractor/index.ts | 8 +- .../plugins/replace-empty-element.ts | 126 ++++---- .../src/refractor/registration.ts | 64 ++-- .../src/refractor/specification.ts | 172 +++++----- .../src/refractor/toolbox.ts | 4 +- .../src/refractor/visitors/FallbackVisitor.ts | 2 +- .../visitors/SpecificationExtensionVisitor.ts | 2 +- .../visitors/SpecificationVisitor.ts | 8 +- .../visitors/generics/AlternatingVisitor.ts | 2 +- .../visitors/generics/FixedFieldsVisitor.ts | 4 +- .../refractor/visitors/generics/MapVisitor.ts | 2 +- .../visitors/generics/MixedFieldsVisitor.ts | 4 +- .../generics/PatternedFieldsVisitor.ts | 6 +- .../visitors/open-api-3-0/ContentVisitor.ts | 4 +- .../visitors/open-api-3-0/ExamplesVisitor.ts | 10 +- .../visitors/open-api-3-0/OpenapiVisitor.ts | 6 +- .../open-api-3-0/ParametersVisitor.ts | 8 +- .../visitors/open-api-3-0/SecurityVisitor.ts | 6 +- .../visitors/open-api-3-0/ServersVisitor.ts | 8 +- .../visitors/open-api-3-0/TagsVisitor.ts | 8 +- .../visitors/open-api-3-0/callback/index.ts | 12 +- .../components/CallbacksVisitor.ts | 12 +- .../components/ExamplesVisitor.ts | 12 +- .../open-api-3-0/components/HeadersVisitor.ts | 12 +- .../open-api-3-0/components/LinksVisitor.ts | 12 +- .../components/ParametersVisitor.ts | 12 +- .../components/RequestBodiesVisitor.ts | 12 +- .../components/ResponsesVisitor.ts | 12 +- .../open-api-3-0/components/SchemasVisitor.ts | 12 +- .../components/SecuritySchemesVisitor.ts | 12 +- .../visitors/open-api-3-0/components/index.ts | 6 +- .../visitors/open-api-3-0/contact/index.ts | 6 +- .../distriminator/MappingVisitor.ts | 6 +- .../open-api-3-0/distriminator/index.ts | 6 +- .../open-api-3-0/encoding/HeadersVisitor.ts | 12 +- .../visitors/open-api-3-0/encoding/index.ts | 10 +- .../example/ExternalValueVisitor.ts | 2 +- .../visitors/open-api-3-0/example/index.ts | 6 +- .../external-documentation/index.ts | 6 +- .../open-api-3-0/header/ContentVisitor.ts | 4 +- .../open-api-3-0/header/ExamplesVisitor.ts | 4 +- .../open-api-3-0/header/SchemaVisitor.ts | 8 +- .../visitors/open-api-3-0/header/index.ts | 6 +- .../refractor/visitors/open-api-3-0/index.ts | 6 +- .../open-api-3-0/info/VersionVisitor.ts | 2 +- .../visitors/open-api-3-0/info/index.ts | 6 +- .../visitors/open-api-3-0/license/index.ts | 6 +- .../open-api-3-0/link/OperationIdVisitor.ts | 2 +- .../open-api-3-0/link/OperationRefVisitor.ts | 2 +- .../open-api-3-0/link/ParametersVisitor.ts | 6 +- .../visitors/open-api-3-0/link/index.ts | 6 +- .../media-type/EncodingVisitor.ts | 6 +- .../media-type/ExamplesVisitor.ts | 4 +- .../open-api-3-0/media-type/SchemaVisitor.ts | 8 +- .../visitors/open-api-3-0/media-type/index.ts | 6 +- .../open-api-3-0/oauth-flow/ScopesVisitor.ts | 6 +- .../visitors/open-api-3-0/oauth-flow/index.ts | 6 +- .../open-api-3-0/oauth-flows/index.ts | 6 +- .../operation/CallbacksVisitor.ts | 12 +- .../operation/ParametersVisitor.ts | 4 +- .../operation/RequestBodyVisitor.ts | 8 +- .../open-api-3-0/operation/SecurityVisitor.ts | 6 +- .../open-api-3-0/operation/ServersVisitor.ts | 4 +- .../open-api-3-0/operation/TagsVisitor.ts | 4 +- .../visitors/open-api-3-0/operation/index.ts | 6 +- .../open-api-3-0/parameter/ContentVisitor.ts | 4 +- .../open-api-3-0/parameter/ExamplesVisitor.ts | 4 +- .../open-api-3-0/parameter/SchemaVisitor.ts | 8 +- .../visitors/open-api-3-0/parameter/index.ts | 10 +- .../open-api-3-0/path-item/$RefVisitor.ts | 2 +- .../path-item/ParametersVisitor.ts | 4 +- .../open-api-3-0/path-item/ServersVisitor.ts | 4 +- .../visitors/open-api-3-0/path-item/index.ts | 10 +- .../visitors/open-api-3-0/paths/index.ts | 10 +- .../open-api-3-0/reference/$RefVisitor.ts | 2 +- .../visitors/open-api-3-0/reference/index.ts | 6 +- .../request-body/ContentVisitor.ts | 4 +- .../open-api-3-0/request-body/index.ts | 10 +- .../open-api-3-0/response/ContentVisitor.ts | 4 +- .../open-api-3-0/response/HeadersVisitor.ts | 12 +- .../open-api-3-0/response/LinksVisitor.ts | 12 +- .../visitors/open-api-3-0/response/index.ts | 12 +- .../open-api-3-0/responses/DefaultVisitor.ts | 8 +- .../visitors/open-api-3-0/responses/index.ts | 12 +- .../open-api-3-0/schema/AllOfVisitor.ts | 4 +- .../open-api-3-0/schema/AnyOfVisitor.ts | 4 +- .../open-api-3-0/schema/ItemsVisitor.ts | 2 +- .../open-api-3-0/schema/OneOfVisitor.ts | 4 +- .../open-api-3-0/schema/PropertiesVisitor.ts | 4 +- .../schema/SchemaOrReferenceVisitor.ts | 4 +- .../visitors/open-api-3-0/schema/index.ts | 6 +- .../security-requirement/index.ts | 6 +- .../open-api-3-0/security-scheme/index.ts | 6 +- .../open-api-3-0/server-variable/index.ts | 6 +- .../open-api-3-0/server/UrlVisitor.ts | 2 +- .../open-api-3-0/server/VariablesVisitor.ts | 6 +- .../visitors/open-api-3-0/server/index.ts | 6 +- .../visitors/open-api-3-0/tag/index.ts | 6 +- .../visitors/open-api-3-0/xml/index.ts | 6 +- .../test/mocha-bootstrap.ts | 4 +- .../apidom-ns-openapi-3-0/test/predicates.ts | 2 +- .../test/refractor/elements/Callback/index.ts | 2 +- .../refractor/elements/Components/index.ts | 2 +- .../test/refractor/elements/Contact/index.ts | 2 +- .../refractor/elements/Discriminator/index.ts | 2 +- .../test/refractor/elements/Encoding/index.ts | 2 +- .../test/refractor/elements/Example/index.ts | 2 +- .../elements/ExternalDocumentation/index.ts | 2 +- .../test/refractor/elements/Header/index.ts | 2 +- .../test/refractor/elements/Info/index.ts | 2 +- .../test/refractor/elements/License/index.ts | 2 +- .../test/refractor/elements/Link/index.ts | 2 +- .../refractor/elements/MediaType/index.ts | 2 +- .../refractor/elements/OAuthFlow/index.ts | 2 +- .../refractor/elements/OAuthFlows/index.ts | 2 +- .../refractor/elements/OpenApi3-0/index.ts | 2 +- .../test/refractor/elements/Openapi/index.ts | 2 +- .../refractor/elements/Operation/index.ts | 2 +- .../refractor/elements/Parameter/index.ts | 2 +- .../test/refractor/elements/PathItem/index.ts | 2 +- .../test/refractor/elements/Paths/index.ts | 2 +- .../refractor/elements/Reference/index.ts | 2 +- .../refractor/elements/RequestBody/index.ts | 2 +- .../test/refractor/elements/Response/index.ts | 2 +- .../refractor/elements/Responses/index.ts | 2 +- .../test/refractor/elements/Schema/index.ts | 2 +- .../elements/SecurityRequirement/index.ts | 2 +- .../elements/SecurityScheme/index.ts | 2 +- .../test/refractor/elements/Server/index.ts | 2 +- .../elements/ServerVariable/index.ts | 2 +- .../test/refractor/elements/Tag/index.ts | 2 +- .../test/refractor/elements/Xml/index.ts | 2 +- .../test/refractor/index.ts | 4 +- .../plugins/replace-empty-element/mappings.ts | 2 +- .../replace-empty-element/sequences.ts | 2 +- packages/apidom-ns-openapi-3-0/tsconfig.json | 5 + 156 files changed, 817 insertions(+), 770 deletions(-) create mode 100644 packages/apidom-ns-openapi-3-0/.eslintrc create mode 100644 packages/apidom-ns-openapi-3-0/check-types-test.tsconfig.json create mode 100644 packages/apidom-ns-openapi-3-0/check-types.tsconfig.json diff --git a/packages/apidom-ns-openapi-3-0/.eslintrc b/packages/apidom-ns-openapi-3-0/.eslintrc new file mode 100644 index 0000000000..86a24bfc5c --- /dev/null +++ b/packages/apidom-ns-openapi-3-0/.eslintrc @@ -0,0 +1,22 @@ +{ + "settings": { + "import/resolver": { + "typescript": { + "project": ["./tsconfig.json"] + } + } + }, + "rules": { + "import/extensions": [ + "error", + "always", + { + "ts": "always", + "tsx": "always", + "js": "always", + "jsx": "never", + "ignorePackages": true + } + ] + } +} diff --git a/packages/apidom-ns-openapi-3-0/check-types-test.tsconfig.json b/packages/apidom-ns-openapi-3-0/check-types-test.tsconfig.json new file mode 100644 index 0000000000..d031802e04 --- /dev/null +++ b/packages/apidom-ns-openapi-3-0/check-types-test.tsconfig.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "allowImportingTsExtensions": true + }, + "include": [ + "test/**/*" + ] +} diff --git a/packages/apidom-ns-openapi-3-0/check-types.tsconfig.json b/packages/apidom-ns-openapi-3-0/check-types.tsconfig.json new file mode 100644 index 0000000000..501a41d3f2 --- /dev/null +++ b/packages/apidom-ns-openapi-3-0/check-types.tsconfig.json @@ -0,0 +1,11 @@ +{ + "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "allowImportingTsExtensions": true + }, + "include": [ + "src/**/*" + ] +} diff --git a/packages/apidom-ns-openapi-3-0/package.json b/packages/apidom-ns-openapi-3-0/package.json index d4fdb56e91..8479cbbf9e 100644 --- a/packages/apidom-ns-openapi-3-0/package.json +++ b/packages/apidom-ns-openapi-3-0/package.json @@ -29,7 +29,7 @@ "clean": "rimraf --glob 'src/**/*.mjs' 'src/**/*.cjs' 'test/**/*.mjs' ./dist ./types", "test": "npm run build:es && cross-env BABEL_ENV=es babel test --out-dir test --extensions '.ts' --out-file-extension '.mjs' --root-mode 'upward' && cross-env NODE_ENV=test mocha", "test:update-snapshots": "cross-env UPDATE_SNAPSHOT=1 mocha", - "typescript:check-types": "tsc --noEmit", + "typescript:check-types": "tsc -p check-types.tsconfig.json --noEmit && tsc -p check-types-test.tsconfig.json --noEmit", "typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js", "prepack": "copyfiles -u 3 ../../LICENSES/* LICENSES && copyfiles -u 2 ../../NOTICE .", "postpack": "rimraf NOTICE LICENSES" diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Header.ts b/packages/apidom-ns-openapi-3-0/src/elements/Header.ts index 540898ae3b..7a40387678 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Header.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Header.ts @@ -7,8 +7,8 @@ import { Element, } from '@swagger-api/apidom-core'; -import SchemaElement from './Schema'; -import ReferenceElement from './Reference'; +import SchemaElement from './Schema.ts'; +import ReferenceElement from './Reference.ts'; class Header extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Info.ts b/packages/apidom-ns-openapi-3-0/src/elements/Info.ts index 975b50ab9a..310c02895f 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Info.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Info.ts @@ -1,7 +1,7 @@ import { StringElement, ObjectElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import ContactElement from './Contact'; -import LicenseElement from './License'; +import ContactElement from './Contact.ts'; +import LicenseElement from './License.ts'; class Info extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Link.ts b/packages/apidom-ns-openapi-3-0/src/elements/Link.ts index 5a6df5b962..84d713dc5e 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Link.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Link.ts @@ -7,8 +7,8 @@ import { Meta, } from '@swagger-api/apidom-core'; -import ServerElement from './Server'; -import OperationElement from './Operation'; +import ServerElement from './Server.ts'; +import OperationElement from './Operation.ts'; class Link extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/MediaType.ts b/packages/apidom-ns-openapi-3-0/src/elements/MediaType.ts index dd34bcdb85..92a9544720 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/MediaType.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/MediaType.ts @@ -1,7 +1,7 @@ import { ObjectElement, Element, Attributes, Meta } from '@swagger-api/apidom-core'; -import SchemaElement from './Schema'; -import ReferenceElement from './Reference'; +import SchemaElement from './Schema.ts'; +import ReferenceElement from './Reference.ts'; class MediaType extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/OAuthFlows.ts b/packages/apidom-ns-openapi-3-0/src/elements/OAuthFlows.ts index 2b80bded87..a8b80eca7f 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/OAuthFlows.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/OAuthFlows.ts @@ -1,6 +1,6 @@ import { ObjectElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import OAuthFlowElement from './OAuthFlow'; +import OAuthFlowElement from './OAuthFlow.ts'; class OAuthFlows extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/OpenApi3-0.ts b/packages/apidom-ns-openapi-3-0/src/elements/OpenApi3-0.ts index 6bc500279a..5899c53fa2 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/OpenApi3-0.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/OpenApi3-0.ts @@ -1,10 +1,10 @@ import { ObjectElement, ArrayElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import OpenapiElement from './Openapi'; -import InfoElement from './Info'; -import ComponentsElement from './Components'; -import PathsElement from './Paths'; -import ExternalDocumentationElement from './ExternalDocumentation'; +import OpenapiElement from './Openapi.ts'; +import InfoElement from './Info.ts'; +import ComponentsElement from './Components.ts'; +import PathsElement from './Paths.ts'; +import ExternalDocumentationElement from './ExternalDocumentation.ts'; // eslint-disable-next-line @typescript-eslint/naming-convention class OpenApi3_0 extends ObjectElement { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Operation.ts b/packages/apidom-ns-openapi-3-0/src/elements/Operation.ts index afdd010e80..e28e59b5e0 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Operation.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Operation.ts @@ -7,10 +7,10 @@ import { Meta, } from '@swagger-api/apidom-core'; -import ReferenceElement from './Reference'; -import ExternalDocumentationElement from './ExternalDocumentation'; -import RequestBodyElement from './RequestBody'; -import ResponsesElement from './Responses'; +import ReferenceElement from './Reference.ts'; +import ExternalDocumentationElement from './ExternalDocumentation.ts'; +import RequestBodyElement from './RequestBody.ts'; +import ResponsesElement from './Responses.ts'; class Operation extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Parameter.ts b/packages/apidom-ns-openapi-3-0/src/elements/Parameter.ts index d9de98c73d..65cfa7fb8d 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Parameter.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Parameter.ts @@ -7,8 +7,8 @@ import { Meta, } from '@swagger-api/apidom-core'; -import SchemaElement from './Schema'; -import ReferenceElement from './Reference'; +import SchemaElement from './Schema.ts'; +import ReferenceElement from './Reference.ts'; class Parameter extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/PathItem.ts b/packages/apidom-ns-openapi-3-0/src/elements/PathItem.ts index cdfa2a6b24..2d5762d4b2 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/PathItem.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/PathItem.ts @@ -6,7 +6,7 @@ import { Meta, } from '@swagger-api/apidom-core'; -import OperationElement from './Operation'; +import OperationElement from './Operation.ts'; class PathItem extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Responses.ts b/packages/apidom-ns-openapi-3-0/src/elements/Responses.ts index 88f9d9f346..9578f0b4af 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Responses.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Responses.ts @@ -1,7 +1,7 @@ import { ObjectElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import ResponseElement from './Response'; -import ReferenceElement from './Reference'; +import ResponseElement from './Response.ts'; +import ReferenceElement from './Reference.ts'; class Responses extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Schema.ts b/packages/apidom-ns-openapi-3-0/src/elements/Schema.ts index 8f46f7e5f3..7d6008063e 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Schema.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Schema.ts @@ -10,10 +10,10 @@ import { } from '@swagger-api/apidom-core'; import { JSONSchemaElement, MediaElement } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import ReferenceElement from './Reference'; -import DiscriminatorElement from './Discriminator'; -import XmlElement from './Xml'; -import ExternalDocumentationElement from './ExternalDocumentation'; +import ReferenceElement from './Reference.ts'; +import DiscriminatorElement from './Discriminator.ts'; +import XmlElement from './Xml.ts'; +import ExternalDocumentationElement from './ExternalDocumentation.ts'; /* eslint-disable class-methods-use-this */ class Schema extends JSONSchemaElement { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/SecurityScheme.ts b/packages/apidom-ns-openapi-3-0/src/elements/SecurityScheme.ts index af66f2f0e7..0fecbaa41f 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/SecurityScheme.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/SecurityScheme.ts @@ -1,6 +1,6 @@ import { ObjectElement, StringElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import OAuthFlowsElement from './OAuthFlows'; +import OAuthFlowsElement from './OAuthFlows.ts'; class SecurityScheme extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/elements/Tag.ts b/packages/apidom-ns-openapi-3-0/src/elements/Tag.ts index d44f7dbd91..1c1a2d51a1 100644 --- a/packages/apidom-ns-openapi-3-0/src/elements/Tag.ts +++ b/packages/apidom-ns-openapi-3-0/src/elements/Tag.ts @@ -1,6 +1,6 @@ import { ObjectElement, StringElement, Attributes, Meta } from '@swagger-api/apidom-core'; -import ExternalDocumentationElement from './ExternalDocumentation'; +import ExternalDocumentationElement from './ExternalDocumentation.ts'; class Tag extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-0/src/index.ts b/packages/apidom-ns-openapi-3-0/src/index.ts index 4cd4558e8b..1bfe1de09d 100644 --- a/packages/apidom-ns-openapi-3-0/src/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/index.ts @@ -11,17 +11,17 @@ export { isStringElement, } from '@swagger-api/apidom-core'; -export { default as mediaTypes, OpenAPIMediaTypes } from './media-types'; +export { default as mediaTypes, OpenAPIMediaTypes } from './media-types.ts'; // eslint-disable-next-line no-restricted-exports -export { default } from './namespace'; +export { default } from './namespace.ts'; -export { default as refractorPluginReplaceEmptyElement } from './refractor/plugins/replace-empty-element'; +export { default as refractorPluginReplaceEmptyElement } from './refractor/plugins/replace-empty-element.ts'; -export { default as refract, createRefractor } from './refractor'; -export { default as createToolbox } from './refractor/toolbox'; -export type { Predicates as ToolboxPredicates } from './refractor/toolbox'; -export { default as specificationObj } from './refractor/specification'; +export { default as refract, createRefractor } from './refractor/index.ts'; +export { default as createToolbox } from './refractor/toolbox.ts'; +export type { Predicates as ToolboxPredicates } from './refractor/toolbox.ts'; +export { default as specificationObj } from './refractor/specification.ts'; export { isCallbackElement, @@ -50,386 +50,386 @@ export { isServerVariableElement, isMediaTypeElement, isServersElement, -} from './predicates'; +} from './predicates.ts'; export { isReferenceLikeElement, isServerLikeElement, isTagLikeElement, isOpenApiExtension, -} from './refractor/predicates'; +} from './refractor/predicates.ts'; -export { default as AlternatingVisitor } from './refractor/visitors/generics/AlternatingVisitor'; -export type { AlternatingVisitorOptions } from './refractor/visitors/generics/AlternatingVisitor'; -export { default as FixedFieldsVisitor } from './refractor/visitors/generics/FixedFieldsVisitor'; -export type { FixedFieldsVisitorOptions } from './refractor/visitors/generics/FixedFieldsVisitor'; -export { default as MapVisitor } from './refractor/visitors/generics/MapVisitor'; -export type { MapVisitorOptions } from './refractor/visitors/generics/MapVisitor'; -export { default as MixedFieldsVisitor } from './refractor/visitors/generics/MixedFieldsVisitor'; -export type { MixedFieldsVisitorOptions } from './refractor/visitors/generics/MixedFieldsVisitor'; -export { default as PatternedFieldsVisitor } from './refractor/visitors/generics/PatternedFieldsVisitor'; -export type { PatternedFieldsVisitorOptions } from './refractor/visitors/generics/PatternedFieldsVisitor'; -export { default as FallbackVisitor } from './refractor/visitors/FallbackVisitor'; -export type { FallbackVisitorOptions } from './refractor/visitors/FallbackVisitor'; -export { default as SpecificationExtensionVisitor } from './refractor/visitors/SpecificationExtensionVisitor'; -export type { SpecificationExtensionVisitorOptions } from './refractor/visitors/SpecificationExtensionVisitor'; -export { default as SpecificationVisitor } from './refractor/visitors/SpecificationVisitor'; -export type { SpecificationVisitorOptions } from './refractor/visitors/SpecificationVisitor'; -export { default as Visitor } from './refractor/visitors/Visitor'; -export type { VisitorOptions } from './refractor/visitors/Visitor'; +export { default as AlternatingVisitor } from './refractor/visitors/generics/AlternatingVisitor.ts'; +export type { AlternatingVisitorOptions } from './refractor/visitors/generics/AlternatingVisitor.ts'; +export { default as FixedFieldsVisitor } from './refractor/visitors/generics/FixedFieldsVisitor.ts'; +export type { FixedFieldsVisitorOptions } from './refractor/visitors/generics/FixedFieldsVisitor.ts'; +export { default as MapVisitor } from './refractor/visitors/generics/MapVisitor.ts'; +export type { MapVisitorOptions } from './refractor/visitors/generics/MapVisitor.ts'; +export { default as MixedFieldsVisitor } from './refractor/visitors/generics/MixedFieldsVisitor.ts'; +export type { MixedFieldsVisitorOptions } from './refractor/visitors/generics/MixedFieldsVisitor.ts'; +export { default as PatternedFieldsVisitor } from './refractor/visitors/generics/PatternedFieldsVisitor.ts'; +export type { PatternedFieldsVisitorOptions } from './refractor/visitors/generics/PatternedFieldsVisitor.ts'; +export { default as FallbackVisitor } from './refractor/visitors/FallbackVisitor.ts'; +export type { FallbackVisitorOptions } from './refractor/visitors/FallbackVisitor.ts'; +export { default as SpecificationExtensionVisitor } from './refractor/visitors/SpecificationExtensionVisitor.ts'; +export type { SpecificationExtensionVisitorOptions } from './refractor/visitors/SpecificationExtensionVisitor.ts'; +export { default as SpecificationVisitor } from './refractor/visitors/SpecificationVisitor.ts'; +export type { SpecificationVisitorOptions } from './refractor/visitors/SpecificationVisitor.ts'; +export { default as Visitor } from './refractor/visitors/Visitor.ts'; +export type { VisitorOptions } from './refractor/visitors/Visitor.ts'; export type { default as CallbackVisitor, CallbackVisitorOptions, -} from './refractor/visitors/open-api-3-0/callback'; +} from './refractor/visitors/open-api-3-0/callback/index.ts'; export type { default as ComponentsCallbacksVisitor, CallbackVisitorOptions as ComponentsCallbacksVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/CallbacksVisitor'; +} from './refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts'; export type { default as ComponentsExamplesVisitor, ExamplesVisitorOptions as ComponentsExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts'; export type { default as ComponentsHeadersVisitor, HeadersVisitorOptions as ComponentsHeadersVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/HeadersVisitor'; +} from './refractor/visitors/open-api-3-0/components/HeadersVisitor.ts'; export type { default as ComponentsVisitor, ComponentsVisitorOptions, -} from './refractor/visitors/open-api-3-0/components'; +} from './refractor/visitors/open-api-3-0/components/index.ts'; export type { default as ComponentsLinksVisitor, LinksVisitorOptions as ComponentsLinksVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/LinksVisitor'; +} from './refractor/visitors/open-api-3-0/components/LinksVisitor.ts'; export type { default as ComponentsParametersVisitor, ParametersVisitorOptions as ComponentsParametersVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/ParametersVisitor'; +} from './refractor/visitors/open-api-3-0/components/ParametersVisitor.ts'; export type { default as ComponentsRequestBodiesVisitor, RequestBodiesVisitorOptions as ComponentsRequestBodiesVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/RequestBodiesVisitor'; +} from './refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts'; export type { default as ComponentsResponsesVisitor, ResponsesVisitorOptions as ComponentsResponsesVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/ResponsesVisitor'; +} from './refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts'; export type { default as ComponentsSchemasVisitor, SchemasVisitorOptions as ComponentsSchemasVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/SchemasVisitor'; +} from './refractor/visitors/open-api-3-0/components/SchemasVisitor.ts'; export type { default as ComponentsSecuritySchemesVisitor, SecuritySchemesVisitorOptions as ComponentsSecuritySchemesVisitorOptions, -} from './refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor'; +} from './refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts'; export type { default as ContactVisitor, ContactVisitorOptions, -} from './refractor/visitors/open-api-3-0/contact'; +} from './refractor/visitors/open-api-3-0/contact/index.ts'; export type { default as DiscriminatorVisitor, DiscriminatorVisitorOptions, -} from './refractor/visitors/open-api-3-0/distriminator'; +} from './refractor/visitors/open-api-3-0/distriminator/index.ts'; export type { default as DiscriminatorMappingVisitor, MappingVisitorOptions as DiscriminatorMappingVisitorOptions, -} from './refractor/visitors/open-api-3-0/distriminator/MappingVisitor'; +} from './refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts'; export type { default as EncodingHeadersVisitor, HeadersVisitorOptions as EncodingHeadersVisitorOptions, -} from './refractor/visitors/open-api-3-0/encoding/HeadersVisitor'; +} from './refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts'; export type { default as EncodingVisitor, EncodingVisitorOptions, -} from './refractor/visitors/open-api-3-0/encoding'; +} from './refractor/visitors/open-api-3-0/encoding/index.ts'; export type { default as ExampleExternalValueVisitor, ExternalValueVisitorOptions as ExampleExternalValueVisitorOptions, -} from './refractor/visitors/open-api-3-0/example/ExternalValueVisitor'; +} from './refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts'; export type { default as ExampleVisitor, ExampleVisitorOptions, -} from './refractor/visitors/open-api-3-0/example'; +} from './refractor/visitors/open-api-3-0/example/index.ts'; export type { default as ExternalDocumentationVisitor, ExternalDocumentationVisitorOptions, -} from './refractor/visitors/open-api-3-0/external-documentation'; +} from './refractor/visitors/open-api-3-0/external-documentation/index.ts'; export type { default as HeaderContentVisitor, ContentVisitorOptions as HeaderContentVisitorOptions, -} from './refractor/visitors/open-api-3-0/header/ContentVisitor'; +} from './refractor/visitors/open-api-3-0/header/ContentVisitor.ts'; export type { default as HeaderExamplesVisitor, ExamplesVisitorOptions as HeaderExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-0/header/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts'; export type { default as HeaderVisitor, HeaderVisitorOptions, -} from './refractor/visitors/open-api-3-0/header'; +} from './refractor/visitors/open-api-3-0/header/index.ts'; export type { default as HeaderSchemaVisitor, SchemaVisitorOptions as HeaderSchemaVisitorOptions, -} from './refractor/visitors/open-api-3-0/header/SchemaVisitor'; +} from './refractor/visitors/open-api-3-0/header/SchemaVisitor.ts'; export type { default as InfoVisitor, InfoVisitorOptions, -} from './refractor/visitors/open-api-3-0/info'; +} from './refractor/visitors/open-api-3-0/info/index.ts'; export type { default as InfoVersionVisitor, VersionVisitorOptions as InfoVersionVisitorOptions, -} from './refractor/visitors/open-api-3-0/info/VersionVisitor'; +} from './refractor/visitors/open-api-3-0/info/VersionVisitor.ts'; export type { default as LicenseVisitor, LicenseVisitorOptions, -} from './refractor/visitors/open-api-3-0/license'; +} from './refractor/visitors/open-api-3-0/license/index.ts'; export type { default as LinkVisitor, LinkVisitorOptions, -} from './refractor/visitors/open-api-3-0/link'; +} from './refractor/visitors/open-api-3-0/link/index.ts'; export type { default as LinkOperationIdVisitor, OperationIdVisitorOptions as LinkOperationIdVisitorOptions, -} from './refractor/visitors/open-api-3-0/link/OperationIdVisitor'; +} from './refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts'; export type { default as LinkOperationRefVisitor, OperationRefVisitorOptions as LinkOperationRefVisitorOptions, -} from './refractor/visitors/open-api-3-0/link/OperationRefVisitor'; +} from './refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts'; export type { default as LinkParametersVisitor, ParametersVisitorOptions as LinkParametersVisitorOptions, -} from './refractor/visitors/open-api-3-0/link/ParametersVisitor'; +} from './refractor/visitors/open-api-3-0/link/ParametersVisitor.ts'; export type { default as MediaTypeEncodingVisitor, EncodingVisitorOptions as MediaTypeEncodingVisitorOptions, -} from './refractor/visitors/open-api-3-0/media-type/EncodingVisitor'; +} from './refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts'; export type { default as MediaTypeExamplesVisitor, ExamplesVisitorOptions as MediaTypeExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-0/media-type/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts'; export type { default as MediaTypeVisitor, MediaTypeVisitorOptions, -} from './refractor/visitors/open-api-3-0/media-type'; +} from './refractor/visitors/open-api-3-0/media-type/index.ts'; export type { default as MediaTypeSchemaVisitor, SchemaVisitorOptions as MediaTypeSchemaVisitorOptions, -} from './refractor/visitors/open-api-3-0/media-type/SchemaVisitor'; +} from './refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts'; export type { default as OAuthFlowVisitor, OAuthFlowVisitorOptions, -} from './refractor/visitors/open-api-3-0/oauth-flow'; +} from './refractor/visitors/open-api-3-0/oauth-flow/index.ts'; export type { default as OAuthFlowScopesVisitor, ScopesVisitorOptions as OAuthFlowScopesVisitorOptions, -} from './refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor'; +} from './refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts'; export type { default as OAuthFlowsVisitor, OAuthFlowsVisitorOptions, -} from './refractor/visitors/open-api-3-0/oauth-flows'; +} from './refractor/visitors/open-api-3-0/oauth-flows/index.ts'; export type { default as OperationCallbacksVisitor, CallbacksVisitorOptions as OperationCallbacksVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/CallbacksVisitor'; +} from './refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts'; export type { default as OperationVisitor, OperationVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation'; +} from './refractor/visitors/open-api-3-0/operation/index.ts'; export type { default as OperationParametersVisitor, ParametersVisitorOptions as OperationParametersVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/ParametersVisitor'; +} from './refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts'; export type { default as OperationRequestBodyVisitor, RequestBodyVisitorOptions as OperationRequestBodyVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/RequestBodyVisitor'; +} from './refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts'; export type { default as OperationSecurityVisitor, SecurityVisitorOptions as OperationSecurityVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/SecurityVisitor'; +} from './refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts'; export type { default as OperationServersVisitor, ServersVisitorOptions as OperationServersVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/ServersVisitor'; +} from './refractor/visitors/open-api-3-0/operation/ServersVisitor.ts'; export type { default as OperationTagsVisitor, TagsVisitorOptions as OperationTagsVisitorOptions, -} from './refractor/visitors/open-api-3-0/operation/TagsVisitor'; +} from './refractor/visitors/open-api-3-0/operation/TagsVisitor.ts'; export type { default as ParameterContentVisitor, ContentVisitorOptions as ParameterContentVisitorOptions, -} from './refractor/visitors/open-api-3-0/parameter/ContentVisitor'; +} from './refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts'; export type { default as ParameterExampleVisitor, ExamplesVisitorOptions as ParameterExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-0/parameter/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts'; export type { default as ParameterVisitor, ParameterVisitorOptions, -} from './refractor/visitors/open-api-3-0/parameter'; +} from './refractor/visitors/open-api-3-0/parameter/index.ts'; export type { default as ParameterSchemaVisitor, SchemaVisitorOptions as ParameterSchemaVisitorOptions, -} from './refractor/visitors/open-api-3-0/parameter/SchemaVisitor'; +} from './refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts'; export type { default as PathItem$RefVisitor, $RefVisitorOptions as PathItem$RefVisitorOptions, -} from './refractor/visitors/open-api-3-0/path-item/$RefVisitor'; +} from './refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts'; export type { default as PathItemVisitor, PathItemVisitorOptions, -} from './refractor/visitors/open-api-3-0/path-item'; +} from './refractor/visitors/open-api-3-0/path-item/index.ts'; export type { default as PathItemParametersVisitor, ParametersVisitorOptions as PathItemParametersVisitorOptions, -} from './refractor/visitors/open-api-3-0/path-item/ParametersVisitor'; +} from './refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts'; export type { default as PathItemServersVisitor, ServersVisitorOptions as PathItemServersVisitorOptions, -} from './refractor/visitors/open-api-3-0/path-item/ServersVisitor'; +} from './refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts'; export type { default as PathsVisitor, PathsVisitorOptions, -} from './refractor/visitors/open-api-3-0/paths'; +} from './refractor/visitors/open-api-3-0/paths/index.ts'; export type { default as Reference$RefVisitor, $RefVisitorOptions as Reference$RefVisitorOptions, -} from './refractor/visitors/open-api-3-0/reference/$RefVisitor'; +} from './refractor/visitors/open-api-3-0/reference/$RefVisitor.ts'; export type { default as ReferenceVisitor, ReferenceVisitorOptions, -} from './refractor/visitors/open-api-3-0/reference'; +} from './refractor/visitors/open-api-3-0/reference/index.ts'; export type { default as RequestBodyContentVisitor, ContentVisitorOptions as RequestBodyContentVisitorOptions, -} from './refractor/visitors/open-api-3-0/request-body/ContentVisitor'; +} from './refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts'; export type { default as RequestBodyVisitor, RequestBodyVisitorOptions, -} from './refractor/visitors/open-api-3-0/request-body'; +} from './refractor/visitors/open-api-3-0/request-body/index.ts'; export type { default as ResponseContentVisitor, ContentVisitorOptions as ResponseContentVisitorOptions, -} from './refractor/visitors/open-api-3-0/response/ContentVisitor'; +} from './refractor/visitors/open-api-3-0/response/ContentVisitor.ts'; export type { default as ResponseHeadersVisitor, HeadersVisitorOptions as ResponseHeadersVisitorOptions, -} from './refractor/visitors/open-api-3-0/response/HeadersVisitor'; +} from './refractor/visitors/open-api-3-0/response/HeadersVisitor.ts'; export type { default as ResponseVisitor, ResponseVisitorOptions, -} from './refractor/visitors/open-api-3-0/response'; +} from './refractor/visitors/open-api-3-0/response/index.ts'; export type { default as ResponseLinksVisitor, LinksVisitorOptions as ResponseLinksVisitorOptions, -} from './refractor/visitors/open-api-3-0/response/LinksVisitor'; +} from './refractor/visitors/open-api-3-0/response/LinksVisitor.ts'; export type { default as ResponsesDefaultVisitor, DefaultVisitorOptions as ResponsesDefaultVisitorOptions, -} from './refractor/visitors/open-api-3-0/responses/DefaultVisitor'; +} from './refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts'; export type { default as ResponsesVisitor, ResponsesVisitorOptions, -} from './refractor/visitors/open-api-3-0/responses'; +} from './refractor/visitors/open-api-3-0/responses/index.ts'; export type { default as SchemaVisitor, SchemaVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema'; +} from './refractor/visitors/open-api-3-0/schema/index.ts'; export type { default as SchemaAllOfVisitor, AllOfVisitorOptions as SchemaAllOfVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/AllOfVisitor'; +} from './refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts'; export type { default as SchemaAnyOfVisitor, AnyOfVisitorOptions as SchemaAnyOfVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/AnyOfVisitor'; +} from './refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts'; export type { default as SchemaItemsVisitor, ItemsVisitorOptions as SchemaItemsVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/ItemsVisitor'; +} from './refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts'; export type { default as SchemaOneOfVisitor, OneOfVisitorOptions as SchemaOneOfVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/OneOfVisitor'; +} from './refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts'; export type { default as SchemaPropertiesVisitor, PropertiesVisitorOptions as SchemaPropertiesVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/PropertiesVisitor'; +} from './refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts'; export type { default as SchemaOrReferenceVisitor, SchemaOrReferenceVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor'; +} from './refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts'; export type { default as SchemaTypeVisitor, TypeVisitorOptions as SchemaTypeVisitorOptions, -} from './refractor/visitors/open-api-3-0/schema/TypeVisitor'; +} from './refractor/visitors/open-api-3-0/schema/TypeVisitor.ts'; export type { default as SecurityRequirementVisitor, SecurityRequirementVisitorOptions, -} from './refractor/visitors/open-api-3-0/security-requirement'; +} from './refractor/visitors/open-api-3-0/security-requirement/index.ts'; export type { default as SecuritySchemeVisitor, SecuritySchemeVisitorOptions, -} from './refractor/visitors/open-api-3-0/security-scheme'; +} from './refractor/visitors/open-api-3-0/security-scheme/index.ts'; export type { default as ServerVisitor, ServerVisitorOptions, -} from './refractor/visitors/open-api-3-0/server'; +} from './refractor/visitors/open-api-3-0/server/index.ts'; export type { default as ServerVariableUrlVisitor, UrlVisitorOptions as ServerVariableUrlVisitorOptions, -} from './refractor/visitors/open-api-3-0/server/UrlVisitor'; +} from './refractor/visitors/open-api-3-0/server/UrlVisitor.ts'; export type { default as ServerVariableVariablesVisitor, VariablesVisitorOptions as ServerVariableVariablesVisitorOptions, -} from './refractor/visitors/open-api-3-0/server/VariablesVisitor'; +} from './refractor/visitors/open-api-3-0/server/VariablesVisitor.ts'; export type { default as ServerVariableVisitor, ServerVariableVisitorOptions, -} from './refractor/visitors/open-api-3-0/server-variable'; +} from './refractor/visitors/open-api-3-0/server-variable/index.ts'; export type { default as TagVisitor, TagVisitorOptions, -} from './refractor/visitors/open-api-3-0/tag'; +} from './refractor/visitors/open-api-3-0/tag/index.ts'; export type { default as XmlVisitor, XmlVisitorOptions, -} from './refractor/visitors/open-api-3-0/xml'; +} from './refractor/visitors/open-api-3-0/xml/index.ts'; export type { default as ContentVisitor, ContentVisitorOptions, -} from './refractor/visitors/open-api-3-0/ContentVisitor'; +} from './refractor/visitors/open-api-3-0/ContentVisitor.ts'; export type { default as ExamplesVisitor, ExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-0/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-0/ExamplesVisitor.ts'; export type { default as OpenApi3_0Visitor, OpenApi3_0VisitorOptions, -} from './refractor/visitors/open-api-3-0'; +} from './refractor/visitors/open-api-3-0/index.ts'; export type { default as OpenapiVisitor, OpenapiVisitorOptions, -} from './refractor/visitors/open-api-3-0/OpenapiVisitor'; +} from './refractor/visitors/open-api-3-0/OpenapiVisitor.ts'; export type { default as ParametersVisitor, ParametersVisitorOptions, -} from './refractor/visitors/open-api-3-0/ParametersVisitor'; +} from './refractor/visitors/open-api-3-0/ParametersVisitor.ts'; export type { default as SecurityVisitor, SecurityVisitorOptions, -} from './refractor/visitors/open-api-3-0/SecurityVisitor'; +} from './refractor/visitors/open-api-3-0/SecurityVisitor.ts'; export type { default as ServersVisitor, ServersVisitorOptions, -} from './refractor/visitors/open-api-3-0/ServersVisitor'; +} from './refractor/visitors/open-api-3-0/ServersVisitor.ts'; export type { default as TagsVisitor, TagsVisitorOptions, -} from './refractor/visitors/open-api-3-0/TagsVisitor'; +} from './refractor/visitors/open-api-3-0/TagsVisitor.ts'; -export type { SpecPath } from './refractor/visitors/generics/FixedFieldsVisitor'; +export type { SpecPath } from './refractor/visitors/generics/FixedFieldsVisitor.ts'; -export { keyMap, getNodeType } from './traversal/visitor'; +export { keyMap, getNodeType } from './traversal/visitor.ts'; // OpenAPI 3.0.x elements export { @@ -464,39 +464,39 @@ export { ServerVariableElement, TagElement, XmlElement, -} from './refractor/registration'; +} from './refractor/registration.ts'; // NCE types -export { default as ComponentsCallbacksElement } from './elements/nces/ComponentsCallbacks'; -export { default as ComponentsExamplesElement } from './elements/nces/ComponentsExamples'; -export { default as ComponentsHeadersElement } from './elements/nces/ComponentsHeaders'; -export { default as ComponentsLinksElement } from './elements/nces/ComponentsLinks'; -export { default as ComponentsParametersElement } from './elements/nces/ComponentsParameters'; -export { default as ComponentsRequestBodiesElement } from './elements/nces/ComponentsRequestBodies'; -export { default as ComponentsResponsesElement } from './elements/nces/ComponentsResponses'; -export { default as ComponentsSchemasElement } from './elements/nces/ComponentsSchemas'; -export { default as ComponentsSecuritySchemesElement } from './elements/nces/ComponentsSecuritySchemes'; -export { default as DiscriminatorMappingElement } from './elements/nces/DiscriminatorMapping'; -export { default as EncodingHeadersElement } from './elements/nces/EncodingHeaders'; -export { default as HeaderContentElement } from './elements/nces/HeaderContent'; -export { default as HeaderExamplesElement } from './elements/nces/HeaderExamples'; -export { default as LinkParametersElement } from './elements/nces/LinkParameters'; -export { default as MediaTypeEncodingElement } from './elements/nces/MediaTypeEncoding'; -export { default as MediaTypeExamplesElement } from './elements/nces/MediaTypeExamples'; -export { default as OAuthFlowScopesElement } from './elements/nces/OAuthFlowScopes'; -export { default as OperationCallbacksElement } from './elements/nces/OperationCallbacks'; -export { default as OperationParametersElement } from './elements/nces/OperationParameters'; -export { default as OperationSecurityElement } from './elements/nces/OperationSecurity'; -export { default as OperationServersElement } from './elements/nces/OperationServers'; -export { default as OperationTagsElement } from './elements/nces/OperationTags'; -export { default as ParameterContentElement } from './elements/nces/ParameterContent'; -export { default as ParameterExamplesElement } from './elements/nces/ParameterExamples'; -export { default as PathItemParametersElement } from './elements/nces/PathItemParameters'; -export { default as PathItemServersElement } from './elements/nces/PathItemServers'; -export { default as RequestBodyContentElement } from './elements/nces/RequestBodyContent'; -export { default as ResponseContentElement } from './elements/nces/ResponseContent'; -export { default as ResponseHeadersElement } from './elements/nces/ResponseHeaders'; -export { default as ResponseLinksElement } from './elements/nces/ResponseLinks'; -export { default as SecurityElement } from './elements/nces/Security'; -export { default as ServersElement } from './elements/nces/Servers'; -export { default as ServerVariablesElement } from './elements/nces/ServerVariables'; -export { default as TagsElement } from './elements/nces/Tags'; +export { default as ComponentsCallbacksElement } from './elements/nces/ComponentsCallbacks.ts'; +export { default as ComponentsExamplesElement } from './elements/nces/ComponentsExamples.ts'; +export { default as ComponentsHeadersElement } from './elements/nces/ComponentsHeaders.ts'; +export { default as ComponentsLinksElement } from './elements/nces/ComponentsLinks.ts'; +export { default as ComponentsParametersElement } from './elements/nces/ComponentsParameters.ts'; +export { default as ComponentsRequestBodiesElement } from './elements/nces/ComponentsRequestBodies.ts'; +export { default as ComponentsResponsesElement } from './elements/nces/ComponentsResponses.ts'; +export { default as ComponentsSchemasElement } from './elements/nces/ComponentsSchemas.ts'; +export { default as ComponentsSecuritySchemesElement } from './elements/nces/ComponentsSecuritySchemes.ts'; +export { default as DiscriminatorMappingElement } from './elements/nces/DiscriminatorMapping.ts'; +export { default as EncodingHeadersElement } from './elements/nces/EncodingHeaders.ts'; +export { default as HeaderContentElement } from './elements/nces/HeaderContent.ts'; +export { default as HeaderExamplesElement } from './elements/nces/HeaderExamples.ts'; +export { default as LinkParametersElement } from './elements/nces/LinkParameters.ts'; +export { default as MediaTypeEncodingElement } from './elements/nces/MediaTypeEncoding.ts'; +export { default as MediaTypeExamplesElement } from './elements/nces/MediaTypeExamples.ts'; +export { default as OAuthFlowScopesElement } from './elements/nces/OAuthFlowScopes.ts'; +export { default as OperationCallbacksElement } from './elements/nces/OperationCallbacks.ts'; +export { default as OperationParametersElement } from './elements/nces/OperationParameters.ts'; +export { default as OperationSecurityElement } from './elements/nces/OperationSecurity.ts'; +export { default as OperationServersElement } from './elements/nces/OperationServers.ts'; +export { default as OperationTagsElement } from './elements/nces/OperationTags.ts'; +export { default as ParameterContentElement } from './elements/nces/ParameterContent.ts'; +export { default as ParameterExamplesElement } from './elements/nces/ParameterExamples.ts'; +export { default as PathItemParametersElement } from './elements/nces/PathItemParameters.ts'; +export { default as PathItemServersElement } from './elements/nces/PathItemServers.ts'; +export { default as RequestBodyContentElement } from './elements/nces/RequestBodyContent.ts'; +export { default as ResponseContentElement } from './elements/nces/ResponseContent.ts'; +export { default as ResponseHeadersElement } from './elements/nces/ResponseHeaders.ts'; +export { default as ResponseLinksElement } from './elements/nces/ResponseLinks.ts'; +export { default as SecurityElement } from './elements/nces/Security.ts'; +export { default as ServersElement } from './elements/nces/Servers.ts'; +export { default as ServerVariablesElement } from './elements/nces/ServerVariables.ts'; +export { default as TagsElement } from './elements/nces/Tags.ts'; diff --git a/packages/apidom-ns-openapi-3-0/src/namespace.ts b/packages/apidom-ns-openapi-3-0/src/namespace.ts index f013d188a4..4ab4f5d545 100644 --- a/packages/apidom-ns-openapi-3-0/src/namespace.ts +++ b/packages/apidom-ns-openapi-3-0/src/namespace.ts @@ -1,36 +1,36 @@ import { NamespacePluginOptions } from '@swagger-api/apidom-core'; -import CallbackElement from './elements/Callback'; -import ComponentsElement from './elements/Components'; -import ContactElement from './elements/Contact'; -import DiscriminatorElement from './elements/Discriminator'; -import EncodingElement from './elements/Encoding'; -import ExampleElement from './elements/Example'; -import ExternalDocumentationElement from './elements/ExternalDocumentation'; -import HeaderElement from './elements/Header'; -import InfoElement from './elements/Info'; -import LicenseElement from './elements/License'; -import LinkElement from './elements/Link'; -import MediaTypeElement from './elements/MediaType'; -import OAuthFlowElement from './elements/OAuthFlow'; -import OAuthFlowsElement from './elements/OAuthFlows'; -import OpenapiElement from './elements/Openapi'; -import OpenApi3_0Element from './elements/OpenApi3-0'; -import OperationElement from './elements/Operation'; -import ParameterElement from './elements/Parameter'; -import PathItemElement from './elements/PathItem'; -import PathsElement from './elements/Paths'; -import ReferenceElement from './elements/Reference'; -import RequestBodyElement from './elements/RequestBody'; -import ResponseElement from './elements/Response'; -import ResponsesElement from './elements/Responses'; -import SchemaElement from './elements/Schema'; -import SecurityRequirementElement from './elements/SecurityRequirement'; -import SecuritySchemeElement from './elements/SecurityScheme'; -import ServerElement from './elements/Server'; -import ServerVariableElement from './elements/ServerVariable'; -import TagElement from './elements/Tag'; -import XmlElement from './elements/Xml'; +import CallbackElement from './elements/Callback.ts'; +import ComponentsElement from './elements/Components.ts'; +import ContactElement from './elements/Contact.ts'; +import DiscriminatorElement from './elements/Discriminator.ts'; +import EncodingElement from './elements/Encoding.ts'; +import ExampleElement from './elements/Example.ts'; +import ExternalDocumentationElement from './elements/ExternalDocumentation.ts'; +import HeaderElement from './elements/Header.ts'; +import InfoElement from './elements/Info.ts'; +import LicenseElement from './elements/License.ts'; +import LinkElement from './elements/Link.ts'; +import MediaTypeElement from './elements/MediaType.ts'; +import OAuthFlowElement from './elements/OAuthFlow.ts'; +import OAuthFlowsElement from './elements/OAuthFlows.ts'; +import OpenapiElement from './elements/Openapi.ts'; +import OpenApi3_0Element from './elements/OpenApi3-0.ts'; +import OperationElement from './elements/Operation.ts'; +import ParameterElement from './elements/Parameter.ts'; +import PathItemElement from './elements/PathItem.ts'; +import PathsElement from './elements/Paths.ts'; +import ReferenceElement from './elements/Reference.ts'; +import RequestBodyElement from './elements/RequestBody.ts'; +import ResponseElement from './elements/Response.ts'; +import ResponsesElement from './elements/Responses.ts'; +import SchemaElement from './elements/Schema.ts'; +import SecurityRequirementElement from './elements/SecurityRequirement.ts'; +import SecuritySchemeElement from './elements/SecurityScheme.ts'; +import ServerElement from './elements/Server.ts'; +import ServerVariableElement from './elements/ServerVariable.ts'; +import TagElement from './elements/Tag.ts'; +import XmlElement from './elements/Xml.ts'; // eslint-disable-next-line @typescript-eslint/naming-convention const openApi3_0 = { diff --git a/packages/apidom-ns-openapi-3-0/src/predicates.ts b/packages/apidom-ns-openapi-3-0/src/predicates.ts index 66d15d8bd1..8a00c7f5f8 100644 --- a/packages/apidom-ns-openapi-3-0/src/predicates.ts +++ b/packages/apidom-ns-openapi-3-0/src/predicates.ts @@ -1,33 +1,33 @@ import { BooleanElement, createPredicate, isBooleanElement } from '@swagger-api/apidom-core'; import type { ElementPredicate } from '@swagger-api/apidom-core'; -import CallbackElement from './elements/Callback'; -import ComponentsElement from './elements/Components'; -import ContactElement from './elements/Contact'; -import ExampleElement from './elements/Example'; -import ExternalDocumentationElement from './elements/ExternalDocumentation'; -import HeaderElement from './elements/Header'; -import InfoElement from './elements/Info'; -import LicenseElement from './elements/License'; -import LinkElement from './elements/Link'; -import OpenapiElement from './elements/Openapi'; -import OpenApi3_0Element from './elements/OpenApi3-0'; -import OperationElement from './elements/Operation'; -import ParameterElement from './elements/Parameter'; -import PathItemElement from './elements/PathItem'; -import PathsElement from './elements/Paths'; -import ReferenceElement from './elements/Reference'; -import RequestBodyElement from './elements/RequestBody'; -import ResponseElement from './elements/Response'; -import ResponsesElement from './elements/Responses'; -import SchemaElement from './elements/Schema'; -import SecurityRequirementElement from './elements/SecurityRequirement'; -import SecuritySchemeElement from './elements/SecurityScheme'; -import ServerElement from './elements/Server'; -import ServerVariableElement from './elements/ServerVariable'; -import MediaTypeElement from './elements/MediaType'; +import CallbackElement from './elements/Callback.ts'; +import ComponentsElement from './elements/Components.ts'; +import ContactElement from './elements/Contact.ts'; +import ExampleElement from './elements/Example.ts'; +import ExternalDocumentationElement from './elements/ExternalDocumentation.ts'; +import HeaderElement from './elements/Header.ts'; +import InfoElement from './elements/Info.ts'; +import LicenseElement from './elements/License.ts'; +import LinkElement from './elements/Link.ts'; +import OpenapiElement from './elements/Openapi.ts'; +import OpenApi3_0Element from './elements/OpenApi3-0.ts'; +import OperationElement from './elements/Operation.ts'; +import ParameterElement from './elements/Parameter.ts'; +import PathItemElement from './elements/PathItem.ts'; +import PathsElement from './elements/Paths.ts'; +import ReferenceElement from './elements/Reference.ts'; +import RequestBodyElement from './elements/RequestBody.ts'; +import ResponseElement from './elements/Response.ts'; +import ResponsesElement from './elements/Responses.ts'; +import SchemaElement from './elements/Schema.ts'; +import SecurityRequirementElement from './elements/SecurityRequirement.ts'; +import SecuritySchemeElement from './elements/SecurityScheme.ts'; +import ServerElement from './elements/Server.ts'; +import ServerVariableElement from './elements/ServerVariable.ts'; +import MediaTypeElement from './elements/MediaType.ts'; // NCE types -import ServersElement from './elements/nces/Servers'; +import ServersElement from './elements/nces/Servers.ts'; export const isCallbackElement = createPredicate( ({ hasBasicElementProps, isElementType, primitiveEq }) => { diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/index.ts index ac5b600d3d..9aaa20045c 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/index.ts @@ -7,10 +7,10 @@ import { } from '@swagger-api/apidom-core'; import { path } from 'ramda'; -import type VisitorClass from './visitors/Visitor'; -import specification from './specification'; -import { keyMap, getNodeType } from '../traversal/visitor'; -import createToolbox from './toolbox'; +import type VisitorClass from './visitors/Visitor.ts'; +import specification from './specification.ts'; +import { keyMap, getNodeType } from '../traversal/visitor.ts'; +import createToolbox from './toolbox.ts'; const refract = ( value: unknown, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/plugins/replace-empty-element.ts b/packages/apidom-ns-openapi-3-0/src/refractor/plugins/replace-empty-element.ts index 0d478f41a0..59f6583f62 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/plugins/replace-empty-element.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/plugins/replace-empty-element.ts @@ -14,70 +14,70 @@ import { /** * OpenAPI 3.0.3 specification elements. */ -import InfoElement from '../../elements/Info'; -import ContactElement from '../../elements/Contact'; -import LicenseElement from '../../elements/License'; -import PathsElement from '../../elements/Paths'; -import PathItemElement from '../../elements/PathItem'; -import ComponentsElement from '../../elements/Components'; -import ExternalDocumentationElement from '../../elements/ExternalDocumentation'; -import OperationElement from '../../elements/Operation'; -import SchemaElement from '../../elements/Schema'; -import RequestBodyElement from '../../elements/RequestBody'; -import ResponsesElement from '../../elements/Responses'; -import ResponseElement from '../../elements/Response'; -import ServerElement from '../../elements/Server'; -import DiscriminatorElement from '../../elements/Discriminator'; -import XmlElement from '../../elements/Xml'; -import OAuthFlowsElement from '../../elements/OAuthFlows'; -import OAuthFlowElement from '../../elements/OAuthFlow'; -import ServerVariableElement from '../../elements/ServerVariable'; -import ParameterElement from '../../elements/Parameter'; -import ExampleElement from '../../elements/Example'; -import HeaderElement from '../../elements/Header'; -import SecuritySchemeElement from '../../elements/SecurityScheme'; -import LinkElement from '../../elements/Link'; -import CallbackElement from '../../elements/Callback'; -import MediaTypeElement from '../../elements/MediaType'; -import EncodingElement from '../../elements/Encoding'; -import SecurityRequirementElement from '../../elements/SecurityRequirement'; -import TagElement from '../../elements/Tag'; +import InfoElement from '../../elements/Info.ts'; +import ContactElement from '../../elements/Contact.ts'; +import LicenseElement from '../../elements/License.ts'; +import PathsElement from '../../elements/Paths.ts'; +import PathItemElement from '../../elements/PathItem.ts'; +import ComponentsElement from '../../elements/Components.ts'; +import ExternalDocumentationElement from '../../elements/ExternalDocumentation.ts'; +import OperationElement from '../../elements/Operation.ts'; +import SchemaElement from '../../elements/Schema.ts'; +import RequestBodyElement from '../../elements/RequestBody.ts'; +import ResponsesElement from '../../elements/Responses.ts'; +import ResponseElement from '../../elements/Response.ts'; +import ServerElement from '../../elements/Server.ts'; +import DiscriminatorElement from '../../elements/Discriminator.ts'; +import XmlElement from '../../elements/Xml.ts'; +import OAuthFlowsElement from '../../elements/OAuthFlows.ts'; +import OAuthFlowElement from '../../elements/OAuthFlow.ts'; +import ServerVariableElement from '../../elements/ServerVariable.ts'; +import ParameterElement from '../../elements/Parameter.ts'; +import ExampleElement from '../../elements/Example.ts'; +import HeaderElement from '../../elements/Header.ts'; +import SecuritySchemeElement from '../../elements/SecurityScheme.ts'; +import LinkElement from '../../elements/Link.ts'; +import CallbackElement from '../../elements/Callback.ts'; +import MediaTypeElement from '../../elements/MediaType.ts'; +import EncodingElement from '../../elements/Encoding.ts'; +import SecurityRequirementElement from '../../elements/SecurityRequirement.ts'; +import TagElement from '../../elements/Tag.ts'; // non-concrete Elements (NCEs) -import ServersElement from '../../elements/nces/Servers'; -import SecurityElement from '../../elements/nces/Security'; -import TagsElement from '../../elements/nces/Tags'; -import ServerVariablesElement from '../../elements/nces/ServerVariables'; -import ComponentsSchemasElement from '../../elements/nces/ComponentsSchemas'; -import ComponentsResponsesElement from '../../elements/nces/ComponentsResponses'; -import ComponentsParametersElement from '../../elements/nces/ComponentsParameters'; -import ComponentsExamplesElement from '../../elements/nces/ComponentsExamples'; -import ComponentsRequestBodiesElement from '../../elements/nces/ComponentsRequestBodies'; -import ComponentsHeadersElement from '../../elements/nces/ComponentsHeaders'; -import ComponentsSecuritySchemesElement from '../../elements/nces/ComponentsSecuritySchemes'; -import ComponentsLinksElement from '../../elements/nces/ComponentsLinks'; -import ComponentsCallbacksElement from '../../elements/nces/ComponentsCallbacks'; -import PathItemServersElement from '../../elements/nces/PathItemServers'; -import PathItemParametersElement from '../../elements/nces/PathItemParameters'; -import OperationParametersElement from '../../elements/nces/OperationParameters'; -import ParameterExamplesElement from '../../elements/nces/ParameterExamples'; -import ParameterContentElement from '../../elements/nces/ParameterContent'; -import OperationTagsElement from '../../elements/nces/OperationTags'; -import OperationCallbacksElement from '../../elements/nces/OperationCallbacks'; -import OperationSecurityElement from '../../elements/nces/OperationSecurity'; -import OperationServersElement from '../../elements/nces/OperationServers'; -import RequestBodyContentElement from '../../elements/nces/RequestBodyContent'; -import MediaTypeExamplesElement from '../../elements/nces/MediaTypeExamples'; -import MediaTypeEncodingElement from '../../elements/nces/MediaTypeEncoding'; -import EncodingHeadersElement from '../../elements/nces/EncodingHeaders'; -import ResponseHeadersElement from '../../elements/nces/ResponseHeaders'; -import ResponseContentElement from '../../elements/nces/ResponseContent'; -import ResponseLinksElement from '../../elements/nces/ResponseLinks'; -import DiscriminatorMappingElement from '../../elements/nces/DiscriminatorMapping'; -import OAuthFlowScopesElement from '../../elements/nces/OAuthFlowScopes'; -import LinkParametersElement from '../../elements/nces/LinkParameters'; -import HeaderExamplesElement from '../../elements/nces/HeaderExamples'; -import HeaderContentElement from '../../elements/nces/HeaderContent'; -import { getNodeType } from '../../traversal/visitor'; +import ServersElement from '../../elements/nces/Servers.ts'; +import SecurityElement from '../../elements/nces/Security.ts'; +import TagsElement from '../../elements/nces/Tags.ts'; +import ServerVariablesElement from '../../elements/nces/ServerVariables.ts'; +import ComponentsSchemasElement from '../../elements/nces/ComponentsSchemas.ts'; +import ComponentsResponsesElement from '../../elements/nces/ComponentsResponses.ts'; +import ComponentsParametersElement from '../../elements/nces/ComponentsParameters.ts'; +import ComponentsExamplesElement from '../../elements/nces/ComponentsExamples.ts'; +import ComponentsRequestBodiesElement from '../../elements/nces/ComponentsRequestBodies.ts'; +import ComponentsHeadersElement from '../../elements/nces/ComponentsHeaders.ts'; +import ComponentsSecuritySchemesElement from '../../elements/nces/ComponentsSecuritySchemes.ts'; +import ComponentsLinksElement from '../../elements/nces/ComponentsLinks.ts'; +import ComponentsCallbacksElement from '../../elements/nces/ComponentsCallbacks.ts'; +import PathItemServersElement from '../../elements/nces/PathItemServers.ts'; +import PathItemParametersElement from '../../elements/nces/PathItemParameters.ts'; +import OperationParametersElement from '../../elements/nces/OperationParameters.ts'; +import ParameterExamplesElement from '../../elements/nces/ParameterExamples.ts'; +import ParameterContentElement from '../../elements/nces/ParameterContent.ts'; +import OperationTagsElement from '../../elements/nces/OperationTags.ts'; +import OperationCallbacksElement from '../../elements/nces/OperationCallbacks.ts'; +import OperationSecurityElement from '../../elements/nces/OperationSecurity.ts'; +import OperationServersElement from '../../elements/nces/OperationServers.ts'; +import RequestBodyContentElement from '../../elements/nces/RequestBodyContent.ts'; +import MediaTypeExamplesElement from '../../elements/nces/MediaTypeExamples.ts'; +import MediaTypeEncodingElement from '../../elements/nces/MediaTypeEncoding.ts'; +import EncodingHeadersElement from '../../elements/nces/EncodingHeaders.ts'; +import ResponseHeadersElement from '../../elements/nces/ResponseHeaders.ts'; +import ResponseContentElement from '../../elements/nces/ResponseContent.ts'; +import ResponseLinksElement from '../../elements/nces/ResponseLinks.ts'; +import DiscriminatorMappingElement from '../../elements/nces/DiscriminatorMapping.ts'; +import OAuthFlowScopesElement from '../../elements/nces/OAuthFlowScopes.ts'; +import LinkParametersElement from '../../elements/nces/LinkParameters.ts'; +import HeaderExamplesElement from '../../elements/nces/HeaderExamples.ts'; +import HeaderContentElement from '../../elements/nces/HeaderContent.ts'; +import { getNodeType } from '../../traversal/visitor.ts'; /** * This plugin is specific to YAML 1.2 format, which allows defining key-value pairs diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/registration.ts b/packages/apidom-ns-openapi-3-0/src/refractor/registration.ts index a01286b8da..7479cf5b7e 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/registration.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/registration.ts @@ -1,35 +1,35 @@ -import CallbackElement from '../elements/Callback'; -import ComponentsElement from '../elements/Components'; -import ContactElement from '../elements/Contact'; -import DiscriminatorElement from '../elements/Discriminator'; -import EncodingElement from '../elements/Encoding'; -import ExampleElement from '../elements/Example'; -import ExternalDocumentationElement from '../elements/ExternalDocumentation'; -import HeaderElement from '../elements/Header'; -import InfoElement from '../elements/Info'; -import LicenseElement from '../elements/License'; -import LinkElement from '../elements/Link'; -import MediaTypeElement from '../elements/MediaType'; -import OAuthFlowElement from '../elements/OAuthFlow'; -import OAuthFlowsElement from '../elements/OAuthFlows'; -import OpenapiElement from '../elements/Openapi'; -import OpenApi3_0Element from '../elements/OpenApi3-0'; -import OperationElement from '../elements/Operation'; -import ParameterElement from '../elements/Parameter'; -import PathItemElement from '../elements/PathItem'; -import PathsElement from '../elements/Paths'; -import ReferenceElement from '../elements/Reference'; -import RequestBodyElement from '../elements/RequestBody'; -import ResponseElement from '../elements/Response'; -import ResponsesElement from '../elements/Responses'; -import SchemaElement from '../elements/Schema'; -import SecurityRequirementElement from '../elements/SecurityRequirement'; -import SecuritySchemeElement from '../elements/SecurityScheme'; -import ServerElement from '../elements/Server'; -import ServerVariableElement from '../elements/ServerVariable'; -import TagElement from '../elements/Tag'; -import XmlElement from '../elements/Xml'; -import { createRefractor } from './index'; +import CallbackElement from '../elements/Callback.ts'; +import ComponentsElement from '../elements/Components.ts'; +import ContactElement from '../elements/Contact.ts'; +import DiscriminatorElement from '../elements/Discriminator.ts'; +import EncodingElement from '../elements/Encoding.ts'; +import ExampleElement from '../elements/Example.ts'; +import ExternalDocumentationElement from '../elements/ExternalDocumentation.ts'; +import HeaderElement from '../elements/Header.ts'; +import InfoElement from '../elements/Info.ts'; +import LicenseElement from '../elements/License.ts'; +import LinkElement from '../elements/Link.ts'; +import MediaTypeElement from '../elements/MediaType.ts'; +import OAuthFlowElement from '../elements/OAuthFlow.ts'; +import OAuthFlowsElement from '../elements/OAuthFlows.ts'; +import OpenapiElement from '../elements/Openapi.ts'; +import OpenApi3_0Element from '../elements/OpenApi3-0.ts'; +import OperationElement from '../elements/Operation.ts'; +import ParameterElement from '../elements/Parameter.ts'; +import PathItemElement from '../elements/PathItem.ts'; +import PathsElement from '../elements/Paths.ts'; +import ReferenceElement from '../elements/Reference.ts'; +import RequestBodyElement from '../elements/RequestBody.ts'; +import ResponseElement from '../elements/Response.ts'; +import ResponsesElement from '../elements/Responses.ts'; +import SchemaElement from '../elements/Schema.ts'; +import SecurityRequirementElement from '../elements/SecurityRequirement.ts'; +import SecuritySchemeElement from '../elements/SecurityScheme.ts'; +import ServerElement from '../elements/Server.ts'; +import ServerVariableElement from '../elements/ServerVariable.ts'; +import TagElement from '../elements/Tag.ts'; +import XmlElement from '../elements/Xml.ts'; +import { createRefractor } from './index.ts'; // register refractors specific to element types CallbackElement.refract = createRefractor([ diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/specification.ts b/packages/apidom-ns-openapi-3-0/src/refractor/specification.ts index d4d8669b05..42a007961f 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/specification.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/specification.ts @@ -1,91 +1,91 @@ import { specificationObj as JSONSchemaDraft4Specification } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import OpenApi3_0Visitor from './visitors/open-api-3-0'; -import OpenapiVisitor from './visitors/open-api-3-0/OpenapiVisitor'; -import SpecificationExtensionVisitor from './visitors/SpecificationExtensionVisitor'; -import InfoVisitor from './visitors/open-api-3-0/info'; -import InfoVersionVisitor from './visitors/open-api-3-0/info/VersionVisitor'; -import ContactVisitor from './visitors/open-api-3-0/contact'; -import LicenseVisitor from './visitors/open-api-3-0/license'; -import LinkVisitor from './visitors/open-api-3-0/link'; -import LinkOperationRefVisitor from './visitors/open-api-3-0/link/OperationRefVisitor'; -import LinkOperationIdVisitor from './visitors/open-api-3-0/link/OperationIdVisitor'; -import LinkParametersVisitor from './visitors/open-api-3-0/link/ParametersVisitor'; -import ServerVisitor from './visitors/open-api-3-0/server'; -import ServerUrlVisitor from './visitors/open-api-3-0/server/UrlVisitor'; -import ServersVisitor from './visitors/open-api-3-0/ServersVisitor'; -import ServerVariableVisitor from './visitors/open-api-3-0/server-variable'; -import ServerVariablesVisitor from './visitors/open-api-3-0/server/VariablesVisitor'; -import FallbackVisitor from './visitors/FallbackVisitor'; -import MediaTypeVisitor from './visitors/open-api-3-0/media-type'; -import MediaTypeSchemaVisitor from './visitors/open-api-3-0/media-type/SchemaVisitor'; -import MediaTypeExamplesVisitor from './visitors/open-api-3-0/media-type/ExamplesVisitor'; -import MediaTypeEncodingVisitor from './visitors/open-api-3-0/media-type/EncodingVisitor'; -import SecurityRequirementVisitor from './visitors/open-api-3-0/security-requirement'; -import SecurityVisitor from './visitors/open-api-3-0/SecurityVisitor'; -import ComponentsVisitor from './visitors/open-api-3-0/components'; -import TagVisitor from './visitors/open-api-3-0/tag'; -import ReferenceVisitor from './visitors/open-api-3-0/reference'; -import Reference$RefVisitor from './visitors/open-api-3-0/reference/$RefVisitor'; -import ParameterVisitor from './visitors/open-api-3-0/parameter'; -import ParameterSchemaVisitor from './visitors/open-api-3-0/parameter/SchemaVisitor'; -import HeaderVisitor from './visitors/open-api-3-0/header'; -import HeaderSchemaVisitor from './visitors/open-api-3-0/header/SchemaVisitor'; -import HeaderExamplesVisitor from './visitors/open-api-3-0/header/ExamplesVisitor'; -import HeaderContentVisitor from './visitors/open-api-3-0/header/ContentVisitor'; -import SchemaVisitor from './visitors/open-api-3-0/schema'; -import SchemaAllOfVisitor from './visitors/open-api-3-0/schema/AllOfVisitor'; -import SchemaAnyOfVisitor from './visitors/open-api-3-0/schema/AnyOfVisitor'; -import SchemaOneOfVisitor from './visitors/open-api-3-0/schema/OneOfVisitor'; -import SchemaItemsVisitor from './visitors/open-api-3-0/schema/ItemsVisitor'; -import SchemaPropertiesVisitor from './visitors/open-api-3-0/schema/PropertiesVisitor'; -import SchemaTypeVisitor from './visitors/open-api-3-0/schema/TypeVisitor'; -import SchemaOrReferenceVisitor from './visitors/open-api-3-0/schema/SchemaOrReferenceVisitor'; -import DiscriminatorVisitor from './visitors/open-api-3-0/distriminator'; -import DiscriminatorMappingVisitor from './visitors/open-api-3-0/distriminator/MappingVisitor'; -import XmlVisitor from './visitors/open-api-3-0/xml'; -import ParameterExamplesVisitor from './visitors/open-api-3-0/parameter/ExamplesVisitor'; -import ParameterContentVisitor from './visitors/open-api-3-0/parameter/ContentVisitor'; -import ComponentsSchemasVisitor from './visitors/open-api-3-0/components/SchemasVisitor'; -import ComponentsResponsesVisitor from './visitors/open-api-3-0/components/ResponsesVisitor'; -import ComponentsParametersVisitor from './visitors/open-api-3-0/components/ParametersVisitor'; -import ComponentsExamplesVisitor from './visitors/open-api-3-0/components/ExamplesVisitor'; -import ComponentsRequestBodiesVisitor from './visitors/open-api-3-0/components/RequestBodiesVisitor'; -import ComponentsHeadersVisitor from './visitors/open-api-3-0/components/HeadersVisitor'; -import ComponentsSecuritySchemesVisitor from './visitors/open-api-3-0/components/SecuritySchemesVisitor'; -import ComponentsLinksVisitor from './visitors/open-api-3-0/components/LinksVisitor'; -import ComponentsCallbacksVisitor from './visitors/open-api-3-0/components/CallbacksVisitor'; -import ExampleVisitor from './visitors/open-api-3-0/example'; -import ExampleExternalValueVisitor from './visitors/open-api-3-0/example/ExternalValueVisitor'; -import ExternalDocumentationVisitor from './visitors/open-api-3-0/external-documentation'; -import EncodingVisitor from './visitors/open-api-3-0/encoding'; -import EncodingHeadersVisitor from './visitors/open-api-3-0/encoding/HeadersVisitor'; -import PathsVisitor from './visitors/open-api-3-0/paths'; -import RequestBodyVisitor from './visitors/open-api-3-0/request-body'; -import RequestBodyContentVisitor from './visitors/open-api-3-0/request-body/ContentVisitor'; -import CallbackVisitor from './visitors/open-api-3-0/callback'; -import ResponseVisitor from './visitors/open-api-3-0/response'; -import ResponseHeadersVisitor from './visitors/open-api-3-0/response/HeadersVisitor'; -import ResponseContentVisitor from './visitors/open-api-3-0/response/ContentVisitor'; -import ResponseLinksVisitor from './visitors/open-api-3-0/response/LinksVisitor'; -import ResponsesVisitor from './visitors/open-api-3-0/responses'; -import ResponsesDefaultVisitor from './visitors/open-api-3-0/responses/DefaultVisitor'; -import OperationVisitor from './visitors/open-api-3-0/operation'; -import OperationTagsVisitor from './visitors/open-api-3-0/operation/TagsVisitor'; -import OperationParametersVisitor from './visitors/open-api-3-0/operation/ParametersVisitor'; -import OperationRequestBodyVisitor from './visitors/open-api-3-0/operation/RequestBodyVisitor'; -import OperationCallbacksVisitor from './visitors/open-api-3-0/operation/CallbacksVisitor'; -import OperationSecurityVisitor from './visitors/open-api-3-0/operation/SecurityVisitor'; -import OperationServersVisitor from './visitors/open-api-3-0/operation/ServersVisitor'; -import PathItemVisitor from './visitors/open-api-3-0/path-item'; -import PathItem$RefVisitor from './visitors/open-api-3-0/path-item/$RefVisitor'; -import PathItemServersVisitor from './visitors/open-api-3-0/path-item/ServersVisitor'; -import PathItemParametersVisitor from './visitors/open-api-3-0/path-item/ParametersVisitor'; -import SecuritySchemeVisitor from './visitors/open-api-3-0/security-scheme'; -import OAuthFlowsVisitor from './visitors/open-api-3-0/oauth-flows'; -import OAuthFlowVisitor from './visitors/open-api-3-0/oauth-flow'; -import OAuthFlowScopesVisitor from './visitors/open-api-3-0/oauth-flow/ScopesVisitor'; -import TagsVisitor from './visitors/open-api-3-0/TagsVisitor'; +import OpenApi3_0Visitor from './visitors/open-api-3-0/index.ts'; +import OpenapiVisitor from './visitors/open-api-3-0/OpenapiVisitor.ts'; +import SpecificationExtensionVisitor from './visitors/SpecificationExtensionVisitor.ts'; +import InfoVisitor from './visitors/open-api-3-0/info/index.ts'; +import InfoVersionVisitor from './visitors/open-api-3-0/info/VersionVisitor.ts'; +import ContactVisitor from './visitors/open-api-3-0/contact/index.ts'; +import LicenseVisitor from './visitors/open-api-3-0/license/index.ts'; +import LinkVisitor from './visitors/open-api-3-0/link/index.ts'; +import LinkOperationRefVisitor from './visitors/open-api-3-0/link/OperationRefVisitor.ts'; +import LinkOperationIdVisitor from './visitors/open-api-3-0/link/OperationIdVisitor.ts'; +import LinkParametersVisitor from './visitors/open-api-3-0/link/ParametersVisitor.ts'; +import ServerVisitor from './visitors/open-api-3-0/server/index.ts'; +import ServerUrlVisitor from './visitors/open-api-3-0/server/UrlVisitor.ts'; +import ServersVisitor from './visitors/open-api-3-0/ServersVisitor.ts'; +import ServerVariableVisitor from './visitors/open-api-3-0/server-variable/index.ts'; +import ServerVariablesVisitor from './visitors/open-api-3-0/server/VariablesVisitor.ts'; +import FallbackVisitor from './visitors/FallbackVisitor.ts'; +import MediaTypeVisitor from './visitors/open-api-3-0/media-type/index.ts'; +import MediaTypeSchemaVisitor from './visitors/open-api-3-0/media-type/SchemaVisitor.ts'; +import MediaTypeExamplesVisitor from './visitors/open-api-3-0/media-type/ExamplesVisitor.ts'; +import MediaTypeEncodingVisitor from './visitors/open-api-3-0/media-type/EncodingVisitor.ts'; +import SecurityRequirementVisitor from './visitors/open-api-3-0/security-requirement/index.ts'; +import SecurityVisitor from './visitors/open-api-3-0/SecurityVisitor.ts'; +import ComponentsVisitor from './visitors/open-api-3-0/components/index.ts'; +import TagVisitor from './visitors/open-api-3-0/tag/index.ts'; +import ReferenceVisitor from './visitors/open-api-3-0/reference/index.ts'; +import Reference$RefVisitor from './visitors/open-api-3-0/reference/$RefVisitor.ts'; +import ParameterVisitor from './visitors/open-api-3-0/parameter/index.ts'; +import ParameterSchemaVisitor from './visitors/open-api-3-0/parameter/SchemaVisitor.ts'; +import HeaderVisitor from './visitors/open-api-3-0/header/index.ts'; +import HeaderSchemaVisitor from './visitors/open-api-3-0/header/SchemaVisitor.ts'; +import HeaderExamplesVisitor from './visitors/open-api-3-0/header/ExamplesVisitor.ts'; +import HeaderContentVisitor from './visitors/open-api-3-0/header/ContentVisitor.ts'; +import SchemaVisitor from './visitors/open-api-3-0/schema/index.ts'; +import SchemaAllOfVisitor from './visitors/open-api-3-0/schema/AllOfVisitor.ts'; +import SchemaAnyOfVisitor from './visitors/open-api-3-0/schema/AnyOfVisitor.ts'; +import SchemaOneOfVisitor from './visitors/open-api-3-0/schema/OneOfVisitor.ts'; +import SchemaItemsVisitor from './visitors/open-api-3-0/schema/ItemsVisitor.ts'; +import SchemaPropertiesVisitor from './visitors/open-api-3-0/schema/PropertiesVisitor.ts'; +import SchemaTypeVisitor from './visitors/open-api-3-0/schema/TypeVisitor.ts'; +import SchemaOrReferenceVisitor from './visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts'; +import DiscriminatorVisitor from './visitors/open-api-3-0/distriminator/index.ts'; +import DiscriminatorMappingVisitor from './visitors/open-api-3-0/distriminator/MappingVisitor.ts'; +import XmlVisitor from './visitors/open-api-3-0/xml/index.ts'; +import ParameterExamplesVisitor from './visitors/open-api-3-0/parameter/ExamplesVisitor.ts'; +import ParameterContentVisitor from './visitors/open-api-3-0/parameter/ContentVisitor.ts'; +import ComponentsSchemasVisitor from './visitors/open-api-3-0/components/SchemasVisitor.ts'; +import ComponentsResponsesVisitor from './visitors/open-api-3-0/components/ResponsesVisitor.ts'; +import ComponentsParametersVisitor from './visitors/open-api-3-0/components/ParametersVisitor.ts'; +import ComponentsExamplesVisitor from './visitors/open-api-3-0/components/ExamplesVisitor.ts'; +import ComponentsRequestBodiesVisitor from './visitors/open-api-3-0/components/RequestBodiesVisitor.ts'; +import ComponentsHeadersVisitor from './visitors/open-api-3-0/components/HeadersVisitor.ts'; +import ComponentsSecuritySchemesVisitor from './visitors/open-api-3-0/components/SecuritySchemesVisitor.ts'; +import ComponentsLinksVisitor from './visitors/open-api-3-0/components/LinksVisitor.ts'; +import ComponentsCallbacksVisitor from './visitors/open-api-3-0/components/CallbacksVisitor.ts'; +import ExampleVisitor from './visitors/open-api-3-0/example/index.ts'; +import ExampleExternalValueVisitor from './visitors/open-api-3-0/example/ExternalValueVisitor.ts'; +import ExternalDocumentationVisitor from './visitors/open-api-3-0/external-documentation/index.ts'; +import EncodingVisitor from './visitors/open-api-3-0/encoding/index.ts'; +import EncodingHeadersVisitor from './visitors/open-api-3-0/encoding/HeadersVisitor.ts'; +import PathsVisitor from './visitors/open-api-3-0/paths/index.ts'; +import RequestBodyVisitor from './visitors/open-api-3-0/request-body/index.ts'; +import RequestBodyContentVisitor from './visitors/open-api-3-0/request-body/ContentVisitor.ts'; +import CallbackVisitor from './visitors/open-api-3-0/callback/index.ts'; +import ResponseVisitor from './visitors/open-api-3-0/response/index.ts'; +import ResponseHeadersVisitor from './visitors/open-api-3-0/response/HeadersVisitor.ts'; +import ResponseContentVisitor from './visitors/open-api-3-0/response/ContentVisitor.ts'; +import ResponseLinksVisitor from './visitors/open-api-3-0/response/LinksVisitor.ts'; +import ResponsesVisitor from './visitors/open-api-3-0/responses/index.ts'; +import ResponsesDefaultVisitor from './visitors/open-api-3-0/responses/DefaultVisitor.ts'; +import OperationVisitor from './visitors/open-api-3-0/operation/index.ts'; +import OperationTagsVisitor from './visitors/open-api-3-0/operation/TagsVisitor.ts'; +import OperationParametersVisitor from './visitors/open-api-3-0/operation/ParametersVisitor.ts'; +import OperationRequestBodyVisitor from './visitors/open-api-3-0/operation/RequestBodyVisitor.ts'; +import OperationCallbacksVisitor from './visitors/open-api-3-0/operation/CallbacksVisitor.ts'; +import OperationSecurityVisitor from './visitors/open-api-3-0/operation/SecurityVisitor.ts'; +import OperationServersVisitor from './visitors/open-api-3-0/operation/ServersVisitor.ts'; +import PathItemVisitor from './visitors/open-api-3-0/path-item/index.ts'; +import PathItem$RefVisitor from './visitors/open-api-3-0/path-item/$RefVisitor.ts'; +import PathItemServersVisitor from './visitors/open-api-3-0/path-item/ServersVisitor.ts'; +import PathItemParametersVisitor from './visitors/open-api-3-0/path-item/ParametersVisitor.ts'; +import SecuritySchemeVisitor from './visitors/open-api-3-0/security-scheme/index.ts'; +import OAuthFlowsVisitor from './visitors/open-api-3-0/oauth-flows/index.ts'; +import OAuthFlowVisitor from './visitors/open-api-3-0/oauth-flow/index.ts'; +import OAuthFlowScopesVisitor from './visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts'; +import TagsVisitor from './visitors/open-api-3-0/TagsVisitor.ts'; /** * Specification object allows us to have complete control over visitors diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/toolbox.ts b/packages/apidom-ns-openapi-3-0/src/refractor/toolbox.ts index 7ff92df095..ffae8febb6 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/toolbox.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/toolbox.ts @@ -9,8 +9,8 @@ import { hasElementSourceMap, } from '@swagger-api/apidom-core'; -import * as openApi3_0Predicates from '../predicates'; -import openApi3_0Namespace from '../namespace'; +import * as openApi3_0Predicates from '../predicates.ts'; +import openApi3_0Namespace from '../namespace.ts'; export type Predicates = typeof openApi3_0Predicates & { isElement: typeof isElement; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/FallbackVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/FallbackVisitor.ts index 2242508bef..2fcef4f547 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/FallbackVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/FallbackVisitor.ts @@ -1,6 +1,6 @@ import { Element, BREAK, cloneDeep } from '@swagger-api/apidom-core'; -import Visitor, { VisitorOptions } from './Visitor'; +import Visitor, { VisitorOptions } from './Visitor.ts'; /** * This visitor is responsible for falling back to current traversed element diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationExtensionVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationExtensionVisitor.ts index 8d8db0b89c..0249b92410 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationExtensionVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationExtensionVisitor.ts @@ -1,6 +1,6 @@ import { MemberElement, BREAK, cloneDeep } from '@swagger-api/apidom-core'; -import SpecificationVisitor, { SpecificationVisitorOptions } from './SpecificationVisitor'; +import SpecificationVisitor, { SpecificationVisitorOptions } from './SpecificationVisitor.ts'; export type { SpecificationVisitorOptions as SpecificationExtensionVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationVisitor.ts index 8fb3b40eaf..241dfb4d86 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/SpecificationVisitor.ts @@ -2,10 +2,10 @@ import { pathSatisfies, path, pick } from 'ramda'; import { isFunction } from 'ramda-adjunct'; import { visit, cloneDeep, ObjectElement } from '@swagger-api/apidom-core'; -import OpenApi3_0Element from '../../elements/OpenApi3-0'; -import Visitor, { VisitorOptions } from './Visitor'; -import type specification from '../specification'; -import FallbackVisitor from './FallbackVisitor'; +import OpenApi3_0Element from '../../elements/OpenApi3-0.ts'; +import Visitor, { VisitorOptions } from './Visitor.ts'; +import type specification from '../specification.ts'; +import FallbackVisitor from './FallbackVisitor.ts'; /** * This is a base Type for every visitor that does diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/AlternatingVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/AlternatingVisitor.ts index 0e6eebd9ac..23a8910294 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/AlternatingVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/AlternatingVisitor.ts @@ -2,7 +2,7 @@ import { ifElse, always } from 'ramda'; import { dispatch, stubUndefined } from 'ramda-adjunct'; import { Element, BREAK } from '@swagger-api/apidom-core'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; export type Alternator = { predicate: (element: unknown) => boolean; specPath: string[] }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/FixedFieldsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/FixedFieldsVisitor.ts index ceadbd143f..d548d7a5f5 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/FixedFieldsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/FixedFieldsVisitor.ts @@ -8,8 +8,8 @@ import { ObjectElement, } from '@swagger-api/apidom-core'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import { isOpenApiExtension } from '../../predicates'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import { isOpenApiExtension } from '../../predicates.ts'; export type SpecPath = (element: unknown) => T; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MapVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MapVisitor.ts index 0e59cc5c54..3bc4c80b5e 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MapVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MapVisitor.ts @@ -3,7 +3,7 @@ import { isNonEmptyString } from 'ramda-adjunct'; import PatternedFieldsVisitor, { PatternedFieldsVisitorOptions, SpecPath, -} from './PatternedFieldsVisitor'; +} from './PatternedFieldsVisitor.ts'; export type { SpecPath }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MixedFieldsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MixedFieldsVisitor.ts index 38eac7201a..f2a8172af7 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MixedFieldsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/MixedFieldsVisitor.ts @@ -2,8 +2,8 @@ import { Mixin } from 'ts-mixer'; import { difference } from 'ramda'; import { ObjectElement, BREAK } from '@swagger-api/apidom-core'; -import FixedFieldsVisitor, { SpecPath } from './FixedFieldsVisitor'; -import PatternedFieldsVisitor, { PatternedFieldsVisitorOptions } from './PatternedFieldsVisitor'; +import FixedFieldsVisitor, { SpecPath } from './FixedFieldsVisitor.ts'; +import PatternedFieldsVisitor, { PatternedFieldsVisitorOptions } from './PatternedFieldsVisitor.ts'; export type { SpecPath }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/PatternedFieldsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/PatternedFieldsVisitor.ts index 15860284f5..0ae45dd78c 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/PatternedFieldsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/generics/PatternedFieldsVisitor.ts @@ -8,9 +8,9 @@ import { toValue, } from '@swagger-api/apidom-core'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import type { SpecPath } from './FixedFieldsVisitor'; -import { isOpenApiExtension } from '../../predicates'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import type { SpecPath } from './FixedFieldsVisitor.ts'; +import { isOpenApiExtension } from '../../predicates.ts'; export type { SpecPath }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ContentVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ContentVisitor.ts index 66130eaf29..f182764faa 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ContentVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ContentVisitor.ts @@ -2,8 +2,8 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; export interface ContentVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts index 6298a934a2..7ac0522fa3 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ExamplesVisitor.ts @@ -1,11 +1,11 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import { isReferenceLikeElement } from '../../predicates'; -import { isReferenceElement } from '../../../predicates'; -import ReferenceElement from '../../../elements/Reference'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../predicates.ts'; +import { isReferenceElement } from '../../../predicates.ts'; +import ReferenceElement from '../../../elements/Reference.ts'; export interface ExamplesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts index 1326ae3cc9..357d0c4064 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/OpenapiVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { StringElement, BREAK, toValue } from '@swagger-api/apidom-core'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import OpenapiElement from '../../../elements/Openapi'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import OpenapiElement from '../../../elements/Openapi.ts'; export interface OpenapiVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts index 06b76dc965..443f1f5a32 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ParametersVisitor.ts @@ -1,10 +1,10 @@ import { Mixin } from 'ts-mixer'; import { ArrayElement, Element, BREAK } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import { isReferenceLikeElement } from '../../predicates'; -import { isReferenceElement } from '../../../predicates'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import { isReferenceLikeElement } from '../../predicates.ts'; +import { isReferenceElement } from '../../../predicates.ts'; export interface ParametersVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts index f65dd0d7c0..b3a17d8899 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/SecurityVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { ArrayElement, isObjectElement, BREAK, cloneDeep } from '@swagger-api/apidom-core'; -import SecurityElement from '../../../elements/nces/Security'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; +import SecurityElement from '../../../elements/nces/Security.ts'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; export interface SecurityVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ServersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ServersVisitor.ts index beb8c0091b..2e0cbf0411 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ServersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/ServersVisitor.ts @@ -1,10 +1,10 @@ import { Mixin } from 'ts-mixer'; import { ArrayElement, Element, BREAK } from '@swagger-api/apidom-core'; -import ServersElement from '../../../elements/nces/Servers'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import { isServerLikeElement } from '../../predicates'; +import ServersElement from '../../../elements/nces/Servers.ts'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import { isServerLikeElement } from '../../predicates.ts'; export interface ServersVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/TagsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/TagsVisitor.ts index 81b93ca17e..3d4a7caa91 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/TagsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/TagsVisitor.ts @@ -1,10 +1,10 @@ import { Mixin } from 'ts-mixer'; import { ArrayElement, Element, BREAK } from '@swagger-api/apidom-core'; -import TagsElement from '../../../elements/nces/Tags'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import { isTagLikeElement } from '../../predicates'; +import TagsElement from '../../../elements/nces/Tags.ts'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../SpecificationVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import { isTagLikeElement } from '../../predicates.ts'; export interface TagsVisitorOptions extends SpecificationVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/callback/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/callback/index.ts index 50276a931c..c0771a249e 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/callback/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/callback/index.ts @@ -2,15 +2,15 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { ObjectElement, StringElement, toValue } from '@swagger-api/apidom-core'; -import CallbackElement from '../../../../elements/Callback'; -import PathItemElement from '../../../../elements/PathItem'; +import CallbackElement from '../../../../elements/Callback.ts'; +import PathItemElement from '../../../../elements/PathItem.ts'; import PatternedFieldsVisitor, { PatternedFieldsVisitorOptions, SpecPath, -} from '../../generics/PatternedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import MapVisitor from '../../generics/MapVisitor'; -import { isPathItemElement } from '../../../../predicates'; +} from '../../generics/PatternedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import MapVisitor from '../../generics/MapVisitor.ts'; +import { isPathItemElement } from '../../../../predicates.ts'; export interface CallbackVisitorOptions extends PatternedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts index db1235ce5e..4653e70764 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/CallbacksVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsCallbacksElement from '../../../../elements/nces/ComponentsCallbacks'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsCallbacksElement from '../../../../elements/nces/ComponentsCallbacks.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface CallbackVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts index e16f0d5d1b..f2d1455e8e 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ExamplesVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsExamplesElement from '../../../../elements/nces/ComponentsExamples'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsExamplesElement from '../../../../elements/nces/ComponentsExamples.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface ExamplesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts index 4371b28b42..309ef8af2e 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/HeadersVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement, Element, StringElement, toValue } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsHeadersElement from '../../../../elements/nces/ComponentsHeaders'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement, isHeaderElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsHeadersElement from '../../../../elements/nces/ComponentsHeaders.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement, isHeaderElement } from '../../../../predicates.ts'; export interface HeadersVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts index ea62ce5467..1fe20e5608 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/LinksVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsLinksElement from '../../../../elements/nces/ComponentsLinks'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsLinksElement from '../../../../elements/nces/ComponentsLinks.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface LinksVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts index bdf2db8cea..db060e57c4 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ParametersVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsParametersElement from '../../../../elements/nces/ComponentsParameters'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsParametersElement from '../../../../elements/nces/ComponentsParameters.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface ParametersVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts index ac28e44889..9e2ed30972 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/RequestBodiesVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsRequestBodiesElement from '../../../../elements/nces/ComponentsRequestBodies'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsRequestBodiesElement from '../../../../elements/nces/ComponentsRequestBodies.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface RequestBodiesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts index b6d1ab9ce5..cc0ad51b1d 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/ResponsesVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement, Element, StringElement, toValue } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsResponsesElement from '../../../../elements/nces/ComponentsResponses'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement, isResponseElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsResponsesElement from '../../../../elements/nces/ComponentsResponses.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement, isResponseElement } from '../../../../predicates.ts'; export interface ResponsesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts index 93fa15df05..eaea7546fc 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SchemasVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsSchemasElement from '../../../../elements/nces/ComponentsSchemas'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsSchemasElement from '../../../../elements/nces/ComponentsSchemas.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface SchemasVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts index 43d02dce00..f978245e54 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/SecuritySchemesVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsSecuritySchemesElement from '../../../../elements/nces/ComponentsSecuritySchemes'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsSecuritySchemesElement from '../../../../elements/nces/ComponentsSecuritySchemes.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface SecuritySchemesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/index.ts index fb9a1813d4..bee76f0b08 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/components/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import ComponentsElement from '../../../../elements/Components'; +import ComponentsElement from '../../../../elements/Components.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ComponentsVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/contact/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/contact/index.ts index c9c3268b82..25b7f9a333 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/contact/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/contact/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import ContactElement from '../../../../elements/Contact'; +import ContactElement from '../../../../elements/Contact.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ContactVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts index 66092c550d..0da9326580 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/MappingVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import DiscriminatorMappingElement from '../../../../elements/nces/DiscriminatorMapping'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import DiscriminatorMappingElement from '../../../../elements/nces/DiscriminatorMapping.ts'; export interface MappingVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/index.ts index c7ce436fd7..132079a488 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/distriminator/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import DiscriminatorElement from '../../../../elements/Discriminator'; +import DiscriminatorElement from '../../../../elements/Discriminator.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface DiscriminatorVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts index 68da0344b8..6c1d0e9cbc 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/HeadersVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { Element, ObjectElement, StringElement, toValue } from '@swagger-api/apidom-core'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isHeaderElement, isReferenceElement } from '../../../../predicates'; -import EncodingHeadersElement from '../../../../elements/nces/EncodingHeaders'; -import ReferenceElement from '../../../../elements/Reference'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isHeaderElement, isReferenceElement } from '../../../../predicates.ts'; +import EncodingHeadersElement from '../../../../elements/nces/EncodingHeaders.ts'; +import ReferenceElement from '../../../../elements/Reference.ts'; export interface HeadersVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/index.ts index f93889c0f6..b1db3bb7b8 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/encoding/index.ts @@ -2,14 +2,14 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { isObjectElement, ObjectElement, StringElement, toValue } from '@swagger-api/apidom-core'; -import EncodingElement from '../../../../elements/Encoding'; -import HeaderElement from '../../../../elements/Header'; +import EncodingElement from '../../../../elements/Encoding.ts'; +import HeaderElement from '../../../../elements/Header.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isHeaderElement } from '../../../../predicates'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isHeaderElement } from '../../../../predicates.ts'; export interface EncodingVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} class EncodingVisitor extends Mixin(FixedFieldsVisitor, FallbackVisitor) { diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts index 200d2186d7..a9331d32c8 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/ExternalValueVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as ExternalValueVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/index.ts index 9949b281be..bc313849c1 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/example/index.ts @@ -2,12 +2,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { ObjectElement, isStringElement } from '@swagger-api/apidom-core'; -import ExampleElement from '../../../../elements/Example'; +import ExampleElement from '../../../../elements/Example.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ExampleVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/external-documentation/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/external-documentation/index.ts index 4779811620..f9d488f446 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/external-documentation/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/external-documentation/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import ExternalDocumentationElement from '../../../../elements/ExternalDocumentation'; +import ExternalDocumentationElement from '../../../../elements/ExternalDocumentation.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ExternalDocumentationVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts index 31d892061e..ef0d2bcff9 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ContentVisitor.ts @@ -1,5 +1,5 @@ -import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor'; -import HeaderContentElement from '../../../../elements/nces/HeaderContent'; +import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor.ts'; +import HeaderContentElement from '../../../../elements/nces/HeaderContent.ts'; export type { ContentVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts index 6e14519382..4111285c70 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/ExamplesVisitor.ts @@ -1,5 +1,5 @@ -import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor'; -import HeaderExamplesElement from '../../../../elements/nces/HeaderExamples'; +import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor.ts'; +import HeaderExamplesElement from '../../../../elements/nces/HeaderExamples.ts'; export type { ExamplesVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts index ea8ebf9922..e9c3c96477 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/SchemaVisitor.ts @@ -2,10 +2,10 @@ import { Mixin } from 'ts-mixer'; import { T as stubTrue } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface SchemaVisitorOptions extends AlternatingVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/index.ts index da0beb2d70..bce3e4006c 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/header/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import HeaderElement from '../../../../elements/Header'; +import HeaderElement from '../../../../elements/Header.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface HeaderVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/index.ts index 1fa5fa23bc..1356677642 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/index.ts @@ -5,9 +5,9 @@ import { ObjectElement } from '@swagger-api/apidom-core'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor'; -import OpenApi3_0Element from '../../../elements/OpenApi3-0'; +} from '../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../FallbackVisitor.ts'; +import OpenApi3_0Element from '../../../elements/OpenApi3-0.ts'; // eslint-disable-next-line @typescript-eslint/naming-convention export interface OpenApi3_0VisitorOptions diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts index 930d2bde27..6eeedabf6f 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/VersionVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as VersionVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/index.ts index c1eaebb4b6..181a7b68d1 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/info/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import InfoElement from '../../../../elements/Info'; +import InfoElement from '../../../../elements/Info.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface InfoVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/license/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/license/index.ts index b42e43e6a9..be2c8359dc 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/license/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/license/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import LicenseElement from '../../../../elements/License'; +import LicenseElement from '../../../../elements/License.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface LicenseVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts index 30d45ec566..84b5d6bc6a 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationIdVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as OperationIdVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts index a6ce5da870..bcce056566 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/OperationRefVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as OperationRefVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts index a02660b6c0..2ae915cb66 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/ParametersVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import LinkParametersElement from '../../../../elements/nces/LinkParameters'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import LinkParametersElement from '../../../../elements/nces/LinkParameters.ts'; export interface ParametersVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/index.ts index c5c36e2215..9a9a389ab0 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/link/index.ts @@ -2,12 +2,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { isStringElement, ObjectElement } from '@swagger-api/apidom-core'; -import LinkElement from '../../../../elements/Link'; +import LinkElement from '../../../../elements/Link.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface LinkVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts index 5856213ca6..bf631397a5 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/EncodingVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MediaTypeEncodingElement from '../../../../elements/nces/MediaTypeEncoding'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import MediaTypeEncodingElement from '../../../../elements/nces/MediaTypeEncoding.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface EncodingVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts index 37f21e7bb4..9b5e20e28f 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/ExamplesVisitor.ts @@ -1,5 +1,5 @@ -import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor'; -import MediaTypeExamples from '../../../../elements/nces/MediaTypeExamples'; +import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor.ts'; +import MediaTypeExamples from '../../../../elements/nces/MediaTypeExamples.ts'; export type { ExamplesVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts index ea8ebf9922..e9c3c96477 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/SchemaVisitor.ts @@ -2,10 +2,10 @@ import { Mixin } from 'ts-mixer'; import { T as stubTrue } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface SchemaVisitorOptions extends AlternatingVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/index.ts index c6454eabe5..a9a2c69c93 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/media-type/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MediaTypeElement from '../../../../elements/MediaType'; +import MediaTypeElement from '../../../../elements/MediaType.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface MediaTypeVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts index c9e8b7fb76..4c1cbc5920 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/ScopesVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import OAuthFlowScopesElement from '../../../../elements/nces/OAuthFlowScopes'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import OAuthFlowScopesElement from '../../../../elements/nces/OAuthFlowScopes.ts'; export interface ScopesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts index b1cde9f93f..3aabee46d8 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flow/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import OAuthFlowElement from '../../../../elements/OAuthFlow'; +import OAuthFlowElement from '../../../../elements/OAuthFlow.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface OAuthFlowVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts index 9641c4295a..e824fe4a77 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/oauth-flows/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import OAuthFlowsElement from '../../../../elements/OAuthFlows'; +import OAuthFlowsElement from '../../../../elements/OAuthFlows.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface OAuthFlowsVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts index d84b8df6a8..19c4ee5029 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/CallbacksVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; -import ReferenceElement from '../../../../elements/Reference'; -import OperationCallbacksElement from '../../../../elements/nces/OperationCallbacks'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import OperationCallbacksElement from '../../../../elements/nces/OperationCallbacks.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface CallbacksVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts index 9bb8bc97b1..8cd28e21b7 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ParametersVisitor.ts @@ -1,5 +1,5 @@ -import OperationParametersElement from '../../../../elements/nces/OperationParameters'; -import BaseParametersVisitor, { ParametersVisitorOptions } from '../ParametersVisitor'; +import OperationParametersElement from '../../../../elements/nces/OperationParameters.ts'; +import BaseParametersVisitor, { ParametersVisitorOptions } from '../ParametersVisitor.ts'; export type { ParametersVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts index 4109fd791d..30d1021dac 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/RequestBodyVisitor.ts @@ -1,10 +1,10 @@ import { T as stubTrue } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import { isReferenceElement } from '../../../../predicates'; -import { isReferenceLikeElement } from '../../../predicates'; -import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor'; -import { FallbackVisitorOptions } from '../../FallbackVisitor'; +import { isReferenceElement } from '../../../../predicates.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor.ts'; +import { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface RequestBodyVisitorOptions extends AlternatingVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts index cbbe73dfe6..0d1f374b69 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/SecurityVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { ArrayElement, isObjectElement, BREAK } from '@swagger-api/apidom-core'; -import OperationSecurityElement from '../../../../elements/nces/OperationSecurity'; -import SpecificationVisitor, { SpecificationVisitorOptions } from '../../SpecificationVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import OperationSecurityElement from '../../../../elements/nces/OperationSecurity.ts'; +import SpecificationVisitor, { SpecificationVisitorOptions } from '../../SpecificationVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface SecurityVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts index 2167ebbc9a..83d61988a1 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/ServersVisitor.ts @@ -1,5 +1,5 @@ -import OperationServersElement from '../../../../elements/nces/OperationServers'; -import BaseServersVisitor, { ServersVisitorOptions } from '../ServersVisitor'; +import OperationServersElement from '../../../../elements/nces/OperationServers.ts'; +import BaseServersVisitor, { ServersVisitorOptions } from '../ServersVisitor.ts'; export type { ServersVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts index 3ce17f9f1b..9a58d560f6 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/TagsVisitor.ts @@ -1,7 +1,7 @@ import { ArrayElement, BREAK, cloneDeep } from '@swagger-api/apidom-core'; -import OperationTagsElement from '../../../../elements/nces/OperationTags'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import OperationTagsElement from '../../../../elements/nces/OperationTags.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface TagsVisitorOptions extends FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/index.ts index 29d2efbd92..09c5f5fb42 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/operation/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import OperationElement from '../../../../elements/Operation'; +import OperationElement from '../../../../elements/Operation.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface OperationVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts index 6f7d078223..463434e149 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ContentVisitor.ts @@ -1,5 +1,5 @@ -import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor'; -import ParameterContentElement from '../../../../elements/nces/ParameterContent'; +import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor.ts'; +import ParameterContentElement from '../../../../elements/nces/ParameterContent.ts'; export type { ContentVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts index ce60950a71..f4b6baa9b3 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/ExamplesVisitor.ts @@ -1,5 +1,5 @@ -import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor'; -import ParameterExamplesElement from '../../../../elements/nces/ParameterExamples'; +import BaseExamplesVisitor, { ExamplesVisitorOptions } from '../ExamplesVisitor.ts'; +import ParameterExamplesElement from '../../../../elements/nces/ParameterExamples.ts'; export type { ExamplesVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts index ea8ebf9922..e9c3c96477 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/SchemaVisitor.ts @@ -2,10 +2,10 @@ import { Mixin } from 'ts-mixer'; import { T as stubTrue } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface SchemaVisitorOptions extends AlternatingVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/index.ts index 68192a71a3..b8914d9e85 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/parameter/index.ts @@ -2,14 +2,14 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { isObjectElement, ObjectElement, StringElement, toValue } from '@swagger-api/apidom-core'; -import ParameterElement from '../../../../elements/Parameter'; -import MediaTypeElement from '../../../../elements/MediaType'; +import ParameterElement from '../../../../elements/Parameter.ts'; +import MediaTypeElement from '../../../../elements/MediaType.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isMediaTypeElement } from '../../../../predicates'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isMediaTypeElement } from '../../../../predicates.ts'; export interface ParameterVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts index 34cf634095..8b4eafe939 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/$RefVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as $RefVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts index c00db37952..a9a08e6d76 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ParametersVisitor.ts @@ -1,5 +1,5 @@ -import PathItemParametersElement from '../../../../elements/nces/PathItemParameters'; -import BaseParametersVisitor, { ParametersVisitorOptions } from '../ParametersVisitor'; +import PathItemParametersElement from '../../../../elements/nces/PathItemParameters.ts'; +import BaseParametersVisitor, { ParametersVisitorOptions } from '../ParametersVisitor.ts'; export type { ParametersVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts index dfef26c521..bc2543b0e9 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/ServersVisitor.ts @@ -1,5 +1,5 @@ -import PathItemServersElement from '../../../../elements/nces/PathItemServers'; -import BaseServersVisitor, { ServersVisitorOptions } from '../ServersVisitor'; +import PathItemServersElement from '../../../../elements/nces/PathItemServers.ts'; +import BaseServersVisitor, { ServersVisitorOptions } from '../ServersVisitor.ts'; export type { ServersVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/index.ts index bc3f074ec8..f51ccd391a 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/path-item/index.ts @@ -8,14 +8,14 @@ import { toValue, } from '@swagger-api/apidom-core'; -import PathItemElement from '../../../../elements/PathItem'; -import OperationElement from '../../../../elements/Operation'; -import { isOperationElement } from '../../../../predicates'; +import PathItemElement from '../../../../elements/PathItem.ts'; +import OperationElement from '../../../../elements/Operation.ts'; +import { isOperationElement } from '../../../../predicates.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface PathItemVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/paths/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/paths/index.ts index 083c64a763..7877e3357c 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/paths/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/paths/index.ts @@ -2,14 +2,14 @@ import { Mixin } from 'ts-mixer'; import { T as stubTrue, always } from 'ramda'; import { ObjectElement, StringElement, cloneDeep } from '@swagger-api/apidom-core'; -import PathsElement from '../../../../elements/Paths'; -import PathItemElement from '../../../../elements/PathItem'; +import PathsElement from '../../../../elements/Paths.ts'; +import PathItemElement from '../../../../elements/PathItem.ts'; import PatternedFieldsVisitor, { PatternedFieldsVisitorOptions, SpecPath, -} from '../../generics/PatternedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isPathItemElement } from '../../../../predicates'; +} from '../../generics/PatternedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isPathItemElement } from '../../../../predicates.ts'; export interface PathsVisitorOptions extends PatternedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts index 34cf634095..8b4eafe939 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/$RefVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as $RefVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/index.ts index b72341bbd0..3093a243e4 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/reference/index.ts @@ -2,12 +2,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { ObjectElement, isStringElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; +import ReferenceElement from '../../../../elements/Reference.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ReferenceVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts index 66c3c813ad..044e40108f 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/ContentVisitor.ts @@ -1,5 +1,5 @@ -import RequestBodyContentElement from '../../../../elements/nces/RequestBodyContent'; -import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor'; +import RequestBodyContentElement from '../../../../elements/nces/RequestBodyContent.ts'; +import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor.ts'; export type { ContentVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/index.ts index 96e2c722a2..3d6a57d1b8 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/request-body/index.ts @@ -2,14 +2,14 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { StringElement, ObjectElement, isObjectElement, toValue } from '@swagger-api/apidom-core'; -import RequestBodyElement from '../../../../elements/RequestBody'; -import MediaTypeElement from '../../../../elements/MediaType'; +import RequestBodyElement from '../../../../elements/RequestBody.ts'; +import MediaTypeElement from '../../../../elements/MediaType.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isMediaTypeElement } from '../../../../predicates'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isMediaTypeElement } from '../../../../predicates.ts'; export interface RequestBodyVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts index f18fe8eeea..7e122a5ab3 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/ContentVisitor.ts @@ -1,5 +1,5 @@ -import ResponseContentElement from '../../../../elements/nces/ResponseContent'; -import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor'; +import ResponseContentElement from '../../../../elements/nces/ResponseContent.ts'; +import BaseContentVisitor, { ContentVisitorOptions } from '../ContentVisitor.ts'; export type { ContentVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts index b75cc0dbdc..eb4ab6faa7 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/HeadersVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement, Element, StringElement, toValue } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ResponseHeadersElement from '../../../../elements/nces/ResponseHeaders'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isHeaderElement, isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ResponseHeadersElement from '../../../../elements/nces/ResponseHeaders.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isHeaderElement, isReferenceElement } from '../../../../predicates.ts'; export interface HeadersVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts index 8a71203c14..1a23c8fd20 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/LinksVisitor.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { ObjectElement } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ResponseLinksElement from '../../../../elements/nces/ResponseLinks'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ResponseLinksElement from '../../../../elements/nces/ResponseLinks.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface LinksVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/index.ts index 7823b5352e..a5f6fc31f0 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/response/index.ts @@ -2,15 +2,15 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; import { isObjectElement, ObjectElement, StringElement, toValue } from '@swagger-api/apidom-core'; -import ResponseElement from '../../../../elements/Response'; -import MediaTypeElement from '../../../../elements/MediaType'; -import HeaderElement from '../../../../elements/Header'; +import ResponseElement from '../../../../elements/Response.ts'; +import MediaTypeElement from '../../../../elements/MediaType.ts'; +import HeaderElement from '../../../../elements/Header.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isHeaderElement, isMediaTypeElement } from '../../../../predicates'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isHeaderElement, isMediaTypeElement } from '../../../../predicates.ts'; export interface ResponseVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts index e62af6adbf..8aa96a2221 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/DefaultVisitor.ts @@ -2,10 +2,10 @@ import { Mixin } from 'ts-mixer'; import { T as stubTrue } from 'ramda'; import { ObjectElement } from '@swagger-api/apidom-core'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement, isResponseElement } from '../../../../predicates'; -import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement, isResponseElement } from '../../../../predicates.ts'; +import AlternatingVisitor, { AlternatingVisitorOptions } from '../../generics/AlternatingVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface DefaultVisitorOptions extends AlternatingVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/index.ts index cbd717b76c..db4cb6b16d 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/responses/index.ts @@ -8,15 +8,15 @@ import { toValue, } from '@swagger-api/apidom-core'; -import ReferenceElement from '../../../../elements/Reference'; -import ResponsesElement from '../../../../elements/Responses'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ResponsesElement from '../../../../elements/Responses.ts'; import MixedFieldsVisitor, { MixedFieldsVisitorOptions, SpecPath, -} from '../../generics/MixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import { isReferenceLikeElement } from '../../../predicates'; -import { isReferenceElement, isResponseElement } from '../../../../predicates'; +} from '../../generics/MixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import { isReferenceLikeElement } from '../../../predicates.ts'; +import { isReferenceElement, isResponseElement } from '../../../../predicates.ts'; export interface ResponsesVisitorOptions extends MixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts index 6e43117e93..e57e6ecb73 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AllOfVisitor.ts @@ -4,8 +4,8 @@ import { AllOfVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import ReferenceElement from '../../../../elements/Reference'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export type { AllOfVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts index 9acd6f33ca..821efbcd1a 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/AnyOfVisitor.ts @@ -4,8 +4,8 @@ import { AnyOfVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import ReferenceElement from '../../../../elements/Reference'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export type { AnyOfVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts index d19c25eabc..d71de1dea7 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/ItemsVisitor.ts @@ -4,7 +4,7 @@ import { ItemsVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import { isReferenceElement } from '../../../../predicates'; +import { isReferenceElement } from '../../../../predicates.ts'; export type { ItemsVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts index 25142aa997..99e1dc23ec 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/OneOfVisitor.ts @@ -4,8 +4,8 @@ import { OneOfVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import ReferenceElement from '../../../../elements/Reference'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export type { OneOfVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts index 7ad2d058be..23e63f8bf3 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/PropertiesVisitor.ts @@ -4,8 +4,8 @@ import { PropertiesVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import ReferenceElement from '../../../../elements/Reference'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export type { PropertiesVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts index 162f77e009..21494b09e8 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/SchemaOrReferenceVisitor.ts @@ -5,8 +5,8 @@ import { SchemaOrReferenceVisitorOptions, } from '@swagger-api/apidom-ns-json-schema-draft-4'; -import { isReferenceElement } from '../../../../predicates'; -import SchemaElement from '../../../../elements/Schema'; +import { isReferenceElement } from '../../../../predicates.ts'; +import SchemaElement from '../../../../elements/Schema.ts'; export type { SchemaOrReferenceVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/index.ts index 78616e36ce..cb54b47230 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/schema/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import SchemaElement from '../../../../elements/Schema'; +import SchemaElement from '../../../../elements/Schema.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface SchemaVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-requirement/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-requirement/index.ts index 079066c668..757c64ec86 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-requirement/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-requirement/index.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import SecurityRequirementElement from '../../../../elements/SecurityRequirement'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import SecurityRequirementElement from '../../../../elements/SecurityRequirement.ts'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface SecurityRequirementVisitorOptions extends MapVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-scheme/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-scheme/index.ts index a354a98802..f3c0dc644d 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-scheme/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/security-scheme/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import SecuritySchemeElement from '../../../../elements/SecurityScheme'; +import SecuritySchemeElement from '../../../../elements/SecurityScheme.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface SecuritySchemeVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server-variable/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server-variable/index.ts index 117e785eb4..43def04ea9 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server-variable/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server-variable/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import ServerVariableElement from '../../../../elements/ServerVariable'; +import ServerVariableElement from '../../../../elements/ServerVariable.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ServerVariableVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts index 97057f4e74..9afad8e0ba 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/UrlVisitor.ts @@ -1,6 +1,6 @@ import { StringElement } from '@swagger-api/apidom-core'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export type { FallbackVisitorOptions as UrlVisitorOptions }; diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts index 5ee2d8c637..cedf4ced2d 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/VariablesVisitor.ts @@ -1,9 +1,9 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; -import ServerVariablesElement from '../../../../elements/nces/ServerVariables'; +import MapVisitor, { MapVisitorOptions, SpecPath } from '../../generics/MapVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; +import ServerVariablesElement from '../../../../elements/nces/ServerVariables.ts'; export interface VariablesVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/index.ts index a2929014b4..786d759c62 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/server/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import ServerElement from '../../../../elements/Server'; +import ServerElement from '../../../../elements/Server.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface ServerVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/tag/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/tag/index.ts index 1bc7d62759..78a60ec977 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/tag/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/tag/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import TagElement from '../../../../elements/Tag'; +import TagElement from '../../../../elements/Tag.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface TagVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/xml/index.ts b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/xml/index.ts index 33fe644584..a5b61d36d5 100644 --- a/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/xml/index.ts +++ b/packages/apidom-ns-openapi-3-0/src/refractor/visitors/open-api-3-0/xml/index.ts @@ -1,12 +1,12 @@ import { Mixin } from 'ts-mixer'; import { always } from 'ramda'; -import XmlElement from '../../../../elements/Xml'; +import XmlElement from '../../../../elements/Xml.ts'; import FixedFieldsVisitor, { FixedFieldsVisitorOptions, SpecPath, -} from '../../generics/FixedFieldsVisitor'; -import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor'; +} from '../../generics/FixedFieldsVisitor.ts'; +import FallbackVisitor, { FallbackVisitorOptions } from '../../FallbackVisitor.ts'; export interface XmlVisitorOptions extends FixedFieldsVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-0/test/mocha-bootstrap.ts b/packages/apidom-ns-openapi-3-0/test/mocha-bootstrap.ts index 4f8d8adf2e..aec560d03f 100644 --- a/packages/apidom-ns-openapi-3-0/test/mocha-bootstrap.ts +++ b/packages/apidom-ns-openapi-3-0/test/mocha-bootstrap.ts @@ -2,9 +2,9 @@ import * as chai from 'chai'; import { jestSnapshotPlugin, addSerializer } from 'mocha-chai-jest-snapshot'; // @ts-ignore -import * as jestApiDOMSerializer from '../../../scripts/jest-serializer-apidom'; +import * as jestApiDOMSerializer from '../../../scripts/jest-serializer-apidom.mjs'; // @ts-ignore -import * as jestStringSerializer from '../../../scripts/jest-serializer-string'; +import * as jestStringSerializer from '../../../scripts/jest-serializer-string.mjs'; chai.use(jestSnapshotPlugin()); addSerializer(jestApiDOMSerializer); diff --git a/packages/apidom-ns-openapi-3-0/test/predicates.ts b/packages/apidom-ns-openapi-3-0/test/predicates.ts index c6ba2e3815..6d4e349f6e 100644 --- a/packages/apidom-ns-openapi-3-0/test/predicates.ts +++ b/packages/apidom-ns-openapi-3-0/test/predicates.ts @@ -30,7 +30,7 @@ import { OperationElement, ReferenceElement, isReferenceElement, -} from '../src'; +} from '../src/index.ts'; describe('predicates', function () { context('isOpenApiApi3_0Element', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Callback/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Callback/index.ts index d46f2db514..9e1d94540c 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Callback/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Callback/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { CallbackElement } from '../../../../src'; +import { CallbackElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Components/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Components/index.ts index 0f00351ad2..c6e7a78c3a 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Components/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Components/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ComponentsElement } from '../../../../src'; +import { ComponentsElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Contact/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Contact/index.ts index 4c0bce4e5c..934f93f491 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Contact/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Contact/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ContactElement } from '../../../../src'; +import { ContactElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Discriminator/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Discriminator/index.ts index f3c6dcb11b..77e49f73e8 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Discriminator/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Discriminator/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { DiscriminatorElement } from '../../../../src'; +import { DiscriminatorElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Encoding/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Encoding/index.ts index 2a2345e014..2de68ba957 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Encoding/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Encoding/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { EncodingElement } from '../../../../src'; +import { EncodingElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Example/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Example/index.ts index b8a300d3e9..9cf2a64c7f 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Example/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Example/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ExampleElement } from '../../../../src'; +import { ExampleElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/ExternalDocumentation/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/ExternalDocumentation/index.ts index d4c2a02b88..7ea08649f0 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/ExternalDocumentation/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/ExternalDocumentation/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ExternalDocumentationElement } from '../../../../src'; +import { ExternalDocumentationElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Header/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Header/index.ts index 22b6347c02..0b7a169f6b 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Header/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Header/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { HeaderElement } from '../../../../src'; +import { HeaderElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Info/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Info/index.ts index 4fe5ffb00d..6586b3e0c9 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Info/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Info/index.ts @@ -1,7 +1,7 @@ import { assert, expect } from 'chai'; import { ObjectElement, toValue, sexprs } from '@swagger-api/apidom-core'; -import { InfoElement } from '../../../../src'; +import { InfoElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/License/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/License/index.ts index 5c57a02423..1ad36a941e 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/License/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/License/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { LicenseElement } from '../../../../src'; +import { LicenseElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Link/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Link/index.ts index 183eec75d7..4245531136 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Link/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Link/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { LinkElement } from '../../../../src'; +import { LinkElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/MediaType/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/MediaType/index.ts index 983a394b43..ae70ff0b5b 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/MediaType/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/MediaType/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { MediaTypeElement } from '../../../../src'; +import { MediaTypeElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlow/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlow/index.ts index b9210bffd4..a8c0690102 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlow/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlow/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OAuthFlowElement } from '../../../../src'; +import { OAuthFlowElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlows/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlows/index.ts index d264c50f3b..8df34870c6 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlows/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OAuthFlows/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OAuthFlowsElement } from '../../../../src'; +import { OAuthFlowsElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OpenApi3-0/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OpenApi3-0/index.ts index aa4c1f824e..4aabc68364 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/OpenApi3-0/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/OpenApi3-0/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OpenApi3_0Element } from '../../../../src'; +import { OpenApi3_0Element } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Openapi/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Openapi/index.ts index 468c151793..14ebb78197 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Openapi/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Openapi/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OpenapiElement } from '../../../../src'; +import { OpenapiElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Operation/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Operation/index.ts index 7ad2053c78..b0f87080ba 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Operation/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Operation/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OperationElement } from '../../../../src'; +import { OperationElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Parameter/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Parameter/index.ts index d978494b0f..94fe2b05b4 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Parameter/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Parameter/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ParameterElement } from '../../../../src'; +import { ParameterElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/PathItem/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/PathItem/index.ts index d1b934c317..017e362550 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/PathItem/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/PathItem/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { PathItemElement } from '../../../../src'; +import { PathItemElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Paths/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Paths/index.ts index 52cb28a8e0..2e75a30142 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Paths/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Paths/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { PathsElement } from '../../../../src'; +import { PathsElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Reference/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Reference/index.ts index e454e2dba1..156b87d452 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Reference/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Reference/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ReferenceElement } from '../../../../src'; +import { ReferenceElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/RequestBody/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/RequestBody/index.ts index 268f3bbad3..7b5fbecb63 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/RequestBody/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/RequestBody/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { RequestBodyElement } from '../../../../src'; +import { RequestBodyElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Response/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Response/index.ts index c6132d08c0..7eef584606 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Response/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Response/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ResponseElement } from '../../../../src'; +import { ResponseElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Responses/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Responses/index.ts index 91058c0d5b..2cd5b07433 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Responses/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Responses/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ResponsesElement } from '../../../../src'; +import { ResponsesElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Schema/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Schema/index.ts index dc88a5fb0a..a08266421e 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Schema/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Schema/index.ts @@ -1,7 +1,7 @@ import { expect, assert } from 'chai'; import { sexprs, toValue } from '@swagger-api/apidom-core'; -import { SchemaElement } from '../../../../src'; +import { SchemaElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityRequirement/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityRequirement/index.ts index f38fce05a8..3893fa6e2d 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityRequirement/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityRequirement/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { SecurityRequirementElement } from '../../../../src'; +import { SecurityRequirementElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityScheme/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityScheme/index.ts index 99aa493e87..e31fda9a94 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityScheme/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/SecurityScheme/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { SecuritySchemeElement } from '../../../../src'; +import { SecuritySchemeElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Server/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Server/index.ts index c9abd51f89..ad49dfb159 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Server/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Server/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ServerElement } from '../../../../src'; +import { ServerElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/ServerVariable/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/ServerVariable/index.ts index 671fd090a3..7daf6ca3c0 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/ServerVariable/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/ServerVariable/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { ServerVariableElement } from '../../../../src'; +import { ServerVariableElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Tag/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Tag/index.ts index 32af35e643..6bff443e7e 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Tag/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Tag/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { TagElement } from '../../../../src'; +import { TagElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Xml/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Xml/index.ts index 8e805abdde..a82fa3e4b6 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/elements/Xml/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/elements/Xml/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { XmlElement } from '../../../../src'; +import { XmlElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/index.ts b/packages/apidom-ns-openapi-3-0/test/refractor/index.ts index 08d2c204eb..ee0125084b 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/index.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/index.ts @@ -14,8 +14,8 @@ import { OpenapiElement, InfoElement as Info30Element, isOpenapiElement, -} from '../../src'; -import * as predicates from '../../src/predicates'; +} from '../../src/index.ts'; +import * as predicates from '../../src/predicates.ts'; const __dirname = path.dirname(fileURLToPath(import.meta.url)); diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/mappings.ts b/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/mappings.ts index fea84cd416..70738ac7f4 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/mappings.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/mappings.ts @@ -3,7 +3,7 @@ import dedent from 'dedent'; import { sexprs, SourceMapElement } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { refractorPluginReplaceEmptyElement, OpenApi3_0Element } from '../../../../src'; +import { refractorPluginReplaceEmptyElement, OpenApi3_0Element } from '../../../../src/index.ts'; describe('given empty value instead of InfoElement', function () { it('should replace empty value with semantic element', async function () { diff --git a/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/sequences.ts b/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/sequences.ts index abbe889caa..24e2865458 100644 --- a/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/sequences.ts +++ b/packages/apidom-ns-openapi-3-0/test/refractor/plugins/replace-empty-element/sequences.ts @@ -3,7 +3,7 @@ import dedent from 'dedent'; import { sexprs } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { refractorPluginReplaceEmptyElement, OpenApi3_0Element } from '../../../../src'; +import { refractorPluginReplaceEmptyElement, OpenApi3_0Element } from '../../../../src/index.ts'; describe('given empty value instead of ServerElement', function () { it('should replace empty value with semantic element', async function () { diff --git a/packages/apidom-ns-openapi-3-0/tsconfig.json b/packages/apidom-ns-openapi-3-0/tsconfig.json index 4081635a03..a86c615aaa 100644 --- a/packages/apidom-ns-openapi-3-0/tsconfig.json +++ b/packages/apidom-ns-openapi-3-0/tsconfig.json @@ -1,5 +1,10 @@ { "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "allowImportingTsExtensions": true + }, "include": [ "src/**/*", "test/**/*"