swagger-api icon indicating copy to clipboard operation
swagger-api copied to clipboard

openapi for kratos

Results 8 swagger-api issues
Sort by recently updated
recently updated
newest added

third_party目录中增加protoc-gen-gorm/proto/options/gorm.proto,用于proto打gorm标记,protoc生成没有问题,但是在访问swagger的时候,服务端就报错,“metadata/server.go:174: protoc-gen-gorm/proto/options/gorm.proto not found" 尝试把protoc-gen-gorm/proto/options/gorm.proto放入api下层,并用kratos client 生成gorm的pb,不能解决

比如说 接口resp需要 {code:11,msg:"bb",body:{resp}} code和msg如何重写?

比如日期校验、时间校验?

readme中说要复制的文件[openapiv2.proto](https://github.com/go-kratos/kratos/blob/main/third_party/protoc-gen-openapiv2/options/openapiv2.proto)无法找到

The browser enters the URL of "/q/services" to display service information and methods information, but enters "/q/swagger-ui" to display failed to load API definition. ![image](https://user-images.githubusercontent.com/71703929/147177197-9a8fbb76-3a6b-4d5c-891c-8c2f9d2bc50a.png) ![image](https://user-images.githubusercontent.com/71703929/147177274-a26b68c9-0f34-4e29-a77d-145dd1750d6f.png)