Last active
October 7, 2016 22:50
-
-
Save coryhouse/d1f03d1c9983e29bea54f21c1688f931 to your computer and use it in GitHub Desktop.
Mock Data Schema for "Building a JavaScript Development Environment" on Pluralsight
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
export const schema = { | |
"type": "object", | |
"properties": { | |
"users": { | |
"type": "array", | |
"minItems": 3, | |
"maxItems": 5, | |
"items": { | |
"type": "object", | |
"properties": { | |
"id": { | |
"type": "number", | |
"unique": true, | |
"minimum": 1 | |
}, | |
"firstName": { | |
"type": "string", | |
"faker": "name.firstName" | |
}, | |
"lastName": { | |
"type": "string", | |
"faker": "name.lastName", | |
}, | |
"email": { | |
"type": "string", | |
"faker": "internet.email", | |
} | |
}, | |
required: ['id', 'firstName', 'lastName', 'email'] | |
} | |
} | |
}, | |
required: ['users'] | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment