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

Failed to load API definition #95

Closed
51zhaoshi opened this issue Oct 7, 2019 · 3 comments
Closed

Failed to load API definition #95

51zhaoshi opened this issue Oct 7, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@51zhaoshi
Copy link

新版swagger不能正常使用,报错 Failed to load API definition,Internal Server Error /swagger/v1/swagger.json。
1.跟踪调试控制台报错System.NotSupportedException: Ambiguous HTTP method for action - WalkingTec.Mvvm.Admin.Api._ActionLogController.RedoValidation (WalkingTec.Mvvm.Mvc.Admin). Actions require an explicit HttpMethod binding for Swagger 2.0
at Swashbuckle.AspNetCore.SwaggerGen.SwaggerGenerator.CreatePathItem(IEnumerable`1 apiDescriptions, ISchemaRegistry schemaRegistry);
2.查看源代码,应该是BaseApiController中,RedoValidation的问题。

@liuliang-wt
Copy link
Collaborator

@51zhaoshi 是的,已经修改了,近期发布

@51zhaoshi
Copy link
Author

感觉作者的开源,希望WTM越来越好。

@alienwow
Copy link
Collaborator

v2.3.8

@liuliang-wt liuliang-wt added the bug Something isn't working label Dec 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants