{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/thecoop-media/json-schema/thecoop-media-provider-schema.json",
  "title": "Provider",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/thecoop-media-data-openapi.yml#/components/schemas/Provider",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "provider"
    },
    "slug": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "description": "Canonical URL. Cite this."
    },
    "name": {
      "type": "string"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "review_status": {
      "type": "string"
    },
    "summary": {
      "type": "string"
    },
    "facts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "description": "supplier-stated, register-matched, editorially-checked or unconfirmed. Report the status with the fact."
          },
          "source_ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "label",
          "value",
          "status"
        ],
        "additionalProperties": {}
      }
    },
    "sources": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "checked_at": {
            "anyOf": [
              {
                "type": "string",
                "description": "ISO 8601 date or date-time."
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "label",
          "url"
        ],
        "additionalProperties": {},
        "description": "A public source behind a record or fact."
      }
    },
    "assessment": {
      "anyOf": [
        {
          "type": "object",
          "properties": {},
          "additionalProperties": {}
        },
        {
          "type": "null"
        }
      ]
    },
    "missing": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "glossary_context": {
      "description": "Approved glossary definitions for terms that appear in the response. Educational context, not evidence about a company.",
      "type": "array",
      "items": {
        "type": "object",
        "properties": {},
        "additionalProperties": {}
      }
    }
  },
  "required": [
    "type",
    "slug",
    "url",
    "name"
  ],
  "additionalProperties": {}
}