-
Notifications
You must be signed in to change notification settings - Fork 71
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
Option to change bodyAttr #56
Comments
Yes :) You can take a look here (https://github.com/tulios/mappersmith#body), but in a nutshell you can use the
|
Is it not possible to make it a global config like before? |
Currently it's not possible, is it something you would like to have? |
Yeah. It would be nice to have some of the resource attributes i.e bodyAttr, headersAttr and authAttr configurable at a higher level than resource definition, like host. My thinking behind this is that they are less likely to change than path and method. So that something like the following is possible:
|
Hi @tulios
Prior to version 2.0.0 we had something like this:
Mappersmith.forge(Manifest, Gateway, "data")
Is there a way to achieve the same (pass a custom bodyAttr) on version >= 2.0.0?
PS: If possible, can you put together a minimal migration guide?
The text was updated successfully, but these errors were encountered: