hyperf / swagger Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
root@cd6db4504bc0:/var/www/skeleton# php bin/hyperf.php swagger:gen
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Config\Listener\RegisterPropertyHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\Paginator\Listener\PageResolverListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\ExceptionHandler\Listener\ExceptionHandlerListener listener.
[DEBUG] Event Hyperf\Framework\Event\BootApplication handled by Hyperf\DbConnection\Listener\RegisterConnectionResolverListener listener.
PHP Fatal error: Uncaught ErrorException: Invalid argument supplied for foreach() in /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php:30
Stack trace:
#0 /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php(30): Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler->Hyperf\ExceptionHandler\Listener\{closure}(2, 'Invalid argumen...', '/var/www/skelet...', 30, Array)
#1 /var/www/skeleton/vendor/zircote/swagger-php/src/Analysis.php(466): Hyperf\Swagger\Command\GenCommand->Hyperf\Swagger\Command\{closure}(Object(OpenApi\Analysis))
#2 /var/www/skeleton/vendor/zircote/swagger-php/src/functions.php(57): OpenApi\Analysis->process(Array)
#3 /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php(45): OpenApi\scan('app/')
#4 /var/www/skeleton/vendor/hyperf/utils/src/Functions.php(275): Hyperf\Swagger\Command\GenCommand->handle()
#5 /var/www/skeleton/vendor/hyperf/command/src/Command.php(436): call(Array)
#6 {main}
thrown in /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php on line 30
Fatal error: Uncaught ErrorException: Invalid argument supplied for foreach() in /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php:30
Stack trace:
#0 /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php(30): Hyperf\ExceptionHandler\Listener\ErrorExceptionHandler->Hyperf\ExceptionHandler\Listener\{closure}(2, 'Invalid argumen...', '/var/www/skelet...', 30, Array)
#1 /var/www/skeleton/vendor/zircote/swagger-php/src/Analysis.php(466): Hyperf\Swagger\Command\GenCommand->Hyperf\Swagger\Command\{closure}(Object(OpenApi\Analysis))
#2 /var/www/skeleton/vendor/zircote/swagger-php/src/functions.php(57): OpenApi\Analysis->process(Array)
#3 /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php(45): OpenApi\scan('app/')
#4 /var/www/skeleton/vendor/hyperf/utils/src/Functions.php(275): Hyperf\Swagger\Command\GenCommand->handle()
#5 /var/www/skeleton/vendor/hyperf/command/src/Command.php(436): call(Array)
#6 {main}
thrown in /var/www/skeleton/vendor/hyperf/swagger/src/Command/GenCommand.php on line 30
没说明不知道怎么使用呀
这个没有个文档吗?怎么使用swagger
zircote/swagger-php ^3.0,php8.2下警告太多
因为开发写接口文档要用到
如题:请问这个有使用的文档么?谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.