Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Last active April 15, 2023 15:09
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • Save coryhouse/300ed803148caaf9d4f3f45d1a03874d to your computer and use it in GitHub Desktop.
Save coryhouse/300ed803148caaf9d4f3f45d1a03874d to your computer and use it in GitHub Desktop.
Mock Data Schema for "Building a JavaScript Development Environment" on Pluralsight
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"]
};
@oscarigarcia
Copy link

oscarigarcia commented Apr 26, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment