Skip to content

Instantly share code, notes, and snippets.

@kidino
Last active August 12, 2025 03:57
Show Gist options
  • Save kidino/5f10933f0a745a8bdf3293a241fb47c2 to your computer and use it in GitHub Desktop.
Save kidino/5f10933f0a745a8bdf3293a241fb47c2 to your computer and use it in GitHub Desktop.
office schema
{
"definitions": {
"Office": {
"description": "Office creation schema",
"type": "struct",
"properties": {
"name": {
"description": "The name of the office",
"type": "string",
"minLength": 1,
"maxLength": 50
},
"address_1": {
"description": "Primary address line",
"type": "string",
"minLength": 1,
"maxLength": 50
},
"address_2": {
"description": "Secondary address line (optional)",
"type": "string",
"maxLength": 50
},
"district": {
"description": "District or area name (optional)",
"type": "string",
"maxLength": 50
},
"state": {
"description": "State or province",
"type": "string",
"minLength": 1,
"maxLength": 50
},
"postcode": {
"description": "Postal or ZIP code",
"type": "string",
"minLength": 1,
"maxLength": 10
},
"phone_no": {
"description": "Office phone number",
"type": "string",
"minLength": 1,
"maxLength": 30
}
},
"required": ["name", "address_1", "state", "postcode", "phone_no"]
}
},
"$ref": "Office"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment