{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Card template preset",
  "type": "object",
  "additionalProperties": true,
  "required": ["name", "fields"],
  "properties": {
    "id": {
      "description": "Optional. Omit the key to generate a source identity; null and empty strings are invalid. Nested field ids may also be omitted unless another field references them.",
      "type": "string",
      "minLength": 1
    },
    "name": { "type": "string", "minLength": 1, "maxLength": 40 },
    "createdAt": {
      "description": "Optional. Omission and null mean unavailable metadata. Malformed timestamps are rejected.",
      "type": ["string", "null"],
      "format": "date-time"
    },
    "updatedAt": {
      "description": "Optional. Omission and null mean unavailable metadata. Malformed timestamps are rejected.",
      "type": ["string", "null"],
      "format": "date-time"
    },
    "fields": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": { "$ref": "field_definition.schema.json" }
    }
  }
}
