Closed thebrownfox closed 2 years ago
Ok, my bad. For anyone who cannot find out why it's not working, you need to parse the params beforehand.
const server = new Hapi.Server({
query: {
parser: (query) => qs.parse(query),
},
});
Maybe we should do somethig similat to this https://github.com/krakenjs/hapi-openapi/pull/211
When I try to use array in query parameters, I get this validation error. I think it's because it doesn't check against "search_fields[index]" (search_fields only).
ValidationError: "search_fields[0]" is not allowed
value:
This might be related: https://github.com/krakenjs/hapi-openapi/issues/199