Feat(booking): Added backtosg field
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good

This commit is contained in:
2022-09-27 04:36:41 +08:00
parent 252dfbffd6
commit 51b539fe7a
7 changed files with 42 additions and 3 deletions

View File

@@ -433,6 +433,10 @@ const docTemplate = `{
"travelDate"
],
"properties": {
"backToSg": {
"type": "boolean",
"example": false
},
"contact": {
"type": "string",
"example": "+6512345678"
@@ -463,7 +467,13 @@ const docTemplate = `{
},
"ktmtrainbot.BookingResponse": {
"type": "object",
"required": [
"backToSg"
],
"properties": {
"backToSg": {
"type": "boolean"
},
"contact": {
"type": "string"
},

View File

@@ -425,6 +425,10 @@
"travelDate"
],
"properties": {
"backToSg": {
"type": "boolean",
"example": false
},
"contact": {
"type": "string",
"example": "+6512345678"
@@ -455,7 +459,13 @@
},
"ktmtrainbot.BookingResponse": {
"type": "object",
"required": [
"backToSg"
],
"properties": {
"backToSg": {
"type": "boolean"
},
"contact": {
"type": "string"
},

View File

@@ -23,6 +23,9 @@ definitions:
type: object
ktmtrainbot.BookingCreateRequest:
properties:
backToSg:
example: false
type: boolean
contact:
example: "+6512345678"
type: string
@@ -53,6 +56,8 @@ definitions:
type: object
ktmtrainbot.BookingResponse:
properties:
backToSg:
type: boolean
contact:
type: string
gender:
@@ -71,6 +76,8 @@ definitions:
type: string
travelDate:
type: string
required:
- backToSg
type: object
ktmtrainbot.ServerTimeResponse:
properties: