From 49e9911b3ffd6e0730e04a3bdbbb29e100b03c8a Mon Sep 17 00:00:00 2001 From: Jens L Date: Mon, 22 Nov 2021 22:17:15 +0100 Subject: [PATCH] [typescript-fetch] fix circular imports being generated (#10798) templates based off of #6140 and @ajaska closes #6140 --- .../resources/typescript-fetch/modelGeneric.mustache | 6 +++--- .../main/resources/typescript-fetch/modelOneOf.mustache | 9 ++++----- .../builds/default-v3.0/models/ArrayTest.ts | 2 +- .../typescript-fetch/builds/default-v3.0/models/Cat.ts | 4 +++- .../typescript-fetch/builds/default-v3.0/models/Dog.ts | 4 +++- .../builds/default-v3.0/models/EnumTest.ts | 8 +++++++- .../builds/default-v3.0/models/FormatTest.ts | 2 +- .../builds/default-v3.0/models/InlineResponseDefault.ts | 2 +- .../MixedPropertiesAndAdditionalPropertiesClass.ts | 2 +- .../default-v3.0/models/ObjectWithDeprecatedFields.ts | 2 +- .../default-v3.0/models/OuterObjectWithEnumProperty.ts | 2 +- .../typescript-fetch/builds/default-v3.0/models/Pet.ts | 4 +++- .../typescript-fetch/builds/default/models/Pet.ts | 4 +++- .../builds/enum/models/EnumPatternObject.ts | 4 +++- .../typescript-fetch/builds/es6-target/src/models/Pet.ts | 4 +++- .../builds/multiple-parameters/models/Pet.ts | 4 +++- .../builds/prefix-parameter-interfaces/src/models/Pet.ts | 4 +++- .../src/models/DefaultMetaOnlyResponse.ts | 2 +- .../src/models/FindPetsByStatusResponse.ts | 4 +++- .../src/models/FindPetsByUserResponse.ts | 4 +++- .../src/models/GetBehaviorPermissionsResponse.ts | 2 +- .../src/models/GetBehaviorTypeResponse.ts | 4 +++- .../src/models/GetMatchingPartsResponse.ts | 4 +++- .../src/models/GetPetPartTypeResponse.ts | 4 +++- .../builds/sagas-and-records/src/models/MatchingParts.ts | 2 +- .../builds/sagas-and-records/src/models/ModelError.ts | 2 +- .../builds/sagas-and-records/src/models/Pet.ts | 8 +++++++- .../sagas-and-records/src/models/PetRegionsResponse.ts | 2 +- .../builds/sagas-and-records/src/models/ResponseMeta.ts | 2 +- .../builds/typescript-three-plus/src/models/Pet.ts | 4 +++- .../builds/with-interfaces/models/Pet.ts | 4 +++- .../builds/with-npm-version/src/models/Pet.ts | 4 +++- 32 files changed, 81 insertions(+), 38 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache index 1428b031f5a..b37cfdec9da 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/modelGeneric.mustache @@ -1,13 +1,13 @@ import { exists, mapValues } from '../runtime'; {{#hasImports}} +{{#imports}} import { - {{#imports}} {{{.}}}, {{.}}FromJSON, {{.}}FromJSONTyped, {{.}}ToJSON, - {{/imports}} -} from './'; +} from './{{.}}'; +{{/imports}} {{/hasImports}} {{#discriminator}} diff --git a/modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache b/modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache index 12d60088b42..7cb97abeba8 100644 --- a/modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache +++ b/modules/openapi-generator/src/main/resources/typescript-fetch/modelOneOf.mustache @@ -1,13 +1,12 @@ {{#hasImports}} +{{#oneOf}} import { - {{#imports}} {{{.}}}, - {{/imports}} - {{#oneOf}} + {{{.}}}FromJSON, {{{.}}}FromJSONTyped, {{{.}}}ToJSON, - {{/oneOf}} -} from './'; +} from './{{.}}'; +{{/oneOf}} {{/hasImports}} {{>modelOneOfInterfaces}} diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts index e4c5f1e0c5b..17144b78281 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ArrayTest.ts @@ -18,7 +18,7 @@ import { ReadOnlyFirstFromJSON, ReadOnlyFirstFromJSONTyped, ReadOnlyFirstToJSON, -} from './'; +} from './ReadOnlyFirst'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts index 9ca592b7f45..7d6db07958a 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Cat.ts @@ -18,11 +18,13 @@ import { AnimalFromJSON, AnimalFromJSONTyped, AnimalToJSON, +} from './Animal'; +import { CatAllOf, CatAllOfFromJSON, CatAllOfFromJSONTyped, CatAllOfToJSON, -} from './'; +} from './CatAllOf'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts index 2194d53d12f..f68b8e02510 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Dog.ts @@ -18,11 +18,13 @@ import { AnimalFromJSON, AnimalFromJSONTyped, AnimalToJSON, +} from './Animal'; +import { DogAllOf, DogAllOfFromJSON, DogAllOfFromJSONTyped, DogAllOfToJSON, -} from './'; +} from './DogAllOf'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts index 0dad062d603..22e369f3986 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/EnumTest.ts @@ -18,19 +18,25 @@ import { OuterEnumFromJSON, OuterEnumFromJSONTyped, OuterEnumToJSON, +} from './OuterEnum'; +import { OuterEnumDefaultValue, OuterEnumDefaultValueFromJSON, OuterEnumDefaultValueFromJSONTyped, OuterEnumDefaultValueToJSON, +} from './OuterEnumDefaultValue'; +import { OuterEnumInteger, OuterEnumIntegerFromJSON, OuterEnumIntegerFromJSONTyped, OuterEnumIntegerToJSON, +} from './OuterEnumInteger'; +import { OuterEnumIntegerDefaultValue, OuterEnumIntegerDefaultValueFromJSON, OuterEnumIntegerDefaultValueFromJSONTyped, OuterEnumIntegerDefaultValueToJSON, -} from './'; +} from './OuterEnumIntegerDefaultValue'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts index dc076e5ed75..b60fcb5756a 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/FormatTest.ts @@ -18,7 +18,7 @@ import { DecimalFromJSON, DecimalFromJSONTyped, DecimalToJSON, -} from './'; +} from './Decimal'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/InlineResponseDefault.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/InlineResponseDefault.ts index 572379f86a4..adcfc15dfbd 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/InlineResponseDefault.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/InlineResponseDefault.ts @@ -18,7 +18,7 @@ import { FooFromJSON, FooFromJSONTyped, FooToJSON, -} from './'; +} from './Foo'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts index ebb07fd89cb..15e830ea39c 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/MixedPropertiesAndAdditionalPropertiesClass.ts @@ -18,7 +18,7 @@ import { AnimalFromJSON, AnimalFromJSONTyped, AnimalToJSON, -} from './'; +} from './Animal'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts index 6fa59dbfca8..c14eb976bfa 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/ObjectWithDeprecatedFields.ts @@ -18,7 +18,7 @@ import { DeprecatedObjectFromJSON, DeprecatedObjectFromJSONTyped, DeprecatedObjectToJSON, -} from './'; +} from './DeprecatedObject'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts index 7e638d06292..878aef40cdf 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/OuterObjectWithEnumProperty.ts @@ -18,7 +18,7 @@ import { OuterEnumIntegerFromJSON, OuterEnumIntegerFromJSONTyped, OuterEnumIntegerToJSON, -} from './'; +} from './OuterEnumInteger'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts index fc8cdac4329..4b88dc214eb 100644 --- a/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default-v3.0/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/default/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts index e8fc617e08d..463eadb6d55 100644 --- a/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts +++ b/samples/client/petstore/typescript-fetch/builds/enum/models/EnumPatternObject.ts @@ -18,11 +18,13 @@ import { NumberEnumFromJSON, NumberEnumFromJSONTyped, NumberEnumToJSON, +} from './NumberEnum'; +import { StringEnum, StringEnumFromJSON, StringEnumFromJSONTyped, StringEnumToJSON, -} from './'; +} from './StringEnum'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/es6-target/src/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/multiple-parameters/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/prefix-parameter-interfaces/src/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts index b7fda0a183e..5b4dc83e5fe 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/DefaultMetaOnlyResponse.ts @@ -18,7 +18,7 @@ import { ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts index 9562ca6e87c..28dd4020cd8 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByStatusResponse.ts @@ -18,11 +18,13 @@ import { PetFromJSON, PetFromJSONTyped, PetToJSON, +} from './Pet'; +import { ResponseMeta, ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts index 42c2da380fa..4b767465168 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/FindPetsByUserResponse.ts @@ -18,11 +18,13 @@ import { ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, +} from './ResponseMeta'; +import { User, UserFromJSON, UserFromJSONTyped, UserToJSON, -} from './'; +} from './User'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts index b011c2c69a7..a53838a7464 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorPermissionsResponse.ts @@ -18,7 +18,7 @@ import { ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts index 924639ae196..c770b29beb7 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetBehaviorTypeResponse.ts @@ -18,11 +18,13 @@ import { BehaviorTypeFromJSON, BehaviorTypeFromJSONTyped, BehaviorTypeToJSON, +} from './BehaviorType'; +import { ResponseMeta, ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts index 76174ef6fcd..3690c3954f1 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetMatchingPartsResponse.ts @@ -18,11 +18,13 @@ import { MatchingPartsFromJSON, MatchingPartsFromJSONTyped, MatchingPartsToJSON, +} from './MatchingParts'; +import { ResponseMeta, ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts index d7a28113741..9a70cdc1a69 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/GetPetPartTypeResponse.ts @@ -18,11 +18,13 @@ import { PetPartTypeFromJSON, PetPartTypeFromJSONTyped, PetPartTypeToJSON, +} from './PetPartType'; +import { ResponseMeta, ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts index 7cd3d6c3352..70177cf458c 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/MatchingParts.ts @@ -18,7 +18,7 @@ import { PartFromJSON, PartFromJSONTyped, PartToJSON, -} from './'; +} from './Part'; /** * Contains all the matching parts diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts index 8e509add65c..7a4c5b62d03 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ModelError.ts @@ -18,7 +18,7 @@ import { ItemIdFromJSON, ItemIdFromJSONTyped, ItemIdToJSON, -} from './'; +} from './ItemId'; /** * This represent an error normally linked to a specific item from a previous request diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts index 2b59b900171..26e07c36c0f 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/Pet.ts @@ -18,19 +18,25 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { DeploymentRequestStatus, DeploymentRequestStatusFromJSON, DeploymentRequestStatusFromJSONTyped, DeploymentRequestStatusToJSON, +} from './DeploymentRequestStatus'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, +} from './Tag'; +import { WarningCode, WarningCodeFromJSON, WarningCodeFromJSONTyped, WarningCodeToJSON, -} from './'; +} from './WarningCode'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts index 7b4c268864d..2a2c7fb6a51 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/PetRegionsResponse.ts @@ -18,7 +18,7 @@ import { ResponseMetaFromJSON, ResponseMetaFromJSONTyped, ResponseMetaToJSON, -} from './'; +} from './ResponseMeta'; /** * diff --git a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts index 38fdca904cf..8c84dd4b556 100644 --- a/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts +++ b/samples/client/petstore/typescript-fetch/builds/sagas-and-records/src/models/ResponseMeta.ts @@ -18,7 +18,7 @@ import { ErrorCodeFromJSON, ErrorCodeFromJSONTyped, ErrorCodeToJSON, -} from './'; +} from './ErrorCode'; /** * Mandatory part of each response given by our API diff --git a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/typescript-three-plus/src/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-interfaces/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store diff --git a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts index 9417338414a..6a75faae426 100644 --- a/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts +++ b/samples/client/petstore/typescript-fetch/builds/with-npm-version/src/models/Pet.ts @@ -18,11 +18,13 @@ import { CategoryFromJSON, CategoryFromJSONTyped, CategoryToJSON, +} from './Category'; +import { Tag, TagFromJSON, TagFromJSONTyped, TagToJSON, -} from './'; +} from './Tag'; /** * A pet for sale in the pet store