Feat(swagger): Added examples
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -424,17 +424,22 @@ const docTemplate = `{
|
||||
"ktmtrainbot.BookingCreateRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"contact",
|
||||
"gender",
|
||||
"name",
|
||||
"passport",
|
||||
"passportExpiry",
|
||||
"timeCode",
|
||||
"travelDate"
|
||||
],
|
||||
"properties": {
|
||||
"contact": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"example": "+6512345678"
|
||||
},
|
||||
"gender": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"example": "M"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
@@ -443,13 +448,16 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"passportExpiry": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"timeCode": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"example": "1300"
|
||||
},
|
||||
"travelDate": {
|
||||
"type": "string"
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user