-
Notifications
You must be signed in to change notification settings - Fork 348
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
Transform request body for json-schema #2875
Comments
I think you can provide the actual request schema and add a new field that redirects to this field within additionalResolvers |
|
And my be you have other way to pass array to request body? |
Closed
Closed
This was referenced Apr 30, 2024
Closed
Closed
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I try to set up mesh for getting data from a service. The service has specific interface. I have no way to change the interface.
The service uses only POST requests to get and update data. All parameters for every method should be passed as an array in a request body.
Example
When I try to setup it in
json-schema
I need to userequestSample
in handler.operations. But it takes just object and if I set an array there the handler takes just first argument and ignore other.What do you think about an opportunity to transform body before request. It can be a path to file like
additionalResolvers
requestSample can be like this
And this is transform example
It should work fine.
The text was updated successfully, but these errors were encountered: