-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Milestone
Description
This previous problem has created a new problem for echo strict #1132
I create an api response with a header and a "text/plain" content.
When my api is generated with oapi-codegen, my response is malformed.
Instead of creating a structure containing my header and content, it only creates a string.
i use the version v1.13.0, which is deprecated. From v1.13.1 to v2.2.0, api does not generate correctly.
Here is my code:
file openapi.yml, my response to be generated
What i want (generated with the version v1.13.0)
What i have (generated with the version v2.2.0)
I think the problem may be here : https://github.com/oapi-codegen/oapi-codegen/blob/v2.2.0/pkg/codegen/templates/strict/strict-interface.tmpl#L42
I'm blocked.
Thank you
nathuch3 and berthierpeClementFr49 and nathuch3



