Skip to content

Conversation

@matiasperrone-exo
Copy link
Contributor

@matiasperrone-exo matiasperrone-exo commented Oct 24, 2025

Task:

Ref: https://app.clickup.com/t/86b6wkhce

Dependencies:

#436 #450

@matiasperrone-exo matiasperrone-exo added the documentation Improvements or additions to documentation label Oct 24, 2025
@matiasperrone-exo matiasperrone-exo self-assigned this Oct 24, 2025
@matiasperrone-exo matiasperrone-exo added the review Need reviewing from the developer label Nov 10, 2025
@matiasperrone-exo matiasperrone-exo removed the review Need reviewing from the developer label Nov 24, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch from 08fb819 to acaa457 Compare December 5, 2025 19:27
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

In app/Swagger/SummitRegistrationSchemas.php
items: new OA\Items(type: 'SummitAttendeeTicket')
Is an invalid type.

In app/Http/Controllers/Apis/Protected/Summit/OAuth2SummitTicketApiController.php
tags: ['tickets'],
Should be title cased
tags: ['Tickets'],

@matiasperrone-exo
Copy link
Contributor Author

Thanks @caseylocker for the comments. Now is ready to review again

Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

This was not addressed:
"In app/Swagger/SummitRegistrationSchemas.php
items: new OA\Items(type: 'SummitAttendeeTicket')
Is an invalid type."

@smarcet smarcet force-pushed the main branch 4 times, most recently from c6ecdd0 to 728ae67 Compare December 17, 2025 00:43
@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch from f41ca9b to 01db7d5 Compare December 18, 2025 20:32
@matiasperrone-exo
Copy link
Contributor Author

Thanks @caseylocker for the comments. Now is ready to review again

Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

SummitRegistrationSchemas.php line 70 Schema reference error:

items: new OA\Items(type: 'SummitAttendeeTicket') // WRONG

Should be:

items: new OA\Items(ref: '#/components/schemas/SummitAttendeeTicket') // CORRECT

OAuth2SummitTicketApiController.php line 1125 Invalid schema syntax

// Current (incorrect):
content: new OA\JsonContent(schema: 'SummitAttendeeBadge')
// Should be:
content: new OA\JsonContent(ref: '#/components/schemas/SummitAttendeeBadge')

OA\JsonContent doesn't have a schema parameter for referencing other schemas. Use ref instead.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch from 01db7d5 to 1c786ab Compare December 29, 2025 21:15
@matiasperrone-exo
Copy link
Contributor Author

Thanks @caseylocker for the comments. Now is ready to review again.

Copy link
Collaborator

@romanetar romanetar left a comment

Choose a reason for hiding this comment

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

@matiasperrone-exo two checks are failing, please review

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch 2 times, most recently from 74b0a50 to 7a734db Compare January 28, 2026 15:34
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

I'm seeing usage of 'numeric' for type in several places. 'numeric' is a Laravel validation rule, not a valid OpenAPI type. Please use a valid OpenAPI type like 'integer' or 'number' for floating point values like 'final_amount'.

@matiasperrone-exo
Copy link
Contributor Author

Thanks @caseylocker for the comments. Now is ready to review again

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch from 9c7424f to 8208cd5 Compare January 28, 2026 21:00
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

'float' isn't a type, it's a format. If this is a floating point number then the syntax should be:

new OA\Property(property: 'raw_cost', type: 'number', format: 'float'),

Please address the other instances of 'float' as well.
Properties to fix (lines 25, 26, 28, 30, 31, 33, 35, 39):
- raw_cost
- net_selling_cost
- final_amount
- discount
- discount_rate
- refunded_amount
- total_refunded_amount
- taxes_amount

@matiasperrone-exo matiasperrone-exo changed the title feat: Extend Swagger Coverage for controller OAuth2SummitTicketApiController Feature | Extend Swagger Coverage for controller OAuth2SummitTicketApiController Jan 29, 2026
@matiasperrone-exo
Copy link
Contributor Author

@caseylocker all the requested changes were introduced, you may review it again.

  • type: 'float' was changed to type: 'number', format: 'float'

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch 2 times, most recently from 6395cd5 to 9ede57c Compare January 29, 2026 20:14
Copy link

@caseylocker caseylocker left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@romanetar romanetar left a comment

Choose a reason for hiding this comment

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

@matiasperrone-exo please review

#[OA\Get(
path: '/api/v1/summits/{id}/tickets/csv',
operationId: 'getAllTicketsCSV',
summary: 'Get all tickets for a summit',
Copy link
Collaborator

Choose a reason for hiding this comment

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

@matiasperrone-exo summary and description must reflect an export, not a list

Copy link
Contributor

Choose a reason for hiding this comment

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

good catch @romanetar

Copy link
Contributor

Choose a reason for hiding this comment

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

@romanetar thank you. The description was changed and it was ready along with a new rebase

@andrestejerina97 andrestejerina97 force-pushed the feature/openapi-documentation--oauth2summitticketapicontroller branch from 9ede57c to e8a8e1b Compare January 30, 2026 19:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants