diff --git a/packages/apidom-ns-openapi-3-1/.eslintrc b/packages/apidom-ns-openapi-3-1/.eslintrc new file mode 100644 index 0000000000..86a24bfc5c --- /dev/null +++ b/packages/apidom-ns-openapi-3-1/.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-1/package.json b/packages/apidom-ns-openapi-3-1/package.json index d1277a1f20..8116d333d3 100644 --- a/packages/apidom-ns-openapi-3-1/package.json +++ b/packages/apidom-ns-openapi-3-1/package.json @@ -32,8 +32,8 @@ "perf": "cross-env BABEL_ENV=es babel ./test/perf/index.ts --out-file ./test/perf/index.mjs --root-mode 'upward' && cross-env NODE_ENV=test node ./test/perf/index.mjs", "perf:visitor-shortcut": "cross-env BABEL_ENV=es babel ./test/perf/visitor-shortcut.ts --out-file ./test/perf/visitor-shortcut.mjs --root-mode 'upward' && cross-env NODE_ENV=test node ./test/perf/visitor-shortcut.mjs", "perf:refract": "cross-env BABEL_ENV=es babel ./test/perf/refract.ts --out-file ./test/perf/refract.mjs --root-mode 'upward' && cross-env NODE_ENV=test node ./test/perf/refract.mjs", - "typescript:check-types": "tsc --noEmit", - "typescript:declaration": "tsc -p declaration.tsconfig.json && rollup -c config/rollup/types.dist.js", + "typescript:check-types": "tsc --noEmit && tsc -p ./test/tsconfig.json --noEmit", + "typescript:declaration": "tsc -p tsconfig.declaration.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-1/src/elements/Header.ts b/packages/apidom-ns-openapi-3-1/src/elements/Header.ts index 4d4c92896d..f747fc439b 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/Header.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/Header.ts @@ -1,6 +1,6 @@ import { HeaderElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import SchemaElement from './Schema'; +import SchemaElement from './Schema.ts'; class Header extends HeaderElement { get schema(): SchemaElement | undefined { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/Info.ts b/packages/apidom-ns-openapi-3-1/src/elements/Info.ts index 769379dd70..c960e01d5c 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/Info.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/Info.ts @@ -1,7 +1,7 @@ import { StringElement } from '@swagger-api/apidom-core'; import { InfoElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import LicenseElement from './License'; +import LicenseElement from './License.ts'; class Info extends InfoElement { get license(): LicenseElement | undefined { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/MediaType.ts b/packages/apidom-ns-openapi-3-1/src/elements/MediaType.ts index 620ddd5faa..66ef92903c 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/MediaType.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/MediaType.ts @@ -1,6 +1,6 @@ import { MediaTypeElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import SchemaElement from './Schema'; +import SchemaElement from './Schema.ts'; class MediaType extends MediaTypeElement { get schema(): SchemaElement | undefined { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/OpenApi3-1.ts b/packages/apidom-ns-openapi-3-1/src/elements/OpenApi3-1.ts index 989f725b8b..7cdf7616ea 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/OpenApi3-1.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/OpenApi3-1.ts @@ -6,11 +6,11 @@ import { 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_1 extends ObjectElement { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/Operation.ts b/packages/apidom-ns-openapi-3-1/src/elements/Operation.ts index 369642aec0..421f460d24 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/Operation.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/Operation.ts @@ -1,7 +1,7 @@ import { OperationElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import RequestBodyElement from './RequestBody'; -import ReferenceElement from './Reference'; +import RequestBodyElement from './RequestBody.ts'; +import ReferenceElement from './Reference.ts'; class Operation extends OperationElement { get requestBody(): RequestBodyElement | ReferenceElement | undefined { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/Parameter.ts b/packages/apidom-ns-openapi-3-1/src/elements/Parameter.ts index fdb3db49cc..b1aa486a35 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/Parameter.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/Parameter.ts @@ -1,6 +1,6 @@ import { ParameterElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import SchemaElement from './Schema'; +import SchemaElement from './Schema.ts'; class Parameter extends ParameterElement { get schema(): SchemaElement | undefined { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/PathItem.ts b/packages/apidom-ns-openapi-3-1/src/elements/PathItem.ts index deca0c15bc..ec6e3483ba 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/PathItem.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/PathItem.ts @@ -1,6 +1,6 @@ import { PathItemElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import OperationElement from './Operation'; +import OperationElement from './Operation.ts'; class PathItem extends PathItemElement { get GET(): OperationElement { diff --git a/packages/apidom-ns-openapi-3-1/src/elements/Schema.ts b/packages/apidom-ns-openapi-3-1/src/elements/Schema.ts index 06d015dab3..4200d8f9c7 100644 --- a/packages/apidom-ns-openapi-3-1/src/elements/Schema.ts +++ b/packages/apidom-ns-openapi-3-1/src/elements/Schema.ts @@ -9,9 +9,9 @@ import { Meta, } from '@swagger-api/apidom-core'; -import XmlElement from './Xml'; -import DiscriminatorElement from './Discriminator'; -import ExternalDocumentationElement from './ExternalDocumentation'; +import XmlElement from './Xml.ts'; +import DiscriminatorElement from './Discriminator.ts'; +import ExternalDocumentationElement from './ExternalDocumentation.ts'; class Schema extends ObjectElement { constructor(content?: Record, meta?: Meta, attributes?: Attributes) { diff --git a/packages/apidom-ns-openapi-3-1/src/index.ts b/packages/apidom-ns-openapi-3-1/src/index.ts index 2c068a8c4f..3f131ec0af 100644 --- a/packages/apidom-ns-openapi-3-1/src/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/index.ts @@ -11,21 +11,21 @@ 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 refractorPluginNormalizeParameters } from './refractor/plugins/normalize-parameters'; -export { default as refractorPluginNormalizeSecurityRequirements } from './refractor/plugins/normalize-security-requirements'; -export { default as refractorPluginNormalizeServers } from './refractor/plugins/normalize-servers'; -export { default as refractorPluginNormalizeOperationIds } from './refractor/plugins/normalize-operation-ids'; -export { default as refractorPluginNormalizeParameterExamples } from './refractor/plugins/normalize-parameter-examples'; -export { default as refractorPluginNormalizeHeaderExamples } from './refractor/plugins/normalize-header-examples'; -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 refractorPluginReplaceEmptyElement } from './refractor/plugins/replace-empty-element.ts'; +export { default as refractorPluginNormalizeParameters } from './refractor/plugins/normalize-parameters.ts'; +export { default as refractorPluginNormalizeSecurityRequirements } from './refractor/plugins/normalize-security-requirements.ts'; +export { default as refractorPluginNormalizeServers } from './refractor/plugins/normalize-servers.ts'; +export { default as refractorPluginNormalizeOperationIds } from './refractor/plugins/normalize-operation-ids.ts'; +export { default as refractorPluginNormalizeParameterExamples } from './refractor/plugins/normalize-parameter-examples.ts'; +export { default as refractorPluginNormalizeHeaderExamples } from './refractor/plugins/normalize-header-examples/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 { AlternatingVisitor } from '@swagger-api/apidom-ns-openapi-3-0'; export type { AlternatingVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0'; @@ -49,7 +49,7 @@ export type { VisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0'; export type { default as CallbackVisitor, CallbackVisitorOptions, -} from './refractor/visitors/open-api-3-1/callback'; +} from './refractor/visitors/open-api-3-1/callback/index.ts'; export type { ComponentsCallbacksVisitor, ComponentsCallbacksVisitorOptions, @@ -65,7 +65,7 @@ export type { export type { default as ComponentsVisitor, ComponentsVisitorOptions, -} from './refractor/visitors/open-api-3-1/components'; +} from './refractor/visitors/open-api-3-1/components/index.ts'; export type { ComponentsLinksVisitor, ComponentsLinksVisitorOptions, @@ -85,11 +85,11 @@ export type { export type { default as ComponentsPathItemsVisitor, PathItemsVisitorOptions as ComponentsPathItemsVisitorOptions, -} from './refractor/visitors/open-api-3-1/components/PathItemsVisitor'; +} from './refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts'; export type { default as ComponentsSchemasVisitor, SchemasVisitorOptions as ComponentsSchemasVisitorOptions, -} from './refractor/visitors/open-api-3-1/components/SchemasVisitor'; +} from './refractor/visitors/open-api-3-1/components/SchemasVisitor.ts'; export type { ComponentsSecuritySchemesVisitor, ComponentsSecuritySchemesVisitorOptions, @@ -97,11 +97,11 @@ export type { export type { default as ContactVisitor, ContactVisitorOptions, -} from './refractor/visitors/open-api-3-1/contact'; +} from './refractor/visitors/open-api-3-1/contact/index.ts'; export type { default as DiscriminatorVisitor, DiscriminatorVisitorOptions, -} from './refractor/visitors/open-api-3-1/distriminator'; +} from './refractor/visitors/open-api-3-1/distriminator/index.ts'; export type { DiscriminatorMappingVisitor, DiscriminatorMappingVisitorOptions, @@ -113,7 +113,7 @@ export type { export type { default as EncodingVisitor, EncodingVisitorOptions, -} from './refractor/visitors/open-api-3-1/encoding'; +} from './refractor/visitors/open-api-3-1/encoding/index.ts'; export type { ExampleExternalValueVisitor, ExampleExternalValueVisitorOptions, @@ -121,11 +121,11 @@ export type { export type { default as ExampleVisitor, ExampleVisitorOptions, -} from './refractor/visitors/open-api-3-1/example'; +} from './refractor/visitors/open-api-3-1/example/index.ts'; export type { default as ExternalDocumentationVisitor, ExternalDocumentationVisitorOptions, -} from './refractor/visitors/open-api-3-1/external-documentation'; +} from './refractor/visitors/open-api-3-1/external-documentation/index.ts'; export type { HeaderContentVisitor, HeaderContentVisitorOptions, @@ -137,7 +137,7 @@ export type { export type { default as HeaderVisitor, HeaderVisitorOptions, -} from './refractor/visitors/open-api-3-1/header'; +} from './refractor/visitors/open-api-3-1/header/index.ts'; export type { HeaderSchemaVisitor, HeaderSchemaVisitorOptions, @@ -145,7 +145,7 @@ export type { export type { default as InfoVisitor, InfoVisitorOptions, -} from './refractor/visitors/open-api-3-1/info'; +} from './refractor/visitors/open-api-3-1/info/index.ts'; export type { InfoVersionVisitor, InfoVersionVisitorOptions, @@ -153,11 +153,11 @@ export type { export type { default as LicenseVisitor, LicenseVisitorOptions, -} from './refractor/visitors/open-api-3-1/license'; +} from './refractor/visitors/open-api-3-1/license/index.ts'; export type { default as LinkVisitor, LinkVisitorOptions, -} from './refractor/visitors/open-api-3-1/link'; +} from './refractor/visitors/open-api-3-1/link/index.ts'; export type { LinkOperationIdVisitor, LinkOperationIdVisitorOptions, @@ -181,7 +181,7 @@ export type { export type { default as MediaTypeVisitor, MediaTypeVisitorOptions, -} from './refractor/visitors/open-api-3-1/media-type'; +} from './refractor/visitors/open-api-3-1/media-type/index.ts'; export type { MediaTypeSchemaVisitor, MediaTypeSchemaVisitorOptions, @@ -189,7 +189,7 @@ export type { export type { default as OAuthFlowVisitor, OAuthFlowVisitorOptions, -} from './refractor/visitors/open-api-3-1/oauth-flow'; +} from './refractor/visitors/open-api-3-1/oauth-flow/index.ts'; export type { OAuthFlowScopesVisitor, OAuthFlowScopesVisitorOptions, @@ -197,7 +197,7 @@ export type { export type { default as OAuthFlowsVisitor, OAuthFlowsVisitorOptions, -} from './refractor/visitors/open-api-3-1/oauth-flows'; +} from './refractor/visitors/open-api-3-1/oauth-flows/index.ts'; export type { OperationCallbacksVisitor, OperationCallbacksVisitorOptions, @@ -205,7 +205,7 @@ export type { export type { default as OperationVisitor, OperationVisitorOptions, -} from './refractor/visitors/open-api-3-1/operation'; +} from './refractor/visitors/open-api-3-1/operation/index.ts'; export type { OperationParametersVisitor, OperationParametersVisitorOptions, @@ -237,7 +237,7 @@ export type { export type { default as ParameterVisitor, ParameterVisitorOptions, -} from './refractor/visitors/open-api-3-1/parameter'; +} from './refractor/visitors/open-api-3-1/parameter/index.ts'; export type { ParameterSchemaVisitor, ParameterSchemaVisitorOptions, @@ -249,7 +249,7 @@ export type { export type { default as PathItemVisitor, PathItemVisitorOptions, -} from './refractor/visitors/open-api-3-1/path-item'; +} from './refractor/visitors/open-api-3-1/path-item/index.ts'; export type { PathItemParametersVisitor, PathItemParametersVisitorOptions, @@ -261,7 +261,7 @@ export type { export type { default as PathsVisitor, PathsVisitorOptions, -} from './refractor/visitors/open-api-3-1/paths'; +} from './refractor/visitors/open-api-3-1/paths/index.ts'; export type { Reference$RefVisitor, Reference$RefVisitorOptions, @@ -269,7 +269,7 @@ export type { export type { default as ReferenceVisitor, ReferenceVisitorOptions, -} from './refractor/visitors/open-api-3-1/reference'; +} from './refractor/visitors/open-api-3-1/reference/index.ts'; export type { RequestBodyContentVisitor, RequestBodyContentVisitorOptions, @@ -277,7 +277,7 @@ export type { export type { default as RequestBodyVisitor, RequestBodyVisitorOptions, -} from './refractor/visitors/open-api-3-1/request-body'; +} from './refractor/visitors/open-api-3-1/request-body/index.ts'; export type { ResponseContentVisitor, ResponseContentVisitorOptions, @@ -289,7 +289,7 @@ export type { export type { default as ResponseVisitor, ResponseVisitorOptions, -} from './refractor/visitors/open-api-3-1/response'; +} from './refractor/visitors/open-api-3-1/response/index.ts'; export type { ResponseLinksVisitor, ResponseLinksVisitorOptions, @@ -301,83 +301,83 @@ export type { export type { default as ResponsesVisitor, ResponsesVisitorOptions, -} from './refractor/visitors/open-api-3-1/responses'; +} from './refractor/visitors/open-api-3-1/responses/index.ts'; export type { default as Schema$defsVisitor, $defsVisitorOptions as Schema$defsVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/$defsVisitor'; +} from './refractor/visitors/open-api-3-1/schema/$defsVisitor.ts'; export type { default as Schema$refVisitor, $refVisitorOptions as Schema$refVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/$refVisitor'; +} from './refractor/visitors/open-api-3-1/schema/$refVisitor.ts'; export type { default as Schema$vocabularyVisitor, $vocabularyVisitorOptions as Schema$vocabularyVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/$vocabularyVisitor'; +} from './refractor/visitors/open-api-3-1/schema/$vocabularyVisitor.ts'; export type { default as SchemaAllOfVisitor, AllOfVisitorOptions as SchemaAllOfVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/AllOfVisitor'; +} from './refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts'; export type { default as SchemaAnyOfVisitor, AnyOfVisitorOptions as SchemaAnyOfVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/AnyOfVisitor'; +} from './refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts'; export type { default as SchemaDependentRequiredVisitor, DependentRequiredVisitorOptions as SchemaDependentRequiredVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor'; +} from './refractor/visitors/open-api-3-1/schema/DependentRequiredVisitor.ts'; export type { default as SchemaDependentSchemasVisitor, DependentSchemasVisitorOptions as SchemaDependentSchemasVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor'; +} from './refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts'; export type { default as SchemaEnumVisitor, EnumVisitorOptions as SchemaEnumVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/EnumVisitor'; +} from './refractor/visitors/open-api-3-1/schema/EnumVisitor.ts'; export type { default as SchemaExamplesVisitor, ExamplesVisitorOptions as SchemaExamplesVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/ExamplesVisitor'; +} from './refractor/visitors/open-api-3-1/schema/ExamplesVisitor.ts'; export type { default as SchemaVisitor, SchemaVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema'; +} from './refractor/visitors/open-api-3-1/schema/index.ts'; export type { default as SchemaOneOfVisitor, OneOfVisitorOptions as SchemaOneOfVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/OneOfVisitor'; +} from './refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts'; export type { default as SchemaPatternPropertiesVisitor, PatternPropertiesVisitorOptions as SchemaPatternPropertiesVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor'; +} from './refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts'; export type { default as SchemaPrefixItemsVisitor, PrefixItemsVisitorOptions as SchemaPrefixItemsVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor'; +} from './refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts'; export type { default as SchemaPropertiesVisitor, PropertiesVisitorOptions as SchemaPropertiesVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/PropertiesVisitor'; +} from './refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts'; export type { default as SchemaRequiredVisitor, RequiredVisitorOptions as SchemaRequiredVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/RequiredVisitor'; +} from './refractor/visitors/open-api-3-1/schema/RequiredVisitor.ts'; export type { default as SchemaTypeVisitor, TypeVisitorOptions as SchemaTypeVisitorOptions, -} from './refractor/visitors/open-api-3-1/schema/TypeVisitor'; +} from './refractor/visitors/open-api-3-1/schema/TypeVisitor.ts'; export type { default as SecurityRequirementVisitor, SecurityRequirementVisitorOptions, -} from './refractor/visitors/open-api-3-1/security-requirement'; +} from './refractor/visitors/open-api-3-1/security-requirement/index.ts'; export type { default as SecuritySchemeVisitor, SecuritySchemeVisitorOptions, -} from './refractor/visitors/open-api-3-1/security-scheme'; +} from './refractor/visitors/open-api-3-1/security-scheme/index.ts'; export type { default as ServerVisitor, ServerVisitorOptions, -} from './refractor/visitors/open-api-3-1/server'; +} from './refractor/visitors/open-api-3-1/server/index.ts'; export type { ServerVariableUrlVisitor, ServerVariableUrlVisitorOptions, @@ -389,29 +389,29 @@ export type { export type { default as ServerVariableVisitor, ServerVariableVisitorOptions, -} from './refractor/visitors/open-api-3-1/server-variable'; +} from './refractor/visitors/open-api-3-1/server-variable/index.ts'; export type { default as TagVisitor, TagVisitorOptions, -} from './refractor/visitors/open-api-3-1/tag'; +} from './refractor/visitors/open-api-3-1/tag/index.ts'; export type { default as XmlVisitor, XmlVisitorOptions, -} from './refractor/visitors/open-api-3-1/xml'; +} from './refractor/visitors/open-api-3-1/xml/index.ts'; export type { ContentVisitor, ContentVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0'; export type { ExamplesVisitor, ExamplesVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0'; export type { default as OpenApi3_1Visitor, OpenApi3_1VisitorOptions, -} from './refractor/visitors/open-api-3-1'; +} from './refractor/visitors/open-api-3-1/index.ts'; export type { default as JsonSchemaDialectVisitor, JsonSchemaDialectVisitorOptions, -} from './refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor'; +} from './refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts'; export type { default as WebhooksVisitor, WebhooksVisitorOptions, -} from './refractor/visitors/open-api-3-1/WebhooksVisitor'; +} from './refractor/visitors/open-api-3-1/WebhooksVisitor.ts'; export type { OpenapiVisitor, OpenapiVisitorOptions } from '@swagger-api/apidom-ns-openapi-3-0'; export type { ParametersVisitor, @@ -452,7 +452,7 @@ export { isLinkElement, isRequestBodyElement, isPathsElement, -} from './predicates'; +} from './predicates.ts'; export { isReferenceLikeElement, @@ -461,7 +461,7 @@ export { isServersElement, } from '@swagger-api/apidom-ns-openapi-3-0'; -export { keyMap, getNodeType } from './traversal/visitor'; +export { keyMap, getNodeType } from './traversal/visitor.ts'; // OpenAPI 3.1.0 elements export { @@ -497,7 +497,7 @@ export { ServerVariableElement, TagElement, XmlElement, -} from './refractor/registration'; +} from './refractor/registration.ts'; // NCE types export { ComponentsCallbacksElement, @@ -535,5 +535,5 @@ export { ServerVariablesElement, TagsElement, } from '@swagger-api/apidom-ns-openapi-3-0'; -export { default as ComponentsPathItemsElement } from './elements/nces/ComponentsPathItems'; -export { default as WebhooksElement } from './elements/nces/Webhooks'; +export { default as ComponentsPathItemsElement } from './elements/nces/ComponentsPathItems.ts'; +export { default as WebhooksElement } from './elements/nces/Webhooks.ts'; diff --git a/packages/apidom-ns-openapi-3-1/src/namespace.ts b/packages/apidom-ns-openapi-3-1/src/namespace.ts index e11fde1ecf..d37acc943d 100644 --- a/packages/apidom-ns-openapi-3-1/src/namespace.ts +++ b/packages/apidom-ns-openapi-3-1/src/namespace.ts @@ -1,37 +1,37 @@ 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 JsonSchemaDialectElement from './elements/JsonSchemaDialect'; -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_1Element from './elements/OpenApi3-1'; -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 JsonSchemaDialectElement from './elements/JsonSchemaDialect.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_1Element from './elements/OpenApi3-1.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_1 = { diff --git a/packages/apidom-ns-openapi-3-1/src/predicates.ts b/packages/apidom-ns-openapi-3-1/src/predicates.ts index d548a94141..920be63389 100644 --- a/packages/apidom-ns-openapi-3-1/src/predicates.ts +++ b/packages/apidom-ns-openapi-3-1/src/predicates.ts @@ -7,32 +7,32 @@ import { } 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 JsonSchemaDialectElement from './elements/JsonSchemaDialect'; -import LicenseElement from './elements/License'; -import LinkElement from './elements/Link'; -import OpenapiElement from './elements/Openapi'; -import OpenApi3_1Element from './elements/OpenApi3-1'; -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 JsonSchemaDialectElement from './elements/JsonSchemaDialect.ts'; +import LicenseElement from './elements/License.ts'; +import LinkElement from './elements/Link.ts'; +import OpenapiElement from './elements/Openapi.ts'; +import OpenApi3_1Element from './elements/OpenApi3-1.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'; export const isCallbackElement = createPredicate( ({ hasBasicElementProps, isElementType, primitiveEq }) => { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/index.ts index 3f8d9d471e..4d5122969c 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/index.ts @@ -8,9 +8,9 @@ import { import type { Visitor as VisitorClass } from '@swagger-api/apidom-ns-openapi-3-0'; import { path } from 'ramda'; -import specification from './specification'; -import { keyMap, getNodeType } from '../traversal/visitor'; -import createToolbox from './toolbox'; +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-1/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts index 30e396ae34..3e4384aba8 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/NormalizeStorage.ts @@ -5,7 +5,7 @@ import { isArrayElement, } from '@swagger-api/apidom-core'; -import OpenApi3_1Element from '../../../elements/OpenApi3-1'; +import OpenApi3_1Element from '../../../elements/OpenApi3-1.ts'; type JSONPointer = string; diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts index f4bcf95c67..1aa9d8473f 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-header-examples/index.ts @@ -1,10 +1,10 @@ import { Element, cloneDeep } from '@swagger-api/apidom-core'; -import HeaderElement from '../../../elements/Header'; -import ExampleElement from '../../../elements/Example'; -import type { Toolbox } from '../../toolbox'; -import OpenApi3_1Element from '../../../elements/OpenApi3-1'; -import NormalizeStorage from './NormalizeStorage'; +import HeaderElement from '../../../elements/Header.ts'; +import ExampleElement from '../../../elements/Example.ts'; +import type { Toolbox } from '../../toolbox.ts'; +import OpenApi3_1Element from '../../../elements/OpenApi3-1.ts'; +import NormalizeStorage from './NormalizeStorage.ts'; /** * Override of Schema.example and Schema.examples field inside the Header Objects. diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-operation-ids.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-operation-ids.ts index e764d20ff7..7d099d8120 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-operation-ids.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-operation-ids.ts @@ -1,12 +1,12 @@ import { last, defaultTo, groupBy } from 'ramda'; import { toValue, Element, StringElement, cloneDeep } from '@swagger-api/apidom-core'; -import LinkElement from '../../elements/Link'; -import PathItemElement from '../../elements/PathItem'; -import OperationElement from '../../elements/Operation'; -import type { Toolbox } from '../toolbox'; -import OpenApi3_1Element from '../../elements/OpenApi3-1'; -import NormalizeStorage from './normalize-header-examples/NormalizeStorage'; +import LinkElement from '../../elements/Link.ts'; +import PathItemElement from '../../elements/PathItem.ts'; +import OperationElement from '../../elements/Operation.ts'; +import type { Toolbox } from '../toolbox.ts'; +import OpenApi3_1Element from '../../elements/OpenApi3-1.ts'; +import NormalizeStorage from './normalize-header-examples/NormalizeStorage.ts'; const removeSpaces = (operationId: string) => { return operationId.replace(/\s/g, ''); diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts index c287536db7..a86882e21f 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameter-examples.ts @@ -1,10 +1,10 @@ import { Element, cloneDeep } from '@swagger-api/apidom-core'; -import ParameterElement from '../../elements/Parameter'; -import ExampleElement from '../../elements/Example'; -import type { Toolbox } from '../toolbox'; -import OpenApi3_1Element from '../../elements/OpenApi3-1'; -import NormalizeStorage from './normalize-header-examples/NormalizeStorage'; +import ParameterElement from '../../elements/Parameter.ts'; +import ExampleElement from '../../elements/Example.ts'; +import type { Toolbox } from '../toolbox.ts'; +import OpenApi3_1Element from '../../elements/OpenApi3-1.ts'; +import NormalizeStorage from './normalize-header-examples/NormalizeStorage.ts'; /** * Override of Schema.example and Schema.examples field inside the Parameter Objects. diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameters.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameters.ts index aa402fae4b..df34f4126f 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameters.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-parameters.ts @@ -2,12 +2,12 @@ import { uniqWith, pathOr, last } from 'ramda'; import { Element, StringElement, toValue } from '@swagger-api/apidom-core'; import { OperationParametersElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import ParameterElement from '../../elements/Parameter'; -import PathItemElement from '../../elements/PathItem'; -import OperationElement from '../../elements/Operation'; -import type { Toolbox } from '../toolbox'; -import OpenApi3_1Element from '../../elements/OpenApi3-1'; -import NormalizeStorage from './normalize-header-examples/NormalizeStorage'; +import ParameterElement from '../../elements/Parameter.ts'; +import PathItemElement from '../../elements/PathItem.ts'; +import OperationElement from '../../elements/Operation.ts'; +import type { Toolbox } from '../toolbox.ts'; +import OpenApi3_1Element from '../../elements/OpenApi3-1.ts'; +import NormalizeStorage from './normalize-header-examples/NormalizeStorage.ts'; /** * Inheritance of Parameter Objects. diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-security-requirements.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-security-requirements.ts index 8f9d7df830..8d784f886b 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-security-requirements.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-security-requirements.ts @@ -1,10 +1,10 @@ import { Element, ArrayElement } from '@swagger-api/apidom-core'; import { OperationSecurityElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import OpenApi3_1Element from '../../elements/OpenApi3-1'; -import OperationElement from '../../elements/Operation'; -import type { Toolbox } from '../toolbox'; -import NormalizeStorage from './normalize-header-examples/NormalizeStorage'; +import OpenApi3_1Element from '../../elements/OpenApi3-1.ts'; +import OperationElement from '../../elements/Operation.ts'; +import type { Toolbox } from '../toolbox.ts'; +import NormalizeStorage from './normalize-header-examples/NormalizeStorage.ts'; /** * Override of Security Requirement Objects. * diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-servers.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-servers.ts index 7f73b40a01..4c748e41ea 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-servers.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/normalize-servers.ts @@ -5,12 +5,12 @@ import { ServersElement, } from '@swagger-api/apidom-ns-openapi-3-0'; -import type OpenApi3_1Element from '../../elements/OpenApi3-1'; -import type PathItemElement from '../../elements/PathItem'; -import type ServerElement from '../../elements/Server'; -import type OperationElement from '../../elements/Operation'; -import type { Toolbox } from '../toolbox'; -import NormalizeStorage from './normalize-header-examples/NormalizeStorage'; +import type OpenApi3_1Element from '../../elements/OpenApi3-1.ts'; +import type PathItemElement from '../../elements/PathItem.ts'; +import type ServerElement from '../../elements/Server.ts'; +import type OperationElement from '../../elements/Operation.ts'; +import type { Toolbox } from '../toolbox.ts'; +import NormalizeStorage from './normalize-header-examples/NormalizeStorage.ts'; /** * Override of Server Objects. diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/replace-empty-element.ts b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/replace-empty-element.ts index afeb31e928..5be7352237 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/plugins/replace-empty-element.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/plugins/replace-empty-element.ts @@ -44,39 +44,39 @@ import { /** * OpenAPI 3.1.0 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 ComponentsPathItemsElement from '../../elements/nces/ComponentsPathItems'; -import WebhooksElement from '../../elements/nces/Webhooks'; -import { getNodeType } from '../../traversal/visitor'; -import { Predicates } from '../toolbox'; +import ComponentsPathItemsElement from '../../elements/nces/ComponentsPathItems.ts'; +import WebhooksElement from '../../elements/nces/Webhooks.ts'; +import { getNodeType } from '../../traversal/visitor.ts'; +import { Predicates } from '../toolbox.ts'; /** * This plugin is specific to YAML 1.2 format, which allows defining key-value pairs diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/registration.ts b/packages/apidom-ns-openapi-3-1/src/refractor/registration.ts index 39002ed95e..d0248b3c50 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/registration.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/registration.ts @@ -1,36 +1,36 @@ -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 JsonSchemaDialectElement from '../elements/JsonSchemaDialect'; -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_1Element from '../elements/OpenApi3-1'; -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 JsonSchemaDialectElement from '../elements/JsonSchemaDialect.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_1Element from '../elements/OpenApi3-1.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-1/src/refractor/specification.ts b/packages/apidom-ns-openapi-3-1/src/refractor/specification.ts index 1cc1db342a..3562d6ed94 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/specification.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/specification.ts @@ -1,53 +1,53 @@ import { specificationObj as OpenApi3_0Specification } from '@swagger-api/apidom-ns-openapi-3-0'; -import OpenApi3_1Visitor from './visitors/open-api-3-1'; -import InfoVisitor from './visitors/open-api-3-1/info'; -import ContactVisitor from './visitors/open-api-3-1/contact'; -import LicenseVisitor from './visitors/open-api-3-1/license'; -import LinkVisitor from './visitors/open-api-3-1/link'; -import JsonSchemaDialectVisitor from './visitors/open-api-3-1/JsonSchemaDialectVisitor'; -import ServerVisitor from './visitors/open-api-3-1/server'; -import ServerVariableVisitor from './visitors/open-api-3-1/server-variable'; -import MediaTypeVisitor from './visitors/open-api-3-1/media-type'; -import SecurityRequirementVisitor from './visitors/open-api-3-1/security-requirement'; -import ComponentsVisitor from './visitors/open-api-3-1/components'; -import TagVisitor from './visitors/open-api-3-1/tag'; -import ReferenceVisitor from './visitors/open-api-3-1/reference'; -import ParameterVisitor from './visitors/open-api-3-1/parameter'; -import HeaderVisitor from './visitors/open-api-3-1/header'; -import SchemaVisitor from './visitors/open-api-3-1/schema'; -import Schema$vocabularyVisitor from './visitors/open-api-3-1/schema/$vocabularyVisitor'; -import Schema$refVisitor from './visitors/open-api-3-1/schema/$refVisitor'; -import Schema$defsVisitor from './visitors/open-api-3-1/schema/$defsVisitor'; -import SchemaAllOfVisitor from './visitors/open-api-3-1/schema/AllOfVisitor'; -import SchemaAnyOfVisitor from './visitors/open-api-3-1/schema/AnyOfVisitor'; -import SchemaOneOfVisitor from './visitors/open-api-3-1/schema/OneOfVisitor'; -import SchemaDependantSchemasVisitor from './visitors/open-api-3-1/schema/DependentSchemasVisitor'; -import SchemaPrefixItemsVisitor from './visitors/open-api-3-1/schema/PrefixItemsVisitor'; -import SchemaPropertiesVisitor from './visitors/open-api-3-1/schema/PropertiesVisitor'; -import SchemaPatternPropertiesVisitor from './visitors/open-api-3-1/schema/PatternPropertiesVisitor'; -import SchemaTypeVisitor from './visitors/open-api-3-1/schema/TypeVisitor'; -import SchemaEnumVisitor from './visitors/open-api-3-1/schema/EnumVisitor'; -import SchemaDependentRequiredVisitor from './visitors/open-api-3-1/schema/DependentRequiredVisitor'; -import SchemaExamplesVisitor from './visitors/open-api-3-1/schema/ExamplesVisitor'; -import DiscriminatorVisitor from './visitors/open-api-3-1/distriminator'; -import XmlVisitor from './visitors/open-api-3-1/xml'; -import ComponentsSchemasVisitor from './visitors/open-api-3-1/components/SchemasVisitor'; -import ComponentsPathItemsVisitor from './visitors/open-api-3-1/components/PathItemsVisitor'; -import ExampleVisitor from './visitors/open-api-3-1/example'; -import ExternalDocumentationVisitor from './visitors/open-api-3-1/external-documentation'; -import EncodingVisitor from './visitors/open-api-3-1/encoding'; -import PathsVisitor from './visitors/open-api-3-1/paths'; -import RequestBodyVisitor from './visitors/open-api-3-1/request-body'; -import CallbackVisitor from './visitors/open-api-3-1/callback'; -import ResponseVisitor from './visitors/open-api-3-1/response'; -import ResponsesVisitor from './visitors/open-api-3-1/responses'; -import OperationVisitor from './visitors/open-api-3-1/operation'; -import PathItemVisitor from './visitors/open-api-3-1/path-item'; -import SecuritySchemeVisitor from './visitors/open-api-3-1/security-scheme'; -import OAuthFlowsVisitor from './visitors/open-api-3-1/oauth-flows'; -import OAuthFlowVisitor from './visitors/open-api-3-1/oauth-flow'; -import WebhooksVisitor from './visitors/open-api-3-1/WebhooksVisitor'; +import OpenApi3_1Visitor from './visitors/open-api-3-1/index.ts'; +import InfoVisitor from './visitors/open-api-3-1/info/index.ts'; +import ContactVisitor from './visitors/open-api-3-1/contact/index.ts'; +import LicenseVisitor from './visitors/open-api-3-1/license/index.ts'; +import LinkVisitor from './visitors/open-api-3-1/link/index.ts'; +import JsonSchemaDialectVisitor from './visitors/open-api-3-1/JsonSchemaDialectVisitor.ts'; +import ServerVisitor from './visitors/open-api-3-1/server/index.ts'; +import ServerVariableVisitor from './visitors/open-api-3-1/server-variable/index.ts'; +import MediaTypeVisitor from './visitors/open-api-3-1/media-type/index.ts'; +import SecurityRequirementVisitor from './visitors/open-api-3-1/security-requirement/index.ts'; +import ComponentsVisitor from './visitors/open-api-3-1/components/index.ts'; +import TagVisitor from './visitors/open-api-3-1/tag/index.ts'; +import ReferenceVisitor from './visitors/open-api-3-1/reference/index.ts'; +import ParameterVisitor from './visitors/open-api-3-1/parameter/index.ts'; +import HeaderVisitor from './visitors/open-api-3-1/header/index.ts'; +import SchemaVisitor from './visitors/open-api-3-1/schema/index.ts'; +import Schema$vocabularyVisitor from './visitors/open-api-3-1/schema/$vocabularyVisitor.ts'; +import Schema$refVisitor from './visitors/open-api-3-1/schema/$refVisitor.ts'; +import Schema$defsVisitor from './visitors/open-api-3-1/schema/$defsVisitor.ts'; +import SchemaAllOfVisitor from './visitors/open-api-3-1/schema/AllOfVisitor.ts'; +import SchemaAnyOfVisitor from './visitors/open-api-3-1/schema/AnyOfVisitor.ts'; +import SchemaOneOfVisitor from './visitors/open-api-3-1/schema/OneOfVisitor.ts'; +import SchemaDependantSchemasVisitor from './visitors/open-api-3-1/schema/DependentSchemasVisitor.ts'; +import SchemaPrefixItemsVisitor from './visitors/open-api-3-1/schema/PrefixItemsVisitor.ts'; +import SchemaPropertiesVisitor from './visitors/open-api-3-1/schema/PropertiesVisitor.ts'; +import SchemaPatternPropertiesVisitor from './visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts'; +import SchemaTypeVisitor from './visitors/open-api-3-1/schema/TypeVisitor.ts'; +import SchemaEnumVisitor from './visitors/open-api-3-1/schema/EnumVisitor.ts'; +import SchemaDependentRequiredVisitor from './visitors/open-api-3-1/schema/DependentRequiredVisitor.ts'; +import SchemaExamplesVisitor from './visitors/open-api-3-1/schema/ExamplesVisitor.ts'; +import DiscriminatorVisitor from './visitors/open-api-3-1/distriminator/index.ts'; +import XmlVisitor from './visitors/open-api-3-1/xml/index.ts'; +import ComponentsSchemasVisitor from './visitors/open-api-3-1/components/SchemasVisitor.ts'; +import ComponentsPathItemsVisitor from './visitors/open-api-3-1/components/PathItemsVisitor.ts'; +import ExampleVisitor from './visitors/open-api-3-1/example/index.ts'; +import ExternalDocumentationVisitor from './visitors/open-api-3-1/external-documentation/index.ts'; +import EncodingVisitor from './visitors/open-api-3-1/encoding/index.ts'; +import PathsVisitor from './visitors/open-api-3-1/paths/index.ts'; +import RequestBodyVisitor from './visitors/open-api-3-1/request-body/index.ts'; +import CallbackVisitor from './visitors/open-api-3-1/callback/index.ts'; +import ResponseVisitor from './visitors/open-api-3-1/response/index.ts'; +import ResponsesVisitor from './visitors/open-api-3-1/responses/index.ts'; +import OperationVisitor from './visitors/open-api-3-1/operation/index.ts'; +import PathItemVisitor from './visitors/open-api-3-1/path-item/index.ts'; +import SecuritySchemeVisitor from './visitors/open-api-3-1/security-scheme/index.ts'; +import OAuthFlowsVisitor from './visitors/open-api-3-1/oauth-flows/index.ts'; +import OAuthFlowVisitor from './visitors/open-api-3-1/oauth-flow/index.ts'; +import WebhooksVisitor from './visitors/open-api-3-1/WebhooksVisitor.ts'; /** * Specification object allows us to have complete control over visitors diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/toolbox.ts b/packages/apidom-ns-openapi-3-1/src/refractor/toolbox.ts index 4fba1aa78b..0e1c30e75f 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/toolbox.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/toolbox.ts @@ -15,8 +15,8 @@ import { import { compile as compileJSONPointerTokens } from '@swagger-api/apidom-json-pointer'; import { isServersElement } from '@swagger-api/apidom-ns-openapi-3-0'; -import * as openApi3_1Predicates from '../predicates'; -import openApi3_1Namespace from '../namespace'; +import * as openApi3_1Predicates from '../predicates.ts'; +import openApi3_1Namespace from '../namespace.ts'; export type Predicates = typeof openApi3_1Predicates & { isElement: typeof isElement; diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts index 79c2a332ad..696dd56659 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/JsonSchemaDialectVisitor.ts @@ -7,7 +7,7 @@ import { SpecificationVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import JsonSchemaDialectElement from '../../../elements/JsonSchemaDialect'; +import JsonSchemaDialectElement from '../../../elements/JsonSchemaDialect.ts'; export interface JsonSchemaDialectVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts index 5228861739..414147b62c 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/WebhooksVisitor.ts @@ -9,10 +9,10 @@ import { SpecPath, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ReferenceElement from '../../../elements/Reference'; -import PathItemElement from '../../../elements/PathItem'; -import WebhooksElement from '../../../elements/nces/Webhooks'; -import { isPathItemElement, isReferenceElement } from '../../../predicates'; +import ReferenceElement from '../../../elements/Reference.ts'; +import PathItemElement from '../../../elements/PathItem.ts'; +import WebhooksElement from '../../../elements/nces/Webhooks.ts'; +import { isPathItemElement, isReferenceElement } from '../../../predicates.ts'; export interface WebhooksVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/callback/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/callback/index.ts index 73c4bdaad5..a79a5a5d04 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/callback/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/callback/index.ts @@ -6,9 +6,9 @@ import { CallbackVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import CallbackElement from '../../../../elements/Callback'; -import ReferenceElement from '../../../../elements/Reference'; -import { isReferenceElement } from '../../../../predicates'; +import CallbackElement from '../../../../elements/Callback.ts'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts index ac50a77659..7e2a32f859 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/PathItemsVisitor.ts @@ -9,9 +9,9 @@ import { FallbackVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ReferenceElement from '../../../../elements/Reference'; -import ComponentsPathItemsElement from '../../../../elements/nces/ComponentsPathItems'; -import { isReferenceElement } from '../../../../predicates'; +import ReferenceElement from '../../../../elements/Reference.ts'; +import ComponentsPathItemsElement from '../../../../elements/nces/ComponentsPathItems.ts'; +import { isReferenceElement } from '../../../../predicates.ts'; export interface PathItemsVisitorOptions extends MapVisitorOptions, FallbackVisitorOptions {} diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/index.ts index a6668a1b2e..d96ae43bdc 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/components/index.ts @@ -3,7 +3,7 @@ import { ComponentsVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ComponentsElement from '../../../../elements/Components'; +import ComponentsElement from '../../../../elements/Components.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/contact/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/contact/index.ts index 03e25055af..20267a56c1 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/contact/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/contact/index.ts @@ -3,7 +3,7 @@ import { ContactVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ContactElement from '../../../../elements/Contact'; +import ContactElement from '../../../../elements/Contact.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/distriminator/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/distriminator/index.ts index 6a3157d556..a27f053043 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/distriminator/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/distriminator/index.ts @@ -3,7 +3,7 @@ import { DiscriminatorVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import DiscriminatorElement from '../../../../elements/Discriminator'; +import DiscriminatorElement from '../../../../elements/Discriminator.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/encoding/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/encoding/index.ts index 031664a815..ca34ef07ed 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/encoding/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/encoding/index.ts @@ -3,7 +3,7 @@ import { EncodingVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import EncodingElement from '../../../../elements/Encoding'; +import EncodingElement from '../../../../elements/Encoding.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/example/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/example/index.ts index b79328a018..2671a025ad 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/example/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/example/index.ts @@ -3,7 +3,7 @@ import { ExampleVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ExampleElement from '../../../../elements/Example'; +import ExampleElement from '../../../../elements/Example.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/external-documentation/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/external-documentation/index.ts index 739ff8c538..a4e76981e5 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/external-documentation/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/external-documentation/index.ts @@ -3,7 +3,7 @@ import { ExternalDocumentationVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ExternalDocumentationElement from '../../../../elements/ExternalDocumentation'; +import ExternalDocumentationElement from '../../../../elements/ExternalDocumentation.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/header/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/header/index.ts index ab96e5c78c..c42e56060f 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/header/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/header/index.ts @@ -3,7 +3,7 @@ import { HeaderVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import HeaderElement from '../../../../elements/Header'; +import HeaderElement from '../../../../elements/Header.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/index.ts index 7f0b474b91..3f837fbce7 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/index.ts @@ -9,7 +9,7 @@ import { SpecPath, } from '@swagger-api/apidom-ns-openapi-3-0'; -import OpenApi3_1Element from '../../../elements/OpenApi3-1'; +import OpenApi3_1Element from '../../../elements/OpenApi3-1.ts'; // eslint-disable-next-line @typescript-eslint/naming-convention export interface OpenApi3_1VisitorOptions diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/info/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/info/index.ts index 09c78e17ae..aa3454fafb 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/info/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/info/index.ts @@ -3,7 +3,7 @@ import { InfoVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import InfoElement from '../../../../elements/Info'; +import InfoElement from '../../../../elements/Info.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/license/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/license/index.ts index 4c1cdea158..05788dbc03 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/license/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/license/index.ts @@ -3,7 +3,7 @@ import { LicenseVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import LicenseElement from '../../../../elements/License'; +import LicenseElement from '../../../../elements/License.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/link/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/link/index.ts index 9756ed5556..534f240cd7 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/link/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/link/index.ts @@ -3,7 +3,7 @@ import { LinkVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import LinkElement from '../../../../elements/Link'; +import LinkElement from '../../../../elements/Link.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/media-type/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/media-type/index.ts index 2f15f97931..6af10d2581 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/media-type/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/media-type/index.ts @@ -3,7 +3,7 @@ import { MediaTypeVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import MediaTypeElement from '../../../../elements/MediaType'; +import MediaTypeElement from '../../../../elements/MediaType.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts index 299603583c..d46ffd2af6 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flow/index.ts @@ -3,7 +3,7 @@ import { OAuthFlowVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import OAuthFlowElement from '../../../../elements/OAuthFlow'; +import OAuthFlowElement from '../../../../elements/OAuthFlow.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts index 78b2aa2899..271f726860 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/oauth-flows/index.ts @@ -3,7 +3,7 @@ import { OAuthFlowsVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import OAuthFlowsElement from '../../../../elements/OAuthFlows'; +import OAuthFlowsElement from '../../../../elements/OAuthFlows.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/operation/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/operation/index.ts index cf617cd2d1..cbfc7158c7 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/operation/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/operation/index.ts @@ -3,7 +3,7 @@ import { OperationVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import OperationElement from '../../../../elements/Operation'; +import OperationElement from '../../../../elements/Operation.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/parameter/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/parameter/index.ts index 8d2c35c77a..a0bc979169 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/parameter/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/parameter/index.ts @@ -3,7 +3,7 @@ import { ParameterVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ParameterElement from '../../../../elements/Parameter'; +import ParameterElement from '../../../../elements/Parameter.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/path-item/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/path-item/index.ts index acbed5fed9..0f3ef84dd4 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/path-item/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/path-item/index.ts @@ -3,7 +3,7 @@ import { PathItemVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import PathItemElement from '../../../../elements/PathItem'; +import PathItemElement from '../../../../elements/PathItem.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/paths/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/paths/index.ts index bd6b638e66..94c8417b4b 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/paths/index.ts @@ -3,7 +3,7 @@ import { PathsVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import PathsElement from '../../../../elements/Paths'; +import PathsElement from '../../../../elements/Paths.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/reference/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/reference/index.ts index 34dff9212a..894cf2b8dd 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/reference/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/reference/index.ts @@ -3,7 +3,7 @@ import { ReferenceVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ReferenceElement from '../../../../elements/Reference'; +import ReferenceElement from '../../../../elements/Reference.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/request-body/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/request-body/index.ts index ee923ab48a..18f1208605 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/request-body/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/request-body/index.ts @@ -3,7 +3,7 @@ import { RequestBodyVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import RequestBodyElement from '../../../../elements/RequestBody'; +import RequestBodyElement from '../../../../elements/RequestBody.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/response/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/response/index.ts index c379882b06..88fee0c13c 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/response/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/response/index.ts @@ -3,7 +3,7 @@ import { ResponseVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ResponseElement from '../../../../elements/Response'; +import ResponseElement from '../../../../elements/Response.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/responses/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/responses/index.ts index 7012fd142a..2028c7b9df 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/responses/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/responses/index.ts @@ -3,7 +3,7 @@ import { ResponsesVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ResponsesElement from '../../../../elements/Responses'; +import ResponsesElement from '../../../../elements/Responses.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts index f5c30cb9fc..634d003b8a 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/$defsVisitor.ts @@ -11,7 +11,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface $defsVisitorOptions extends MapVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts index db34226c7f..39e7400b40 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AllOfVisitor.ts @@ -9,7 +9,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface AllOfVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts index bf7b11f53d..e22c587dec 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/AnyOfVisitor.ts @@ -9,7 +9,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface AnyOfVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts index 2b91cfdf75..7fde085e7b 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/DependentSchemasVisitor.ts @@ -11,7 +11,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface DependentSchemasVisitorOptions extends MapVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts index 06bc0c9cb6..b8979e82e3 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/OneOfVisitor.ts @@ -9,7 +9,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface OneOfVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts index bc7335fd6e..5de9f19133 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PatternPropertiesVisitor.ts @@ -11,7 +11,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface PatternPropertiesVisitorOptions extends MapVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts index a1b1f9efe8..e32282b64e 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PrefixItemsVisitor.ts @@ -9,7 +9,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface PrefixItemsVisitorOptions extends SpecificationVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts index 68840aed60..5e5cbc1722 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/PropertiesVisitor.ts @@ -11,7 +11,7 @@ import { import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface PropertiesVisitorOptions extends MapVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/index.ts index 741fe50851..9d36649a9c 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/schema/index.ts @@ -16,12 +16,12 @@ import { FixedFieldsVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import { isSchemaElement, isJsonSchemaDialectElement } from '../../../../predicates'; -import SchemaElement from '../../../../elements/Schema'; -import JsonSchemaDialectElement from '../../../../elements/JsonSchemaDialect'; +import { isSchemaElement, isJsonSchemaDialectElement } from '../../../../predicates.ts'; +import SchemaElement from '../../../../elements/Schema.ts'; +import JsonSchemaDialectElement from '../../../../elements/JsonSchemaDialect.ts'; import ParentSchemaAwareVisitor, { ParentSchemaAwareVisitorOptions, -} from './ParentSchemaAwareVisitor'; +} from './ParentSchemaAwareVisitor.ts'; export interface SchemaVisitorOptions extends FixedFieldsVisitorOptions, diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-requirement/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-requirement/index.ts index 10889cdeb1..e69c01bc71 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-requirement/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-requirement/index.ts @@ -3,7 +3,7 @@ import { SecurityRequirementVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import SecurityRequirementElement from '../../../../elements/SecurityRequirement'; +import SecurityRequirementElement from '../../../../elements/SecurityRequirement.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-scheme/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-scheme/index.ts index f833970457..94982699ae 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-scheme/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/security-scheme/index.ts @@ -3,7 +3,7 @@ import { SecuritySchemeVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import SecuritySchemeElement from '../../../../elements/SecurityScheme'; +import SecuritySchemeElement from '../../../../elements/SecurityScheme.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server-variable/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server-variable/index.ts index 9f85b658c5..d1243976cf 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server-variable/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server-variable/index.ts @@ -3,7 +3,7 @@ import { ServerVariableVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ServerVariableElement from '../../../../elements/ServerVariable'; +import ServerVariableElement from '../../../../elements/ServerVariable.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server/index.ts index 4051b232ae..a5d6d3bc32 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/server/index.ts @@ -3,7 +3,7 @@ import { ServerVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import ServerElement from '../../../../elements/Server'; +import ServerElement from '../../../../elements/Server.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/tag/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/tag/index.ts index f2e8321589..cab829bd39 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/tag/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/tag/index.ts @@ -3,7 +3,7 @@ import { TagVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import TagElement from '../../../../elements/Tag'; +import TagElement from '../../../../elements/Tag.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/xml/index.ts b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/xml/index.ts index 7cc5c139cb..20fc24f615 100644 --- a/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/xml/index.ts +++ b/packages/apidom-ns-openapi-3-1/src/refractor/visitors/open-api-3-1/xml/index.ts @@ -3,7 +3,7 @@ import { XmlVisitorOptions, } from '@swagger-api/apidom-ns-openapi-3-0'; -import XmlElement from '../../../../elements/Xml'; +import XmlElement from '../../../../elements/Xml.ts'; const { visitors: { diff --git a/packages/apidom-ns-openapi-3-1/test/mocha-bootstrap.ts b/packages/apidom-ns-openapi-3-1/test/mocha-bootstrap.ts index 4f8d8adf2e..aec560d03f 100644 --- a/packages/apidom-ns-openapi-3-1/test/mocha-bootstrap.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/perf/index.ts b/packages/apidom-ns-openapi-3-1/test/perf/index.ts index e341295f3c..66ebca4b15 100644 --- a/packages/apidom-ns-openapi-3-1/test/perf/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/perf/index.ts @@ -1,8 +1,8 @@ import Benchmark from 'benchmark'; import type { Event } from 'benchmark'; -import refractBench from './refract'; -import visitorShortcutBench from './visitor-shortcut'; +import refractBench from './refract.ts'; +import visitorShortcutBench from './visitor-shortcut.ts'; const suite = new Benchmark.Suite(); diff --git a/packages/apidom-ns-openapi-3-1/test/perf/refract.ts b/packages/apidom-ns-openapi-3-1/test/perf/refract.ts index d6289be012..208d951f4f 100644 --- a/packages/apidom-ns-openapi-3-1/test/perf/refract.ts +++ b/packages/apidom-ns-openapi-3-1/test/perf/refract.ts @@ -2,7 +2,7 @@ import Benchmark from 'benchmark'; import type { Event } from 'benchmark'; import { ObjectElement } from '@swagger-api/apidom-core'; -import { OpenApi3_1Element } from '../../src'; +import { OpenApi3_1Element } from '../../src/index.ts'; const genericObjectElement = new ObjectElement({ openapi: '3.1.0', diff --git a/packages/apidom-ns-openapi-3-1/test/perf/visitor-shortcut.ts b/packages/apidom-ns-openapi-3-1/test/perf/visitor-shortcut.ts index cb17d85ff6..33a5c7d51f 100644 --- a/packages/apidom-ns-openapi-3-1/test/perf/visitor-shortcut.ts +++ b/packages/apidom-ns-openapi-3-1/test/perf/visitor-shortcut.ts @@ -2,7 +2,7 @@ import Benchmark from 'benchmark'; import type { Event } from 'benchmark'; import { ObjectElement } from '@swagger-api/apidom-core'; -import { OpenApi3_1Element } from '../../src'; +import { OpenApi3_1Element } from '../../src/index.ts'; const genericObjectElement = new ObjectElement({ openapi: '3.1.0', diff --git a/packages/apidom-ns-openapi-3-1/test/predicates.ts b/packages/apidom-ns-openapi-3-1/test/predicates.ts index 385e768a4e..6ba500884d 100644 --- a/packages/apidom-ns-openapi-3-1/test/predicates.ts +++ b/packages/apidom-ns-openapi-3-1/test/predicates.ts @@ -30,7 +30,7 @@ import { OperationElement, ReferenceElement, isReferenceElement, -} from '../src'; +} from '../src/index.ts'; describe('predicates', function () { context('isOpenApiApi3_1Element', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Callback/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Callback/index.ts index d46f2db514..9e1d94540c 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Callback/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Components/index.ts index 15a192b032..2fd56eaa11 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Components/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Contact/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Contact/index.ts index 4c0bce4e5c..934f93f491 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Contact/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Discriminator/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Discriminator/index.ts index f3c6dcb11b..77e49f73e8 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Discriminator/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Encoding/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Encoding/index.ts index 2a2345e014..2de68ba957 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Encoding/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Example/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Example/index.ts index b8a300d3e9..9cf2a64c7f 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Example/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/ExternalDocumentation/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/ExternalDocumentation/index.ts index d4c2a02b88..7ea08649f0 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/ExternalDocumentation/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Header/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Header/index.ts index 22b6347c02..0b7a169f6b 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Header/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Info/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Info/index.ts index 31fe2b7095..54f76392fd 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Info/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Info/index.ts @@ -1,7 +1,7 @@ import { assert, expect } from 'chai'; import { ObjectElement, sexprs, toValue } 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-1/test/refractor/elements/JsonSchemaDialect/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/JsonSchemaDialect/index.ts index c985f26d2f..5be5efbbd8 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/JsonSchemaDialect/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/JsonSchemaDialect/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { JsonSchemaDialectElement } from '../../../../src'; +import { JsonSchemaDialectElement } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/elements/License/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/License/index.ts index f5bb7e26d0..20f4b10417 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/License/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Link/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Link/index.ts index 183eec75d7..4245531136 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Link/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/MediaType/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/MediaType/index.ts index 983a394b43..ae70ff0b5b 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/MediaType/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/OAuthFlow/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/OAuthFlow/index.ts index b9210bffd4..a8c0690102 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/OAuthFlow/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/OAuthFlows/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/OAuthFlows/index.ts index d264c50f3b..8df34870c6 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/OAuthFlows/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/OpenApi3-1/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/OpenApi3-1/index.ts index 974d87e6f1..0224df2c71 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/OpenApi3-1/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/OpenApi3-1/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } from '@swagger-api/apidom-core'; -import { OpenApi3_1Element } from '../../../../src'; +import { OpenApi3_1Element } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Openapi/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Openapi/index.ts index 710ed5ae36..8d9ec6a0b4 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Openapi/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Operation/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Operation/index.ts index 7ad2053c78..b0f87080ba 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Operation/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Parameter/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Parameter/index.ts index d978494b0f..94fe2b05b4 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Parameter/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/PathItem/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/PathItem/index.ts index d1b934c317..017e362550 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/PathItem/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Paths/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Paths/index.ts index 52cb28a8e0..2e75a30142 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Reference/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Reference/index.ts index 944a4cca35..c023a036c6 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Reference/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/RequestBody/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/RequestBody/index.ts index 268f3bbad3..7b5fbecb63 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/RequestBody/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Response/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Response/index.ts index c6132d08c0..7eef584606 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Response/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Responses/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Responses/index.ts index 9c4a7a92cd..5d087803b3 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Responses/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Schema/embedded-resources-$id.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$id.ts index 21167e685a..72fdac0ef2 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$id.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$id.ts @@ -1,7 +1,7 @@ import { assert } from 'chai'; import { ObjectElement, find, toValue, isElement } from '@swagger-api/apidom-core'; -import { isSchemaElement, OpenApi3_1Element } from '../../../../src'; +import { isSchemaElement, OpenApi3_1Element } from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$schema.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$schema.ts index e07785c512..f555f573f3 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$schema.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/embedded-resources-$schema.ts @@ -7,7 +7,7 @@ import { JsonSchemaDialectElement, OpenApi3_1Element, SchemaElement, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('elements', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/index.ts index 7eaf71829f..54c494fda9 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Schema/index.ts @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { sexprs } 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-1/test/refractor/elements/SecurityRequirement/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/SecurityRequirement/index.ts index f38fce05a8..3893fa6e2d 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/SecurityRequirement/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/SecurityScheme/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/SecurityScheme/index.ts index 99aa493e87..e31fda9a94 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/SecurityScheme/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Server/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Server/index.ts index c9abd51f89..ad49dfb159 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Server/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/ServerVariable/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/ServerVariable/index.ts index 671fd090a3..7daf6ca3c0 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/ServerVariable/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Tag/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Tag/index.ts index 32af35e643..6bff443e7e 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Tag/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/elements/Xml/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/elements/Xml/index.ts index 8e805abdde..a82fa3e4b6 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/elements/Xml/index.ts +++ b/packages/apidom-ns-openapi-3-1/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-1/test/refractor/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/index.ts index e13a9d4caa..8ac38ef06e 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/index.ts @@ -5,8 +5,8 @@ import { assert, expect } from 'chai'; import sinon from 'sinon'; import { ObjectElement, toValue, Namespace } from '@swagger-api/apidom-core'; -import { OpenApi3_1Element, OpenapiElement, isOpenapiElement } from '../../src'; -import * as predicates from '../../src/predicates'; +import { OpenApi3_1Element, OpenapiElement, isOpenapiElement } 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-1/test/refractor/plugins/normalize-header-examples/components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/components/index.ts index a12f2040ad..1251728b09 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/components/index.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeHeaderExamples } from '../../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeHeaderExamples, +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/idempotence.ts index bcb55b654a..bffd23728e 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeHeaderExamples, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/paths/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/paths/index.ts index a9b38cf72a..a74e0d2bd3 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/paths/index.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeHeaderExamples } from '../../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeHeaderExamples, +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/storage-field.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/storage-field.ts index 7cb280952e..9ed906feaf 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/storage-field.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-header-examples/storage-field.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeHeaderExamples } from '../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeHeaderExamples, +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/idempotence.ts index 5a2eb58ad6..807508ad80 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeOperationIds, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/index.ts index 6dd1f9d5b0..b8ad82835a 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/index.ts @@ -2,7 +2,7 @@ import { expect } from 'chai'; import dedent from 'dedent'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeOperationIds } from '../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeOperationIds } from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/storage-fields.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/storage-fields.ts index d6b471f8f7..3c38fe25a8 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/storage-fields.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-operation-ids/storage-fields.ts @@ -3,7 +3,7 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeOperationIds } from '../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeOperationIds } from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/components/index.ts index 6d7e1457ab..3108bd499f 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/components/index.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeParameterExamples } from '../../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeParameterExamples, +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/idempotence.ts index 9c8536969c..fc40092b36 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeParameterExamples, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/paths/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/paths/index.ts index 9336cb4297..bc19d7fe5c 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/paths/index.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeParameterExamples } from '../../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeParameterExamples, +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/storage-field.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/storage-field.ts index adca6fbe4d..8603f1e9c2 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/storage-field.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameter-examples/storage-field.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeParameterExamples } from '../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeParameterExamples, +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/callbacks/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/callbacks/index.ts index 347932ed96..631536d214 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/callbacks/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/callbacks/index.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 { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/components/index.ts index e9b6e1fce4..5351eefdae 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/components/index.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 { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/idempotence.ts index af2e5c653f..d83ed20df8 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeParameters, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/paths/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/paths/index.ts index 1e94236faa..5620d02386 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/paths/index.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 { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/storage-field.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/storage-field.ts index cef6cd123f..174fd33238 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/storage-field.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/storage-field.ts @@ -3,7 +3,7 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/web-hooks/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/web-hooks/index.ts index 80a8a9afdd..120e25398c 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/web-hooks/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-parameters/web-hooks/index.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 { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeParameters } from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/callbacks/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/callbacks/index.ts index 76cead2e28..0d7568fd54 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/callbacks/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/callbacks/index.ts @@ -6,7 +6,7 @@ import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; import { OpenApi3_1Element, refractorPluginNormalizeSecurityRequirements, -} from '../../../../../src'; +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/components/index.ts index 8a5ef6321b..7cb1365f85 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/components/index.ts @@ -6,7 +6,7 @@ import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; import { OpenApi3_1Element, refractorPluginNormalizeSecurityRequirements, -} from '../../../../../src'; +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/idempotence.ts index 9f131df090..2d65b6b9b7 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeSecurityRequirements, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/paths/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/paths/index.ts index 6997bb2b7a..834b4b3744 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/paths/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/paths/index.ts @@ -6,7 +6,7 @@ import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; import { OpenApi3_1Element, refractorPluginNormalizeSecurityRequirements, -} from '../../../../../src'; +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/storage-field.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/storage-field.ts index cb31da1319..b3f0cc5cdb 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/storage-field.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/storage-field.ts @@ -3,7 +3,10 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeSecurityRequirements } from '../../../../src'; +import { + OpenApi3_1Element, + refractorPluginNormalizeSecurityRequirements, +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/webhooks/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/webhooks/index.ts index 96ee9b5857..b6cb17d51c 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/webhooks/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-security-requirements/webhooks/index.ts @@ -6,7 +6,7 @@ import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; import { OpenApi3_1Element, refractorPluginNormalizeSecurityRequirements, -} from '../../../../../src'; +} from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/components/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/components/index.ts index 9d37956e79..d8a7e0e261 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/components/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/components/index.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 { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/idempotence.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/idempotence.ts index dae12e8682..8cc20c21d9 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/idempotence.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/idempotence.ts @@ -9,7 +9,7 @@ import { refractorPluginNormalizeServers, keyMap, getNodeType, -} from '../../../../src'; +} from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/index.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/index.ts index a5778f1dc3..672d1ef664 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/index.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/index.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 { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/storage-fields.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/storage-fields.ts index b9ead5b28c..b87c7c9968 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/storage-fields.ts +++ b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/normalize-servers/storage-fields.ts @@ -3,7 +3,7 @@ import dedent from 'dedent'; import { toValue } from '@swagger-api/apidom-core'; import { parse } from '@swagger-api/apidom-parser-adapter-yaml-1-2'; -import { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../src'; +import { OpenApi3_1Element, refractorPluginNormalizeServers } from '../../../../src/index.ts'; describe('refractor', function () { context('plugins', function () { diff --git a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/replace-empty-element/mappings.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/replace-empty-element/mappings.ts index c5f34af432..38b300e200 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/replace-empty-element/mappings.ts +++ b/packages/apidom-ns-openapi-3-1/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_1Element } from '../../../../src'; +import { refractorPluginReplaceEmptyElement, OpenApi3_1Element } 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-1/test/refractor/plugins/replace-empty-element/sequences.ts b/packages/apidom-ns-openapi-3-1/test/refractor/plugins/replace-empty-element/sequences.ts index 43fb648663..d89e351867 100644 --- a/packages/apidom-ns-openapi-3-1/test/refractor/plugins/replace-empty-element/sequences.ts +++ b/packages/apidom-ns-openapi-3-1/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_1Element } from '../../../../src'; +import { refractorPluginReplaceEmptyElement, OpenApi3_1Element } 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-1/test/tsconfig.json b/packages/apidom-ns-openapi-3-1/test/tsconfig.json new file mode 100644 index 0000000000..405aae2d2f --- /dev/null +++ b/packages/apidom-ns-openapi-3-1/test/tsconfig.json @@ -0,0 +1,10 @@ +{ + "extends": "../tsconfig.json", + "compilerOptions": { + "module": "esnext", + "moduleResolution": "node" + }, + "include": [ + "." + ] +} diff --git a/packages/apidom-ns-openapi-3-1/declaration.tsconfig.json b/packages/apidom-ns-openapi-3-1/tsconfig.declaration.json similarity index 82% rename from packages/apidom-ns-openapi-3-1/declaration.tsconfig.json rename to packages/apidom-ns-openapi-3-1/tsconfig.declaration.json index 5697fa3e89..82d128fa80 100644 --- a/packages/apidom-ns-openapi-3-1/declaration.tsconfig.json +++ b/packages/apidom-ns-openapi-3-1/tsconfig.declaration.json @@ -1,8 +1,5 @@ { "extends": "./tsconfig.json", - "exclude": [ - "test/**/*" - ], "compilerOptions": { "declaration": true, "declarationDir": "types", diff --git a/packages/apidom-ns-openapi-3-1/tsconfig.json b/packages/apidom-ns-openapi-3-1/tsconfig.json index 4081635a03..501a41d3f2 100644 --- a/packages/apidom-ns-openapi-3-1/tsconfig.json +++ b/packages/apidom-ns-openapi-3-1/tsconfig.json @@ -1,7 +1,11 @@ { "extends": "../../tsconfig.json", + "compilerOptions": { + "module": "nodenext", + "moduleResolution": "nodenext", + "allowImportingTsExtensions": true + }, "include": [ - "src/**/*", - "test/**/*" + "src/**/*" ] }