Created
April 8, 2026 10:13
-
-
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'.
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
| { | |
| "$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