laravel-json-api / laravel

JSON:API for Laravel applications
MIT License
523 stars 43 forks source link

How to include request classes so that other libraries can inspect them? #249

Open aruku opened 1 year ago

aruku commented 1 year ago

I've been trying to use a library like https://github.com/RonasIT/laravel-swagger, but it has not been possible because it needs the request class in the controller to inspect it in order to generate the documentation.

Is currently there a way to do this? Could it be implemented somehow?

For reference, here is the thread I opened in that repo: https://github.com/RonasIT/laravel-swagger/issues/86

lindyhopchris commented 1 year ago

Unfortunately I'm having to remove the request classes, because to implement Atomic Operations we need to decouple the implementation from Laravel's form requests. That is explained in #238

So we'll need to implement our own documentation generation, which is something that can be looked at after the v4 implementation.