ユースケース: Hapi.js + hapi-swaggered + hapi-swaggered-ui。
Swaggered UI が配列を送信します。配列の代わりにカンマ区切りの文字列を渡します。正しいパラメーターを渡すにはどうすればよいですか? Joi の検証タイプを変更する必要がありますか? 私は使っている:
query: Joi.object({ categories : Joi.array().items(Joi.string()).label('Categories') })
クエリは次のとおりです。?categories=firstCategory%2CsecondCategory
実行するクエリ:?categories=firstCategory&categories=secondCategory