Skip to content

Instantly share code, notes, and snippets.

@alea12
Created March 6, 2026 03:30
Show Gist options
  • Select an option

  • Save alea12/401045c3f2d4e72c5c7324bbe30ee843 to your computer and use it in GitHub Desktop.

Select an option

Save alea12/401045c3f2d4e72c5c7324bbe30ee843 to your computer and use it in GitHub Desktop.
schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "EmailCategorization",
"type": "object",
"properties": {
"body": {
"type": "string",
"description": "The full body message of the email."
},
"category": {
"type": "string",
"enum": [
"turnaround",
"walk-in",
"hr",
"other"
],
"description": "The specific classification for the email content."
}
},
"required": ["body", "category"],
"additionalProperties": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment