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

customer.schema.json — first linesJSON
{
  "$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

Size
979 B (979 bytes)
MIME type
application/json
SHA-256
7de0bd28929d0e2879c973a06657a54e209b62f8c405ac30fa2bcf4d80c8747a
MD5
9244aa8b66f3f06cd6df9d7a55b26ba3

Download from the command line

curl -L -o customer.schema.json https://files.samplefiles.com/data/jsonschema/customer.schema.json

Or check the download in your browser with the checksum calculator.