markitosgv/JWTRefreshTokenBundle

OpenApi platform docs Response missing

aarsla opened this issue · 1 comments

OpenApi docs for LexikJWTAuthenticationBundle's "Login Check" response schema is missing "refresh_token" attribute.

Screenshot 2024-01-10 at 03 53 12

How can I (decorate OpenApiFactory?) include it in docs response/example value and match the actual response body?

Screenshot 2024-01-10 at 03 56 40

Decorate the lexik_jwt_authentication.api_platform.openapi.factory service provided by the LexikJWTAuthenticationBundle to add it, or disable that bundle's API Platform integration and add the info you need with a service in your own app.

I don't actually use API Platform so no idea what is the best solution, but there is no hook point in the Lexik bundle's factory class to extend the login endpoint's response schema. It also seems like you'd need something in your app documenting the refresh endpoint since this bundle doesn't provide an integration for that, either.