{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/Template", "title": "Template", "type": "object", "properties": { "name": { "type": "string", "description": "The name of the template." }, "language": { "type": "string", "description": "The language code." }, "category": { "type": "string", "description": "The template category." }, "components": { "type": "array", "description": "The template components.", "items": { "$ref": "#/components/schemas/TemplateComponent" } }, "status": { "type": "string", "description": "The approval status of the template.", "enum": [ "NEW", "PENDING", "APPROVED", "REJECTED" ] }, "rejectedReason": { "type": "string", "description": "The reason for rejection, if applicable." }, "createdAt": { "type": "string", "format": "date-time", "description": "The date and time when the template was created." }, "updatedAt": { "type": "string", "format": "date-time", "description": "The date and time when the template was last updated." } } }