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

response options ignored #49

Open
grabbou opened this issue Oct 6, 2015 · 2 comments
Open

response options ignored #49

grabbou opened this issue Oct 6, 2015 · 2 comments

Comments

@grabbou
Copy link

grabbou commented Oct 6, 2015

When setting

response: {
        modify: true,
        options: {
          stripUnknown: true,
          presence: 'required'
        }
      },

all values are optional anyway.

@z0mt3c
Copy link
Owner

z0mt3c commented Oct 21, 2015

Whats your expected behavior - may just add a code example? I'm still in vacation-mode ;-)

@grabbou
Copy link
Author

grabbou commented Oct 21, 2015

Hey ;) No worries, there's no code to show to be fair. When presence: required I expect hapi-swaggered to respect that settings. Currently, all params are always marked as optional by default.

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

2 participants