swagger-api
swagger-api copied to clipboard
openapi for kratos
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.  