'MyObj': {
'type': 'object',
'properties': {
'width': {
'type': 'integer',
'minimum': 1
},
'height': {
'type': 'integer',
'minimum': 1
},
'sheetWidth': {
'type': 'integer',
'minimum': 1,
},
'sheetHeight': {
'type': 'integer',
'minimum': 1,
}
},
'required': [
'width',
'height'
]
}
'높이'보다 'sheetWidth'이상을 확인할 수 있습니까?jschema에서 하나 이상의 속성을 확인하는 방법은 무엇입니까?
사용자 지정 유효성 검사를 사용해야하는 것 같지만 잘 모르겠습니다. json-schema로 확인하는 것이 좋습니다.
도움을 주셔서 감사합니다.
감사합니다,하지만 난 JSON 스키마를 사용
당신은 구두 속성 설명이 문서 수 – nightmare