81 lines
1.7 KiB
JSON
Raw Normal View History

{
"definitions": {
"categoryEnum": {
"title": "Category",
"type": "string",
"anyOf": [
"options_from_task_data_var:category_enum_list"
]
}
},
"title": "test",
"description": "",
"properties": {
"start_date": {
"type": "string",
"title": "start date",
"format": "date",
"minimumDate": "today"
},
"category": {
"title": "the NOT date",
"$ref": "#/definitions/categoryEnum",
"default": "travel"
},
"end_date": {
"type": "string",
"title": "end date",
"format": "date",
"minimumDate": "field:start_date,field:event_date"
},
"event_date": {
"type": "string",
"title": "event date",
"format": "date",
"minimumDate": "field:start_date"
}
},
"required": [],
"dependencies": {
"category": {
"oneOf": [
{
"properties": {
"category": {
"enum": [
"travel"
]
},
"sub_category": {
"enum":[
"Accomocations",
"Flights",
"Transportation",
"Tickets",
"Visas",
"Other"
],
"title": "Sub Category"
}
}
},
{
"properties": {
"category": {
"enum": [
"travel2"
]
},
"sub_category": {
"enum":[
"Accomocations2",
"Flights2",
],
"title": "Sub Category"
}
}
}
]
}
}
}