Created
November 9, 2018 21:03
-
-
Save miracle2k/6cc7674148177d20fa310be4ce52fd5a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const tourSchema = { | |
version: 0, | |
title: 'tour schema', | |
description: 'describes a tour details', | |
type: 'object', | |
properties: { | |
name: { | |
type: 'string', | |
}, | |
id: { | |
type: 'string', | |
primary: true, | |
}, | |
createdAt: { | |
type: 'string', | |
}, | |
completedWorkItems: { | |
type: 'array', | |
item: { | |
type: 'object', | |
properties: { | |
itemId: { | |
type: 'string', | |
}, | |
completed: { | |
type: 'string' | |
}, | |
completedAt: { | |
type: 'string', | |
}, | |
} | |
} | |
} | |
}, | |
required: ['name'], | |
}; | |
export default tourSchema; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment