{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://tiffany.systems/api/schema/resource-index.schema.json",
  "title": "ResourceIndex",
  "description": "Every public resource record, with four status dimensions kept separate: development state, scientific status, release status and access. A client must not merge them — they answer different questions and frequently disagree, and a resource in discovery is neither a product awaiting release nor a product that failed.",
  "x-schema-version": "1.0.0",
  "type": "object",
  "additionalProperties": false,
  "required": ["schema", "count", "status_dimensions", "resources"],
  "properties": {
    "schema": {"const": "tiffany.systems/schema/resource-index/1.0.0"},
    "note": {"type": "string"},
    "ontology_version": {"type": "string"},
    "count": {"type": "integer"},
    "status_dimensions": {"type": "object", "description": "Which ontology dimension each status field resolves through."},
    "resources": {"type": "array", "items": {"type": "object"}}
  }
}
