|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace App\Swagger\schemas; |
| 4 | + |
| 5 | +use OpenApi\Attributes as OA; |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | +#[OA\Schema( |
| 10 | + schema: 'Member', |
| 11 | + type: 'object', |
| 12 | + properties: [ |
| 13 | + new OA\Property(property: 'id', type: 'integer', example: 1), |
| 14 | + new OA\Property(property: 'created', type: 'integer', example: 1630500518), |
| 15 | + new OA\Property(property: 'last_edited', type: 'integer', example: 1630500518), |
| 16 | + new OA\Property(property: 'first_name', type: 'string', example: 'John'), |
| 17 | + new OA\Property(property: 'last_name', type: 'string', example: 'Doe'), |
| 18 | + new OA\Property(property: 'bio', type: 'string'), |
| 19 | + new OA\Property(property: 'gender', type: 'string'), |
| 20 | + new OA\Property(property: 'github_user', type: 'string'), |
| 21 | + new OA\Property(property: 'linked_in', type: 'string'), |
| 22 | + new OA\Property(property: 'irc', type: 'string'), |
| 23 | + new OA\Property(property: 'twitter', type: 'string'), |
| 24 | + new OA\Property(property: 'state', type: 'string'), |
| 25 | + new OA\Property(property: 'country', type: 'string'), |
| 26 | + new OA\Property(property: 'active', type: 'boolean', example: true), |
| 27 | + new OA\Property(property: 'email_verified', type: 'boolean', example: true), |
| 28 | + new OA\Property(property: 'pic', type: 'string'), |
| 29 | + new OA\Property(property: 'membership_type', type: 'string', example: 'Foundation'), |
| 30 | + new OA\Property(property: 'candidate_profile_id', type: 'integer', example: 1465), |
| 31 | + new OA\Property(property: 'company', type: 'string'), |
| 32 | + new OA\Property(property: 'speaker_id', type: 'integer', example: 187), |
| 33 | + new OA\Property(property: 'attendee_id', type: 'integer', example: 1287), |
| 34 | + new OA\Property(property: 'groups_events', type: 'array', items: new OA\Items(type: 'object'), description: 'GroupEvent object, only available if ?expand=groups_events is provided'), |
| 35 | + new OA\Property(property: 'groups', type: 'array', items: new OA\Items(type: 'integer')), |
| 36 | + new OA\Property(property: 'affiliations', type: 'array', items: new OA\Items(ref: '#/components/schemas/Organization'), description: 'Organization object, only available if ?expand=affiliations is provided'), |
| 37 | + new OA\Property(property: 'all_affiliations', type: 'array', items: new OA\Items(ref: '#/components/schemas/Affiliation'), description: 'Affiliation object, only available if ?expand=all_affiliations is provided'), |
| 38 | + new OA\Property(property: 'ccla_teams', type: 'array', items: new OA\Items(type: 'object'), description: 'CCLA Team object, only available if ?expand=ccla_teams is provided'), |
| 39 | + new OA\Property(property: 'election_applications', type: 'array', items: new OA\Items(type: 'object'), description: 'Nomination object, only available if ?expand=election_applications is provided'), |
| 40 | + new OA\Property(property: 'election_nominations', type: 'array', items: new OA\Items(type: 'object'), description: 'Nomination object, only available if ?expand=election_nominations is provided'), |
| 41 | + new OA\Property(property: 'candidate_profile', type: 'array', items: new OA\Items(type: 'object'), description: 'Candidate object, only available if ?expand=candidate_profile is provided'), |
| 42 | + new OA\Property(property: 'team_memberships', type: 'array', items: new OA\Items(type: 'object'), description: 'ChatTeamMember object, only available if ?expand=team_memberships is provided'), |
| 43 | + new OA\Property(property: 'sponsor_memberships', type: 'array', items: new OA\Items(type: 'object'), description: 'Sponsor object, only available if ?expand=sponsor_memberships is provided'), |
| 44 | + new OA\Property(property: 'favorite_summit_events', type: 'array', items: new OA\Items(type: 'integer')), |
| 45 | + new OA\Property(property: 'schedule_summit_events', type: 'array', items: new OA\Items(type: 'integer')), |
| 46 | + new OA\Property(property: 'summit_tickets', type: 'array', items: new OA\Items(type: 'object'), description: 'SummitAttendeeTicket object, only available if ?expand=sponsor_memberships is provided'), |
| 47 | + new OA\Property(property: 'schedule_shareable_link', type: 'array', items: new OA\Items(type: 'object'), description: 'PersonalCalendarShareInfo object, only available if ?expand=schedule_shareable_link is provided'), |
| 48 | + new OA\Property(property: 'legal_agreements', type: 'array', items: new OA\Items(type: 'integer')), |
| 49 | + new OA\Property(property: 'track_chairs', type: 'array', items: new OA\Items(type: 'integer')), |
| 50 | + new OA\Property(property: 'summit_permission_groups', type: 'array', items: new OA\Items(type: 'integer')), |
| 51 | + new OA\Property(property: 'speaker', type: 'array', items: new OA\Items(type: 'object'), description: 'PresentationSpeaker object, only available if ?expand=speaker is provided'), |
| 52 | + new OA\Property(property: 'attendee', type: 'array', items: new OA\Items(ref: '#/components/schemas/SummitAttendee'), description: 'only available if ?expand=attendee is provided'), |
| 53 | + new OA\Property(property: 'feedback', type: 'array', items: new OA\Items(type: 'object'), description: 'SummitEventFeedback object, only available if ?expand=feedback is provided'), |
| 54 | + new OA\Property(property: 'rsvp', type: 'array', items: new OA\Items(ref: '#/components/schemas/RSVP'), description: 'only available if ?expand=rsvp is provided'), |
| 55 | + new OA\Property(property: 'rsvp_invitations', type: 'array', items: new OA\Items(ref: '#/components/schemas/RSVPInvitation'), description: 'only available if ?expand=rsvp_invitations is provided'), |
| 56 | + new OA\Property(property: 'email', type: 'string', example: 'user@example.com'), |
| 57 | + new OA\Property(property: 'second_email', type: 'string', example: 'user@example.com'), |
| 58 | + new OA\Property(property: 'third_email', type: 'string', example: 'user@example.com'), |
| 59 | + new OA\Property(property: 'user_external_id', type: 'integer'), |
| 60 | + ] |
| 61 | +)] |
| 62 | +class MemberSchema {} |
0 commit comments