1 Star 1 Fork 0

fast_api/api

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
requestBody.go 474 Bytes
Copy Edit Raw Blame History
t.io authored 2024-03-07 09:10 +08:00 . swagger: oas 3.0
package swagger
type RequestBodyObject struct {
Description string `json:"description,omitempty"`
Content map[string]any `json:"content,omitempty"`
Required bool `json:"required,omitempty"`
}
func JsonRefRequestBody(ref string, typ string) *RequestBodyObject {
return &RequestBodyObject{
Content: map[string]any{
"application/json": map[string]any{
"schema": map[string]any{
"type": typ,
"$ref": ref,
},
},
},
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/fast_api/api.git
git@gitee.com:fast_api/api.git
fast_api
api
api
v0.1.0

Search