96 lines
2.0 KiB
JSON
Raw Normal View History

2022-08-17 18:20:52 -04:00
{
2022-10-03 12:42:47 -04:00
"definitions": {
"currencyEnum": {
"type": "string",
"anyOf": [{
"type": "string",
"title": "Australian Dollar (AUD)",
"enum": [
"AUD"
]
},
{
"type": "string",
"title": "Canadian Dollar (CAD)",
"enum": [
"CAD"
]
},
{
"type": "string",
"title": "Swiss Franc (CHF)",
"enum": [
"CHF"
]
},
{
"type": "string",
"title": "Euro (EUR)",
"enum": [
"EUR"
]
},
{
"type": "string",
"title": "Pound sterling (GBP)",
"enum": [
"GBP"
]
},
{
"type": "string",
"title": "Singapore Dollar (SGD)",
"enum": [
"SGD"
]
},
{
"type": "string",
"title": "US Dollar (USD)",
"enum": [
"USD"
]
}
]
}
},
"title": "Submit Invoice",
"description": "Information for submitting an invoice.",
2022-08-17 18:20:52 -04:00
"type": "object",
"required": [
2022-10-03 12:42:47 -04:00
"invoice.contributorName",
"invoice.contributorId",
"invoice.invoiceId",
"invoice.invoiceAmount",
"invoice.invoiceCurrency",
"invoice.dueDate"
2022-08-17 18:20:52 -04:00
],
"properties": {
2022-10-03 12:42:47 -04:00
"invoice.contributorName": {
2022-08-17 18:20:52 -04:00
"type": "string",
"title": "Contributor Name"
2022-08-17 18:20:52 -04:00
},
2022-10-03 12:42:47 -04:00
"invoice.contributorId": {
"type": "integer",
"title": "Contributor Id",
2022-10-03 12:42:47 -04:00
"minLength": 2
},
2022-10-03 12:42:47 -04:00
"invoice.invoiceId": {
"type": "integer",
"title": "Invoice Id",
"minLength": 4
},
2022-10-03 12:42:47 -04:00
"invoice.invoiceAmount": {
"type": "number",
"title": "Invoice Amount"
2022-08-17 18:20:52 -04:00
},
2022-10-03 12:42:47 -04:00
"invoice.invoiceCurrency": {
"$ref": "#/definitions/currencyEnum",
"title": "Select Currency"
},
"invoice.dueDate": {
2022-08-17 18:20:52 -04:00
"type": "string",
"title": "Due Date"
2022-08-17 18:20:52 -04:00
}
}
}