Files
box-manifest-android/api/tree-import.schema.json
T

38 lines
855 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://box-manifest.local/schemas/tree-import.schema.json",
"title": "Box Manifest tree import manifest",
"type": "object",
"additionalProperties": false,
"required": ["nodes"],
"properties": {
"nodes": {
"type": "array",
"minItems": 1,
"maxItems": 10000,
"items": { "$ref": "#/$defs/node" }
}
},
"$defs": {
"node": {
"type": "object",
"additionalProperties": false,
"required": ["name"],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"quantity": {
"type": ["integer", "null"],
"minimum": 0
},
"children": {
"type": "array",
"items": { "$ref": "#/$defs/node" }
}
}
}
}
}