{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "schema:CreativeWorkSeason",
  "title": "CreativeWorkSeason",
  "description": "A media season, e.g. TV, radio, video game etc.",
  "type": "object",
  "allOf": [
    {
      "description": "The most generic kind of creative work, including books, movies, photographs, software programs, etc.",
      "$ref": "schema:CreativeWork"
    }
  ],
  "properties": {
    "actor": {
      "description": "An actor (individual or a group), e.g. in TV, radio, movie, video games etc., or in an event. Actors can be associated with individual items or with a series, episode, clip.",
      "oneOf": [
        {
          "anyOf": [
            { "$ref": "schema:PerformingGroup" },
            { "$ref": "schema:Person" }
          ]
        },
        {
          "type": "array",
          "items": {
            "anyOf": [
              { "$ref": "schema:PerformingGroup" },
              { "$ref": "schema:Person" }
            ]
          }
        }
      ]
    },
    "director": {
      "description": "A director of e.g. TV, radio, movie, video gaming etc. content, or of an event. Directors can be associated with individual items or with a series, episode, clip.",
      "$ref": "schema:Person"
    },
    "endDate": {
      "description": "The end date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" }
      ]
    },
    "episode": {
      "description": "An episode of a TV, radio or game media within a series or season.",
      "oneOf": [
        { "$ref": "schema:Episode" },
        { "type": "array", "items": { "$ref": "schema:Episode" } }
      ]
    },
    "episodes": {
      "description": "An episode of a TV/radio series or season.",
      "oneOf": [
        { "$ref": "schema:Episode" },
        { "type": "array", "items": { "$ref": "schema:Episode" } }
      ]
    },
    "numberOfEpisodes": {
      "description": "The number of episodes in this season or series.",
      "type": "integer"
    },
    "partOfSeries": {
      "description": "The series to which this episode or season belongs.",
      "$ref": "schema:CreativeWorkSeries"
    },
    "productionCompany": {
      "description": "The production company or studio responsible for the item, e.g. series, video game, episode etc.",
      "$ref": "schema:Organization"
    },
    "seasonNumber": {
      "description": "Position of the season within an ordered group of seasons.",
      "anyOf": [{ "type": "integer" }, { "type": "string" }]
    },
    "startDate": {
      "description": "The start date and time of the item (in [ISO 8601 date format](http://en.wikipedia.org/wiki/ISO_8601)).",
      "anyOf": [
        { "type": "string", "format": "date" },
        { "type": "string", "format": "date-time" }
      ]
    },
    "trailer": {
      "description": "The trailer of a movie or TV/radio series, season, episode, etc.",
      "$ref": "schema:VideoObject"
    }
  }
}
