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

Hapi Route Response Options Disregarded #182

Open
coldfission opened this issue May 19, 2020 · 0 comments
Open

Hapi Route Response Options Disregarded #182

coldfission opened this issue May 19, 2020 · 0 comments

Comments

@coldfission
Copy link

I have a use-case which would greatly benefit from changing default processing rules in route.options.response. The usage of this package hints that I should be able to specify this configuration in my api schema:

'x-hapi-options': {
    response: {
        modify: true,
        options: {
            stripUnknown: true
        }
    }
},

But this configuration is disregarded at this line of code. I would be happy to submit a pull request to fix if the krakenjs team feels this is something that should be addressed.

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

No branches or pull requests

1 participant