Open Gerandon opened 1 year ago
Same happens with requestBody Changed from
if (operation.requestBody) {
for (const content of operation.requestBody.content) {
this.collectImports(content.spec.schema);
}
}
To
// Add the request body additional dependencies
this.collectImports(variant.requestBody?.spec?.schema, true);
Do you mind sharing some example project to reproduce the issue?
Do you mind sharing some example project to reproduce the issue?
Sure, I'm gonna create a test project later if you don't mind, 'cause the exact problem came across in a private production app
Just recently found out, that the operation parameters will not get imported, if they represent a complex object.
I've got a custom template for
operationParameters.handlebars
, where basically I want to use models as my parameter type. The name of these models will be used as a parameter, but they are missing from the imports.My custom template:
I saw that back in August there were a few changes about that (
lib/service.ts:22
), including the following lines:Previously, in case of
operation.parameters
, they were "collected" asadditional: false
. Now as they are additional, they won't appear in the import list.Is it something that was made on purpose and I'm missing something, or was that made by mistake?