You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since this models an array with three Joi objects that are each required, I would expect the Response Model schema in the docs to look something like
[
{
"prop1": "apple",
"prop2": "banana",
"prop3": "Each response object will vary depending on the requests submitted"
},
{
"prop1": 0
},
"userId": "userId"
]
But that's not the case. What shows up in the docs instead is
[
"string"
]
Am I missing something here? I can get one object to appear in the Response Model array if I remove the required() from the array item models, but still cannot figure out how to display an array containing multiple Joi objects in the Response Schema. Is there a way to do this?
I am using the most current versions of hapi-swaggered (2.6.0), hapi-swaggered-ui (2.3.1), and joi (8.0.5)
Thank you very much!!
The text was updated successfully, but these errors were encountered:
First of all thank you for this module! I am really liking it so far but have run into one issue. I have the following schema
and am including it as my response using the plugin way with schema:
Since this models an array with three Joi objects that are each required, I would expect the Response Model schema in the docs to look something like
But that's not the case. What shows up in the docs instead is
Am I missing something here? I can get one object to appear in the Response Model array if I remove the
required()
from the array item models, but still cannot figure out how to display an array containing multiple Joi objects in the Response Schema. Is there a way to do this?I am using the most current versions of hapi-swaggered (2.6.0), hapi-swaggered-ui (2.3.1), and joi (8.0.5)
Thank you very much!!
The text was updated successfully, but these errors were encountered: