mirror of
https://github.com/sartography/sample-process-models.git
synced 2025-02-25 14:15:14 +00:00
51 lines
1.3 KiB
JSON
51 lines
1.3 KiB
JSON
{
|
|
"definitions": {
|
|
"currencyEnum": {
|
|
"title": "Currency",
|
|
"type": "string",
|
|
"anyOf": [
|
|
"options_from_task_data_var:currency_enum_list"
|
|
]
|
|
}
|
|
},
|
|
"title": "Demand Request Items",
|
|
"description": "Itemized list of all items included in this demand request.",
|
|
"type": "object",
|
|
"properties": {
|
|
"Item": {
|
|
"type": "array",
|
|
"title": "Items",
|
|
"items": {
|
|
"type": "object",
|
|
"required": [
|
|
"item",
|
|
"qty",
|
|
"currency",
|
|
"unit_price"
|
|
],
|
|
"properties": {
|
|
"item": {
|
|
"type": "string",
|
|
"title": "Item",
|
|
"description": "Name of item to be purchased"
|
|
},
|
|
"qty": {
|
|
"type": "number",
|
|
"title": "Qty",
|
|
"description": "Number of items"
|
|
},
|
|
"currency": {
|
|
"$ref": "#/definitions/currencyEnum",
|
|
"title": "Currency"
|
|
},
|
|
"unit_price": {
|
|
"type": "string",
|
|
"title": "Unit Price",
|
|
"pattern": "^(\\d{1,3}(,?\\d{3})*)(\\.\\d\\d)?$",
|
|
"validationErrorMessage": "Must have no commas orcommas every 3 places, period for separator, 0 or 2 numbers after separator"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |