Minor Changes
-
#1830
e7b418dThanks @Upgrade220! - AddimportFileExtensionandtypeOnlyImportsoptionsimportFileExtension(""|".js"|".ts") appends a file extension to
generated relative imports, for projects usingmoduleResolution: node16/nodenext
(.js) orallowImportingTsExtensions(.ts).typeOnlyImportsemitsimport typefor type-only imports (and inlinetypeon
mixed imports such as the http-client import, whereHttpClientstays a value
import) for projects usingverbatimModuleSyntax/isolatedModules.ContentType
is only markedtypeforenumStyle: "union", where it is a pure type.
Patch Changes
-
#1835
18023adThanks @ryanb93! - FixextractRequestParamsoverwriting a component schema whose name matches<operationId>Params.Since path-only routes started producing an extracted params type (13.2.9), a spec with an operation
getOrderand a component schemaGetOrderParams(for example the operation's request body) would have
the model silently replaced by the route's path/query params, so the generated method typed itsdata
argument as the path params instead of the body.createRequestParamsSchemanow goes through the same schema-key collision guard already used by
extractResponseBodyandextractResponseError, so the existing model keeps its name and the route
params fall back to the next free name (GetOrderParams1).