{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blacksky/json-schema/blacksky-provider-with-roles-schema.json",
  "title": "ProviderWithRoles",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blacksky-glossary-api-openapi.yml#/components/schemas/ProviderWithRoles",
  "allOf": [
    {
      "$ref": "#/$defs/ProviderRolesArray"
    },
    {
      "$ref": "#/$defs/Provider"
    }
  ],
  "$defs": {
    "Provider": {
      "required": [
        "description",
        "name",
        "title"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the provider.\n"
        },
        "title": {
          "type": "string",
          "description": "The title of the provider.\n"
        },
        "description": {
          "type": "string",
          "description": "The description of the provider.\n"
        }
      }
    },
    "ProviderRole": {
      "type": "string",
      "enum": [
        "PRODUCER",
        "HOST"
      ]
    },
    "ProviderRolesArray": {
      "required": [
        "roles"
      ],
      "type": "object",
      "properties": {
        "roles": {
          "type": "array",
          "description": "Provider roles:\n  - `PRODUCER`: a producer is a provider that initially acquired and processed the source data. Data acquired by a producer can be distributed to various hosts.\n  - `HOST`: a host is a provider that offers access to data acquired by a producer.\n",
          "items": {
            "$ref": "#/$defs/ProviderRole"
          }
        }
      }
    }
  }
}