{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A record representing a film.",
      "key": "any",
      "record": {
        "properties": {
          "title": {
            "description": "The title of the film.",
            "maxGraphemes": 512,
            "maxLength": 2048,
            "required": true,
            "type": "string"
          },
          "workType": {
            "const": "film",
            "description": "Identifies this record as a film.",
            "maxGraphemes": 64,
            "maxLength": 64,
            "required": true,
            "type": "string"
          },
          "year": {
            "description": "The year the film was released.",
            "maximum": 2199,
            "minimum": 1800,
            "type": "integer"
          }
        },
        "required": [
          "title",
          "workType"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "work.lexical.work.film",
  "lexicon": 1
}
