Skip to content

Commit

Permalink
add openapi annotation and regenerate doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jbraswell committed Nov 9, 2024
1 parent 6e19616 commit 753362c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/Http/Controllers/Admin/Swagger/MeetingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@
* @OA\Property(property="bus_lines", type="string", example="string"),
* @OA\Property(property="train_lines", type="string", example="string"),
* @OA\Property(property="comments", type="string", example="string"),
* @OA\Property(property="customFields", type="object", example={"key1": "value1", "key2": "value2"},
* @OA\AdditionalProperties(type="string")
* ),
* ),
* @OA\Schema(schema="Meeting", required={"id", "serviceBodyId", "formatIds", "venueType", "temporarilyVirtual", "day", "startTime", "duration", "timeZone", "latitude", "longitude", "published", "email", "worldId", "name"},
* @OA\Property(property="id", type="integer", example="0"),
Expand Down
10 changes: 10 additions & 0 deletions src/storage/api-docs/api-docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2478,6 +2478,16 @@
"comments": {
"type": "string",
"example": "string"
},
"customFields": {
"type": "object",
"example": {
"key1": "value1",
"key2": "value2"
},
"additionalProperties": {
"type": "string"
}
}
},
"type": "object"
Expand Down

0 comments on commit 753362c

Please sign in to comment.