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

Allow attributes to not override #90

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

andrewnicols
Copy link
Contributor

@andrewnicols andrewnicols commented Jun 19, 2024

Based on #89

This allows for configuration of the placeholder overiding an attribute behaviour as discussed in #86.

If there's a more appropriate way to handle this configuration, I'm happy to change it. I don't find the current approach very elegant but I can't see a better way right now (though it is nearly 1am).

It's worth noting that this change does not change the parameter value to be the attribute, it merely stops the attribute from being overwritten by the placeholder value if a value is already set.

In our usage we need to extend the ControllerInvoker to have responses
normalised from a generic Payload into a standard Response.

To make this easier it would be helpful if some private methods were
instead protected and the Invoker fetching the default resolver chain
were separated out from the creation of the ControllerInvoker.

Fixes #105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant