sample-process-models/execute-procure-to-pay/cc-invoice-approval-process/Submit-the-invoice_JSONSche...

66 lines
1.2 KiB
JSON

{
"definitions": {
"currencyEnum": {
"title": "Currency",
"type": "string",
"anyOf": [
"options_from_task_data_var:enumerations_list"
]
}
},
"title": "Submit Invoice",
"description": "Information for submitting an invoice.",
"type": "object",
"required": [
"filesAccept"
],
"properties": {
"invoice": {
"type": "object",
"required": [
"contributorName",
"contributorId",
"invoiceId",
"invoiceAmount",
"invoiceCurrency",
"dueDate"
],
"title": "",
"properties": {
"contributorName": {
"type": "string",
"title": "Contributor Name"
},
"contributorId": {
"type": "integer",
"title": "Contributor Id",
"minLength": 2
},
"invoiceId": {
"type": "integer",
"title": "Invoice Id",
"minLength": 4
},
"invoiceAmount": {
"type": "number",
"title": "Invoice Amount"
},
"invoiceCurrency": {
"$ref": "#/definitions/currencyEnum",
"title": "Select Currency"
},
"dueDate": {
"type": "string",
"title": "Due Date"
}
}
},
"filesAccept": {
"type": "string",
"format": "data-url",
"title": "Upload Invoice PDF"
}
}
}