File tree Expand file tree Collapse file tree
packages/openapi-code-generator/src/typescript/common/schema-builders Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ export class ZodV3Builder extends AbstractSchemaBuilder<
226226 if ( model [ "x-enum-extensibility" ] === "open" ) {
227227 this . schemaBuilderImports . addSingle (
228228 "UnknownEnumNumberValue" ,
229- "./models" ,
229+ this . typeBuilder . filename ,
230230 true ,
231231 )
232232 return [
@@ -278,7 +278,7 @@ export class ZodV3Builder extends AbstractSchemaBuilder<
278278 if ( model [ "x-enum-extensibility" ] === "open" ) {
279279 this . schemaBuilderImports . addSingle (
280280 "UnknownEnumStringValue" ,
281- "./models" ,
281+ this . typeBuilder . filename ,
282282 true ,
283283 )
284284 return this . union ( [
Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ export class ZodV4Builder extends AbstractSchemaBuilder<
229229 if ( model [ "x-enum-extensibility" ] === "open" ) {
230230 this . schemaBuilderImports . addSingle (
231231 "UnknownEnumNumberValue" ,
232- "./models" ,
232+ this . typeBuilder . filename ,
233233 true ,
234234 )
235235 return [
@@ -281,7 +281,7 @@ export class ZodV4Builder extends AbstractSchemaBuilder<
281281 if ( model [ "x-enum-extensibility" ] === "open" ) {
282282 this . schemaBuilderImports . addSingle (
283283 "UnknownEnumStringValue" ,
284- "./models" ,
284+ this . typeBuilder . filename ,
285285 true ,
286286 )
287287 return this . union ( [
You can’t perform that action at this time.
0 commit comments