Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Make possible to get response as a string #631

Closed
anton-tarasiuk opened this issue Jul 13, 2023 · 0 comments · Fixed by #660
Closed

[FEATURE] Make possible to get response as a string #631

anton-tarasiuk opened this issue Jul 13, 2023 · 0 comments · Fixed by #660
Assignees
Labels
enhancement New feature or request

Comments

@anton-tarasiuk
Copy link

anton-tarasiuk commented Jul 13, 2023

Is your feature request related to a problem? Please describe.
I've faced a case when response is needed to be used in next request "as is" - without converting it to object. I believe it could be useful to make response string available by adding default mapping for String type: String: jsonEncode,.

Describe the solution you'd like
Current solution is:

  1. Use response_override_value_map to override YourResponseModel with String
  2. Add String: jsonEncode, to generatedMapping rules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants