ServiceStack + Swagger-UI如何显示属性是必需的还是可选的?

时间:2014-08-10 20:19:00

标签: servicestack swagger swagger-ui

如何将模型上的可选/必需信息显示为黄色突出显示?

enter image description here

1 个答案:

答案 0 :(得分:-2)

"definitions":{
"RequestLogs":{
**"required":["BeforeSecs","AfterSecs"]**
"properties":{
"BeforeSecs":{
"type":"integer"
},
"AfterSecs":{
"type":"integer"
},
"IpAddress":{
"type""string"
}
}

}
}