{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://loop.firmiana.si/api/v1/schemas/model.schema.json",
  "title": "One model with every price row, announced prices, platform offers and its recent changes (api/v1/models/<provider>/<id>.json)",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "version", "generated_at", "license", "unit", "fx", "model", "offers", "changes"],
  "properties": {
    "schema": { "type": "string", "format": "uri" }, "version": { "const": 1 }, "generated_at": { "type": "string", "format": "date-time" }, "license": { "const": "CC-BY-4.0" },
    "unit": { "const": "per 1M tokens" },
    "fx": { "type": "object" },
    "model": { "$ref": "https://loop.firmiana.si/prices/v1/models.schema.json#/$defs/model" },
    "offers": { "type": "array", "items": { "$ref": "https://loop.firmiana.si/prices/v1/offers.schema.json#/$defs/offer" } },
    "changes": { "type": "array", "items": { "$ref": "https://loop.firmiana.si/news/v1/news.schema.json#/$defs/item" } }
  }
}
