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
{{ message }}
Repository navigation
echo strict server when content-type is Text/plain #1676
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.
Activity
berthierpe commentedon Jul 2, 2024
I have the same issue
jamietanna commentedon Jul 3, 2024
Ooh that's an interesting bug, thanks for reporting! Yep that doesn't look right - we should be preserving other parts of the type, like the headers
chore(tests): add test case for #1676
Revert "fix(template): fix strict-interface template to make sure tex…
chore(tests): add test case for #1676
Revert "fix(template): fix strict-interface template to make sure tex…
fix: generate correct type for $ref text responses in strict server (o…
fix(strict-server): generate correct type for `$ref` text responses (#…