{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "profile",
  "allOf": [{ "$ref": "base" }],
  "properties": {
    "type": { "const": "profile" },
    "name": { "type": "string" },
    "role": { "type": "string" },
    "medium": { "type": ["string", "null"] },
    "year": { "type": ["integer", "null"] },
    "client": { "type": ["string", "null"] },
    "links": { "type": "object", "additionalProperties": { "type": "string" } },
    "portrait": { "type": "string" },
    "portraitAlt": { "type": "string" },
    "standfirst": { "type": "string" },
    "facts": { "type": "array", "items": { "type": "object", "required": ["label", "value"], "properties": { "label": { "type": "string" }, "value": { "type": "string" } } } }
  },
  "required": ["role"]
}
