Swagger 2.0에서 model 유형의 정의 속성을 선언하려고합니다.Swagger 2.0 : 모델 유형의 정의 속성을 선언하는 방법은 무엇입니까?
이 정의가 맞습니까? (특별히 유형 : StatusObject 부분)
definitions:
MyObject:
type: "object"
properties:
id:
type: "number"
country:
type: "string"
status:
type: StatusObject
StatusObject:
type: "object"
properties:
code:
type: "number"
shortMessage:
type: "string"
message:
type: "string"
고마워!
고마워요! 잘 작동합니다! – JAM