Skip to content

Commit

Permalink
docs: update to latest swagger config
Browse files Browse the repository at this point in the history
  • Loading branch information
peterxcli committed Jan 28, 2024
1 parent 0c3e211 commit 4b5f2af
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
9 changes: 6 additions & 3 deletions docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,13 +596,16 @@ const docTemplate = `{
"type": "object",
"properties": {
"event_detail": {
"type": "string"
"type": "string",
"example": "{\"title\":\"test event\",\"description\":\"test event description\"}"
},
"event_time_end": {
"type": "string"
"type": "string",
"example": "2021/01/01 00:00"
},
"event_time_start": {
"type": "string"
"type": "string",
"example": "2021/01/01 00:00"
},
"id": {
"type": "string"
Expand Down
9 changes: 6 additions & 3 deletions docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,16 @@
"type": "object",
"properties": {
"event_detail": {
"type": "string"
"type": "string",
"example": "{\"title\":\"test event\",\"description\":\"test event description\"}"
},
"event_time_end": {
"type": "string"
"type": "string",
"example": "2021/01/01 00:00"
},
"event_time_start": {
"type": "string"
"type": "string",
"example": "2021/01/01 00:00"
},
"id": {
"type": "string"
Expand Down
3 changes: 3 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ definitions:
bikefest_pkg_model.CreateEventRequest:
properties:
event_detail:
example: '{"title":"test event","description":"test event description"}'
type: string
event_time_end:
example: 2021/01/01 00:00
type: string
event_time_start:
example: 2021/01/01 00:00
type: string
id:
type: string
Expand Down

0 comments on commit 4b5f2af

Please sign in to comment.