Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

通过注解做验证器 #3

Open
krissss opened this issue Apr 25, 2024 · 0 comments
Open

通过注解做验证器 #3

krissss opened this issue Apr 25, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@krissss
Copy link
Member

krissss commented Apr 25, 2024

https://packagist.org/packages/league/openapi-psr7-validator
可以通过 openapi 完整的定义去验证,但是 psr7 目前非 webman 原生支持,又依赖额外的 openapi 解析器,有些重

https://github.com/swaggest/php-json-schema
swagger 的 schema 实际就是 json-schema 的规范,因此使用 json-schema 去验证应该也可行

@krissss krissss added the enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant