{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/certifier-io/json-schema/certifier-io-design-schema.json",
  "title": "Design",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifier-io-design-templates-api-openapi.yml#/components/schemas/Design",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique design template's identifier"
    },
    "name": {
      "type": "string",
      "description": "The name of the design template"
    },
    "type": {
      "type": "string",
      "enum": [
        "certificate",
        "badge"
      ],
      "description": "The type of the design template, whether it is a certificate design template or a badge design template"
    },
    "previewUrl": {
      "type": "string",
      "format": "uri",
      "description": "The direct URL to a PNG image preview of the design template"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this design template was created. Formatted as an ISO 8601 date and time string"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when this design template was updated. Formatted as an ISO 8601 date and time string"
    }
  },
  "required": [
    "id",
    "name",
    "type",
    "previewUrl",
    "createdAt",
    "updatedAt"
  ]
}