Skip to content

Instantly share code, notes, and snippets.

@miracle2k
Created November 9, 2018 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miracle2k/6cc7674148177d20fa310be4ce52fd5a to your computer and use it in GitHub Desktop.
Save miracle2k/6cc7674148177d20fa310be4ce52fd5a to your computer and use it in GitHub Desktop.
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