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
Generate code as above. Attempt to build via TypeScript:
npx tsc gen/model/cloudProvider.ts
Results in:
13 import { RequestFile } from '../api';
~~~~~~~~
Found 1 error.
Suggest a fix
Suggest moving the RequestFile definition into models.ts and also generating this file when --global-property models is provided. Will submit a PR with this fix...
Related Issue: #7040 (it should be noted that moving the RequestFile definition will not work until #7040 is addressed, as the validators import things from request)
The text was updated successfully, but these errors were encountered:
* add model/index.ts
- move export of all models to model/index.ts
- move RequestFile definition to model/index.ts
This fixes#7126
* update samples
* Back out models/index.ts
Make this backwards-compatible:
- move `RequestFile` definition to `model/models.ts`
- remove `model/index.ts`
- re-export `RequestFile` from `api/apis.ts`
- make generation of `ObjectSerializer` conditional
* for some reason, Symfony isn't up to date
* reverts changes to php-symfony sample
* moves comment to mustache comment rather than TS comment
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
* removes stale files from samples (no longer generated)
* updates samples
Co-authored-by: Esteban Gehring <esteban.gehring@gmail.com>
Bug Report Checklist
Description
When providing
--global-property models
to generate only models, the resultant TypeScript references../api
for importingRequestFile
.openapi-generator version
Not a regression that I know of.
OpenAPI declaration file content or url
Any valid OpenAPI file containing models will reproduce this.
Generation Details
Steps to reproduce
Generate code as above. Attempt to build via TypeScript:
Results in:
Suggest a fix
Suggest moving the
RequestFile
definition intomodels.ts
and also generating this file when--global-property models
is provided. Will submit a PR with this fix...Related Issue: #7040 (it should be noted that moving the
RequestFile
definition will not work until #7040 is addressed, as the validators import things fromrequest
)The text was updated successfully, but these errors were encountered: