I am creating an api using hapi framework and need to take in time as one of the data types in the payload that I receive. I have defined the validation as
payload: {
startTime: Joi.date().timestamp().required(),
endTime: Joi.date().timestamp().required()
}
But when I bring up the swagger documentation page for this validation I see the inputs to be received a below
{
"startTime": 0,
"endTime": 0
}
I was expecting a more user-friendly approach where it would display the timestamp format in swagger like below.
{
"startTime": HH:MM:SS,
"endTime": HH:MM:SS
}
How do I make this possible?