Replies: 1 comment 2 replies
-
@andriy-dmytruk maybe we need a change in the generator here. returning String directly will lead to raw body writing |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone.
My problem/question/concern is: Let say I have a defined API (OpenAPI) like this:
As a result of generation I have interface:
Base on it, I implemented a controller. But, in tests where I am using a declarative client. Calling endpoint looks like this:
Base on
application/json
content type, I expected that request body and request result will be something like this"BLUE"
.I found a discussion with similar question:
#11118
And my question is: is it applicable for micronaut-client? I mean, in case of string, micronaut-client expects raw/encoded JSON?
Why IMHO it is a bug, because when I use other client (lets say POSTMAN/CURL/IntelliJ HTTP) and send something like this:
and try do something like this:
I will receive:
In my situation, I cannot use
enum
assetColor
argument because of:micronaut-projects/micronaut-openapi#1896
Thank you in advance for your response, explanation.
Beta Was this translation helpful? Give feedback.
All reactions