import {JSONSchema7} from 'json-schema'; export default { $id: 'https://schemas.coastapp.com/card/v1/groupBy.json', $schema: 'http://json-schema.org/draft-07/schema', title: 'Group By', anyOf: [ {$ref: '#/definitions/groupByCard'}, {$ref: '#/definitions/groupByTag'}, {$ref: '#/definitions/groupByAssignees'}, ], definitions: { groupByCard: { title: 'Group By Card', type: 'object', additionalProperties: false, properties: { type: {type: 'string', enum: ['card']}, cardName: {type: 'string'}, noCardSection: {$ref: '#/definitions/noCardSection'}, }, required: ['type', 'cardName'], }, groupByTag: { title: 'Group By Tag', type: 'object', additionalProperties: false, properties: { type: {type: 'string', enum: ['tag']}, tagName: {type: 'string'}, noTagSection: {$ref: '#/definitions/noTagSection'}, }, required: ['type', 'tagName'], }, groupByAssignees: { title: 'Group By Assignees', type: 'object', additionalProperties: false, properties: { type: {type: 'string', enum: ['assignees']}, }, required: ['type'], }, noTagSection: { title: 'No Tag Section', type: 'object', additionalProperties: false, properties: { enabled: {type: 'boolean'}, title: {type: 'string', default: 'None'}, }, required: ['enabled'], }, noCardSection: { title: 'No Card Section', type: 'object', additionalProperties: false, properties: { enabled: {type: 'boolean'}, title: {type: 'string', default: 'None'}, }, required: ['enabled'], }, }, } as JSONSchema7;