This is a repro for this reported issue:
OpenAPITools/openapi-generator#21587
To demo:
npm install
npm run build
cat dist/openapi/typescript/islands-api/client/models/GetPosts400Response.ts
I see the file at the bottom of this readme. This is invalid typescript, b/c the imports for this type are not included:
export type GetPosts400Response = GetPosts400ResponseOneOf | GetPosts400ResponseOneOf1;
/* tslint:disable */
/* eslint-disable */
/**
* Example API
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* @type GetPosts400Response
*
* @export
*/
export type GetPosts400Response = GetPosts400ResponseOneOf | GetPosts400ResponseOneOf1;
export function GetPosts400ResponseFromJSON(json: any): GetPosts400Response {
return GetPosts400ResponseFromJSONTyped(json, false);
}
export function GetPosts400ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPosts400Response {
if (json == null) {
return json;
}
return {} as any;
}
export function GetPosts400ResponseToJSON(json: any): any {
return GetPosts400ResponseToJSONTyped(json, false);
}
export function GetPosts400ResponseToJSONTyped(value?: GetPosts400Response | null, ignoreDiscriminator: boolean = false): any {
if (value == null) {
return value;
}
return {};
}