Data · 1 file
Sample JSON Schema File
JSON Schema describes and validates the shape of JSON documents. This draft 2020-12 schema matches our customer samples.
JSON Schema · 979 B
JSON Schema (2020-12)
A draft 2020-12 JSON Schema for the customer records used across our samples, with formats, patterns and required fields.
CC0 · free for any use · Verified by an independent tool · Report a problem
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://samplefiles.com/schemas/customer.json",
"title": "Customer",
"type": "object",
"required": [
"id",
"first_name",
"last_name",
"email"
],
"properties": {
"id": {
"type": "integer",
"minimum": 1
},
"first_name": {
"type": "string",
"minLength": 1
},
"last_name": {
"type": "string",
"minLength": 1
},
"email": {File details
Download from the command line
curl -L -o customer.schema.json https://files.samplefiles.com/data/jsonschema/customer.schema.jsonwget https://files.samplefiles.com/data/jsonschema/customer.schema.jsonhttps://files.samplefiles.com/data/jsonschema/customer.schema.jsonprintf '%s %s\n' 7de0bd28929d0e2879c973a06657a54e209b62f8c405ac30fa2bcf4d80c8747a customer.schema.json | shasum -a 256 -cOr check the download in your browser with the checksum calculator.