You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If allOf is used, a model that does not use import will be generated.
Because my project prohibits unused import, an error occurs in typescript.
import must be used or deleted.
// tslint:disable/** * My application * My application * * 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. */import{Box,Response,}from'./';/** * @export * @interface BoxResponse */exportinterfaceBoxResponseextendsBox,Response{/** * @type {string} * @memberof BoxResponse */status?: BoxResponseStatusEnum;/** * @type {number} * @memberof BoxResponse */id?: number;/** * @type {string} * @memberof BoxResponse */name?: string;}/** * @export * @enum {string} */exportenumBoxResponseStatusEnum{Success='success',Error='error'}
expected
// tslint:disable/** * My application * My application * * 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. */import{Box,Response,}from'./';/** * @export * @interface BoxResponse */exportinterfaceBoxResponseextendsBox,Response{}
Bug Report Checklist
Description
If allOf is used, a model that does not use import will be generated.
Because my project prohibits unused import, an error occurs in typescript.
import must be used or deleted.
taget schemas
generated typescript file
expected
openapi-generator version
4.2.0
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix
Checking now
The text was updated successfully, but these errors were encountered: