Skip to content

Commit

Permalink
fix(accounting): force location and number, allow location null
Browse files Browse the repository at this point in the history
  • Loading branch information
eljefedelrodeodeljefe committed May 14, 2019
1 parent e92d285 commit 72cbd82
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions lib/v0/locations/accounts.js
Expand Up @@ -2,6 +2,10 @@ module.exports = {
type: 'array',
items: {
type: 'object',
required: [
'location',
'custom_id'
],
properties: {
name: {
anyOf: [
Expand All @@ -17,10 +21,17 @@ module.exports = {
]
},
location: {
description: 'The specific Tillhub resource this account applies to (e.g. branch).',
type: 'string',
format: 'uuid',
example: '936835f7-2d75-41d2-9001-38ed6e458328'
anyOf: [
{
description: 'The specific Tillhub resource this account applies to (e.g. branch).',
type: 'string',
format: 'uuid',
example: '936835f7-2d75-41d2-9001-38ed6e458328'
},
{
type: 'null'
}
]
},
custom_id: {
description: 'The custom financial account identifier e.g. an account number.',
Expand Down

0 comments on commit 72cbd82

Please sign in to comment.