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
the getOperationRequestBody-function is used and the requestBody is added to the parameters and the parametersBody property is set on the operation. After that in
the parameters are only filtered on body and as such the formData types are ignored and the body is not set at all.
I have a PullRequest, which will fix the problem, which I have - requestBody transformed in formData and consequently missing from the types, just by using the parametersBody property instead of filtering again the parameters.
This probably will miss real formData parameters, which in this case still will not be handled correctly.
OpenAPI specification (optional)
No response
Configuration
No response
System information (optional)
No response
The text was updated successfully, but these errors were encountered:
Description
So we have a Post with the following format:
and
The created type is missing the body:
I'm using "@hey-api/client-fetch" and "@hey-api/openapi-ts" built from the main branch.
So the problem seems to be that the standalone-client does not have formData fields anymore and
openapi-ts/packages/openapi-ts/src/openApi/v3/parser/getOperationRequestBody.ts
Line 51 in a2cb1b0
openapi-ts/packages/openapi-ts/src/openApi/v3/parser/operation.ts
Line 119 in a2cb1b0
openapi-ts/packages/openapi-ts/src/utils/write/types.ts
Line 262 in a2cb1b0
I have a PullRequest, which will fix the problem, which I have - requestBody transformed in formData and consequently missing from the types, just by using the parametersBody property instead of filtering again the parameters.
This probably will miss real formData parameters, which in this case still will not be handled correctly.
OpenAPI specification (optional)
No response
Configuration
No response
System information (optional)
No response
The text was updated successfully, but these errors were encountered: