Skip to content

Instantly share code, notes, and snippets.

@einarwh
Created April 8, 2026 10:13
Show Gist options
  • Select an option

  • Save einarwh/97f0818f339fbd4300ccb2a5f949a903 to your computer and use it in GitHub Desktop.

Select an option

Save einarwh/97f0818f339fbd4300ccb2a5f949a903 to your computer and use it in GitHub Desktop.
Customer Schema (second version), published 02.02.2026. Changed type of 'birthDate' from datetime to date. Added 'displayName'.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "/hellish-enterprise/customer-schema-20260202.json",
"title": "Customer",
"description": "Validation schema for customers.",
"type": "object",
"required": ["userId", "email", "birthDate", "displayName"],
"properties": {
"userId": {
"type": "string",
"minLength": 1
},
"email": {
"type": "string",
"format": "email"
},
"birthDate": {
"type": "string",
"format": "date"
},
"displayName": {
"type": "string",
"minLength": 1
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment