Directly edit the swagger document in json mode. How to write the comment that returns json?
Solve it yourself:
"definitions": {
"ownerNumer": {
"type": "object",
"properties": {
"status": {
"type": "integer",
"format": "int64",
"description": "狀態(tài):0正常1異常"
},
"number": {
"type": "integer",
"format": "int64",
"description": "用戶數(shù)量"
}
}
}
},
Recommend you a website https://app.stoplight.io/ You can edit the swagger file directly on this website