Skip to content

Commit

Permalink
feat(context_locations): required fields
Browse files Browse the repository at this point in the history
  • Loading branch information
eytand committed Aug 11, 2020
1 parent 94bf4bf commit 8d630d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions lib/v0/context_locations/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,5 @@ module.exports = {
description: 'Soft delete this branch group.',
type: 'boolean',
default: false
},
anyOf: [
{ required: ['locations'] },
{ required: ['branch_groups'] }
]
}
}
6 changes: 5 additions & 1 deletion lib/v0/context_locations/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ module.exports.request = {
$schema: 'http://json-schema.org/draft-07/schema#',
additionalProperties: false,
properties: base,
type: 'object'
type: 'object',
anyOf: [
{ required: ['locations'] },
{ required: ['branch_groups'] }
]
}

0 comments on commit 8d630d5

Please sign in to comment.