Skip to content

Conversation

@matiasperrone-exo
Copy link
Contributor

@matiasperrone-exo matiasperrone-exo self-assigned this Oct 14, 2025
@matiasperrone-exo matiasperrone-exo added the documentation Improvements or additions to documentation label Oct 14, 2025
@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitregistrationinvitationapicontroller branch from 26e0a49 to 460b0d9 Compare October 14, 2025 22:04
@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--oauth2summitregistrationinvitationapicontroller branch from 5cd98f1 to 21e91d7 Compare November 26, 2025 21:58
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.

Wrong Namespace in Security Schema
File: app/Swagger/Security/SummitRegistrationInvitationAuthSchema.php
namespace App\Swagger\Security; // WRONG
Should be:
namespace App\Swagger\schemas; // CORRECT

Protected endpoints use 'authz_groups' instead of the standard 'required-groups':
x: [
'authz_groups' => [ // Wrong key name
IGroup::SuperAdmins,
...
]
],
Should be:
x: [
'required-groups' => [ // Correct key name
IGroup::SuperAdmins,
...
]
],

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitregistrationinvitationapicontroller branch from 21e91d7 to 4ef615f Compare December 3, 2025 20:29
@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.

@matiasperrone this is looking good and is very close.
Since this is using OpenAPI 3.0 the "tags" property in SummitRegistrationSchemas.php is invalid.

// Invalid - only valid for OpenAPI 3.1
new OA\Property(property: "tags", type: "array", items: new OA\Items(type: ["integer", "string"]), ...)

Either simplify for integers only:

new OA\Property(
    property: "tags",
    type: "array",
    items: new OA\Items(type: "integer"),
    description: "Array of Tag IDs. Full Tag objects when ?expand=tags",
    nullable: true
)

Or use oneOf

new OA\Property(
    property: "tags",
    type: "array",
    items: new OA\Items(
        oneOf: [
            new OA\Schema(type: "integer"),
            new OA\Schema(type: "string")
        ]
    ),
    description: "Array of Tag IDs or names when expanded",
    nullable: true
)

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitregistrationinvitationapicontroller branch from 0f67d32 to 8957230 Compare December 5, 2025 15:03
@matiasperrone-exo
Copy link
Contributor Author

Moved to OpenAPI 3.1. please approve PR.

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.

Please be consistent with http response codes. I haven't been calling all of these out but I'm going to be doing that again.

ALL responses should use the response constants rather than the raw numbers.
"response: 200" should be "Response::HTTP_OK"
"response: 204" should be "Response::HTTP_NO_CONTENT"
"response: 201" should be "Response::HTTP_CREATED"

There are about 13 occurrences here that need to be updated.

@matiasperrone-exo matiasperrone-exo force-pushed the feature/openapi-documentation--oauth2summitregistrationinvitationapicontroller branch from 0567160 to 16057ec Compare December 11, 2025 22:01
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.

Approved too soon. @matiasperrone-exo This is failing on documentation generation.

Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

LGTM

@smarcet smarcet force-pushed the main branch 4 times, most recently from c6ecdd0 to 728ae67 Compare December 17, 2025 00:43
Copy link
Collaborator

@smarcet smarcet left a comment

Choose a reason for hiding this comment

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

LGTM

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.

5 participants