Closed
Description
Hello,
This is an awesome work ! It's almost fit my need !
I just found something missing, or maybe i dont understand something.
I use that lib with an express api to get request and response typing. The generator create needed types for request query/body and response body, that perfect, but i miss the request path params.
For exemple, from this schema:
"/user/{userId}/edit": {
"get": {
"operationId": "userEditGet",
"parameters": [
{
"in": "path",
"name": "userId",
"schema": { "type": "integer" },
"required": true,
}
],
"responses": {
...
}
},
}
I'd like to have :
export namespace UserMeGet {
export type RequestParams = { userId: number }; // Missing type
export type RequestQuery = {};
export type RequestBody = never;
export type ResponseBody = {
id: number;
email: string;
};
}
I saw that we can make custom templates and use hook to parse needed things, but maybe i miss something simpler ?
Thanks for your help !