hapi-swaggered icon indicating copy to clipboard operation
hapi-swaggered copied to clipboard

response options ignored

Open grabbou opened this issue 10 years ago • 2 comments

When setting

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

all values are optional anyway.

grabbou avatar Oct 06 '15 10:10 grabbou

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

z0mt3c avatar Oct 21 '15 12:10 z0mt3c

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.

grabbou avatar Oct 21 '15 13:10 grabbou