{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/movie-planner-ru/json-schema/movie-planner-ru-film-schema.json",
  "title": "Film",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/movie-planner-ru-openapi.yaml#/components/schemas/Film",
  "type": "object",
  "properties": {
    "film_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "kp_id": {
      "type": "integer"
    },
    "title": {
      "type": "string"
    },
    "year": {
      "type": [
        "integer",
        "null"
      ]
    },
    "poster": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "rating": {
      "type": [
        "number",
        "null"
      ]
    },
    "genres": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    },
    "is_series": {
      "type": "boolean"
    },
    "in_library": {
      "type": "boolean"
    },
    "watched": {
      "type": "boolean"
    },
    "my_rating": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "maximum": 10
    },
    "online_link": {
      "type": [
        "string",
        "null"
      ]
    },
    "link": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}