mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-25 14:15:14 +00:00
81 lines
1.7 KiB
JSON
81 lines
1.7 KiB
JSON
{
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |