{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://loop.firmiana.si/api/v1/schemas/provider.schema.json",
  "title": "One maker with its models, status and recent changes (api/v1/providers/<id>.json)",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "version", "generated_at", "license", "provider", "models", "status", "changes"],
  "properties": {
    "schema": { "type": "string", "format": "uri" }, "version": { "const": 1 }, "generated_at": { "type": "string", "format": "date-time" }, "license": { "const": "CC-BY-4.0" },
    "provider": { "$ref": "providers.schema.json#/$defs/provider" },
    "models": { "type": "array", "items": { "$ref": "models.schema.json#/$defs/model" } },
    "status": { "oneOf": [{ "type": "null" }, { "$ref": "status.schema.json#/$defs/provider" }] },
    "changes": { "type": "array", "items": { "$ref": "https://loop.firmiana.si/news/v1/news.schema.json#/$defs/item" } }
  }
}
