Skip to content

Commit

Permalink
Lots of fixes to OpenAPI definitions.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwh committed Mar 1, 2023
1 parent 49e3c4b commit efd8a8b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions app/Http/Resources/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
* property="next_event",
* title="next_event",
* description="Next event for this group",
* ref="#/components/schemas/Event"
* ref="#/components/schemas/EventSummary"
* ),
* @OA\Property(
* property="timezone",
Expand Down Expand Up @@ -291,7 +291,8 @@ public function toArray($request)
'start' => $nextevent->event_start_utc,
'end' => $nextevent->event_end_utc,
'timezone' => $nextevent->timezone,
'title' => $nextevent->venue ?? $nextevent->location
'title' => $nextevent->venue ?? $nextevent->location,
'summary' => true
];
}

Expand Down
3 changes: 2 additions & 1 deletion app/Http/Resources/GroupSummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ public function toArray($request)
'online' => $nextevent->online,
'lat' => $nextevent->latitude,
'lng' => $nextevent->longitude,
'updated_at' => $nextevent->updated_at->toIso8601String()
'updated_at' => $nextevent->updated_at->toIso8601String(),
'summary' => true
];
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Resources/PartySummary.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@
* title="title",
* description="Title of the event",
* format="string",
* example="Europe/London"
* example="Repair Cafe"
* ),
* @OA\Property(
* property="location",
* title="location",
* description="Human-readable address of the event",
* format="string",
* example="Europe/London"
* example="Village Hall, Main Street, Anytown, UK"
* ),
* @OA\Property(
* property="online",
Expand Down

0 comments on commit efd8a8b

Please sign in to comment.