{
'description': 'TPNode',
'type': 'object',
'id': 'tp_node',
'properties': {
'selector': {
'type': 'string',
'required': true
},
'attributes': {
'type': 'array',
'items': {
'name': 'string',
'value': 'string'
}
},
'children': {
'type': 'array',
'items': {
'type': 'object',
'$ref': '#'
}
},
'events': {
'type': 'array',
'items': {
'type': 'object',
'properties': {
'type': {
'type': 'string'
},
'handler': {
'type': 'object'
},
'dependencies': {
'type': 'array',
'items': {
'type': 'string'
}
}
}
}
}
}
}
내가 아이들 속성에 표현하기 위해 노력하고있어이 같은 정확한 스키마 객체의 배열 있다고하는 JSON 스키마가 있습니다. 이것을 설명하는 올바른 방법일까요?
? ''required ''는 v4의 배열입니다. – cloudfeet
정확합니다. 그러나, 나는 JSON.NET을 통해 스키마를 검증하고 있는데, 이는 내가 알아 냈던 것처럼 v4 구문을 지원하지 않는다. – William