Skip to content

Vtc events attending response array of items#19

Open
Jelmerovereem wants to merge 1 commit intoTruckersMP:mainfrom
Jelmerovereem:vtc-events-attending-response-array
Open

Vtc events attending response array of items#19
Jelmerovereem wants to merge 1 commit intoTruckersMP:mainfrom
Jelmerovereem:vtc-events-attending-response-array

Conversation

@Jelmerovereem
Copy link

@Jelmerovereem Jelmerovereem commented Oct 27, 2025

The endpoint returns an array of events in reality, but the docs say it's just 1 event object. This PR fixes that the response in the docs is indeed an array of events.

Before After
Screenshot_2025-10-27_17-14-26 Screenshot_2025-10-27_17-14-59

Proof that endpoint returns an array:
Screenshot_2025-10-27_17-16-23

$ref: '#/components/schemas/Event'
type: array
items:
$ref: '#/components/schemas/Event'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$ref: '#/components/schemas/Event'
$ref: '#/components/schemas/EventIndex'

The original PR used the wrong schema reference, this endpoint does not provide a list of attending users/VTCs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants