Git Product home page Git Product logo

laravel-g4t-swagger-auto-generate's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-g4t-swagger-auto-generate's Issues

Map Enums in Request as select dropdown in swagger documentation

This is the Enum JourneyType:

['nullable', 'string', new Enum(JourneyType::class)], now i want to have these enums as select dropdown in swagger if it is possible? because it simplify the documentation process. Thank you in advance. Happy Coding !!!!!!!.

419 response when uploaded in server

Hello,
first of all, thank you for making this amazing project, I want to ask about the problems I'm experiencing,
when it was up on the server, and tried the route to post, the response I got was 419

when i check in the response, it return CSRF token mismatch.

but previously it ran smoothly when I tried it in the local environment

Are there any additional settings that i miss?
Just for information, I use Laravel 10

Thank You

Failed to open stream: No such file or directory & Trait "G4T\Swagger\Helpers" not found

i am using laravel sail when i try to install the package i got the following errors

require(/var/www/html/vendor/g4t/swagger/src/routes/web.php): Failed to open stream: No such file or directory

image

solution

looks like a case sensitive issue when i rename a folder src/Routes to src/routes and run command sail composer dump-autoload package get installed

After then i got another issue

When i navigate to route swagger/documentation i got following error

Trait "G4T\Swagger\Helpers" not found

Invokable API Controller and routes

Describe the bug
When you use invokable routes and controllers, you get the following error:

Undefined array key 1 {"exception":"[object] (ErrorException(code: 0): Undefined array key 1 at /var/www/html/vendor/g4t/swagger/src/Helpers.php:55)

To Reproduce

  1. Create an API controller, for example UserController, with an __invoke() method.
  2. Add the route to the routes/api.php file. No method name is needed as Laravel will default to using the __invoke() method in the Controller.
Route::get('/users', UserController::class)
     ->name('users');
  1. Visit /swagger/documentation and see the above error.

Expected behavior
It would be great to allow invokable controllers and routes if possible. It errors as there is no @ in the $controllerMethod for invokable routes.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.