{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/productionlist-com/json-schema/productionlist-com-production-schema.json",
  "title": "Production",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/productionlist-com-openapi.json#/components/schemas/Production",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer"
    },
    "slug": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "logline": {
      "type": [
        "string",
        "null"
      ]
    },
    "stage": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "in-development",
        "in-pre-production",
        "in-production",
        "in-post-production",
        "completed",
        null
      ],
      "description": "Canonical lifecycle stage slug (also the value accepted by the ?stage filter)."
    },
    "union_status": {
      "type": "string",
      "enum": [
        "union",
        "non-union",
        "unknown"
      ],
      "description": "Union status; \"unknown\" until determined."
    },
    "poster_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Public key-art / poster image URL, when available."
    },
    "synopsis": {
      "type": [
        "string",
        "null"
      ],
      "description": "Pipeline+ only. Full plain-text synopsis (logline carries the short version)."
    },
    "types": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "locations": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "city": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": [
              "string",
              "null"
            ]
          },
          "country": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "production_dates": {
      "type": "object",
      "properties": {
        "start": {
          "type": [
            "string",
            "null"
          ]
        },
        "end": {
          "type": [
            "string",
            "null"
          ]
        },
        "post_start": {
          "type": [
            "string",
            "null"
          ]
        },
        "post_end": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "detected_at": {
      "type": "string",
      "format": "date-time"
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "url": {
      "type": "string"
    },
    "attached_people": {
      "type": "array",
      "description": "Pipeline+ only. Public profile fields & roles; never contact details (no emails/phones). Verified credits only: credits a crew member added to their own profile (self-reported) are excluded.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "role": {
            "type": [
              "string",
              "null"
            ]
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "known_for": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "imdb": {
            "type": [
              "string",
              "null"
            ]
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "socials": {
            "type": "object",
            "properties": {
              "linkedin": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "twitter": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "instagram": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "representation": {
            "type": [
              "string",
              "null"
            ],
            "description": "Representation agency name (business only; agent/manager personal names are omitted)."
          }
        }
      }
    },
    "attached_companies": {
      "type": "array",
      "description": "Pipeline+ only.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "website": {
            "type": [
              "string",
              "null"
            ]
          },
          "socials": {
            "type": "object",
            "properties": {
              "linkedin": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "twitter": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "instagram": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          }
        }
      }
    }
  }
}