{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tempoatlas-net/json-schema/tempoatlas-net-entity-detail-schema.json",
  "title": "EntityDetail",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tempoatlas-net-openapi.json#/components/schemas/EntityDetail",
  "allOf": [
    {
      "$ref": "#/$defs/Entity"
    },
    {
      "type": "object",
      "properties": {
        "dossier": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "theTake": {
              "type": [
                "object",
                "null"
              ]
            },
            "keyFacts": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "metrics": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "history": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "features": {
              "type": "array",
              "items": {
                "type": "object"
              }
            },
            "gaps": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "faq": {
              "type": "array",
              "items": {
                "type": "object"
              }
            }
          }
        },
        "metrics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/LiveMetric"
          }
        },
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Source"
          }
        },
        "related": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Related"
          }
        }
      }
    }
  ],
  "$defs": {
    "Entity": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "type",
        "tags",
        "chains",
        "links",
        "isCore",
        "url"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "protocol_component",
            "stablecoin",
            "defi",
            "payments_app",
            "company",
            "infrastructure",
            "person",
            "investor",
            "validator"
          ]
        },
        "category": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": [
            "string",
            "null"
          ]
        },
        "tagline": {
          "type": [
            "string",
            "null"
          ]
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "chains": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "links": {
          "type": "object",
          "properties": {
            "website": {
              "type": [
                "string",
                "null"
              ]
            },
            "docs": {
              "type": [
                "string",
                "null"
              ]
            },
            "app": {
              "type": [
                "string",
                "null"
              ]
            },
            "github": {
              "type": [
                "string",
                "null"
              ]
            },
            "twitter": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "isCore": {
          "type": "boolean"
        },
        "confidence": {
          "type": [
            "integer",
            "null"
          ]
        },
        "url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "LiveMetric": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "format": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "type": [
            "number",
            "null"
          ]
        },
        "formatted": {
          "type": "string"
        }
      }
    },
    "Related": {
      "type": "object",
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "relation": {
          "type": "string"
        },
        "direction": {
          "type": "string",
          "enum": [
            "in",
            "out"
          ]
        }
      }
    },
    "Source": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "format": "uri"
        },
        "title": {
          "type": [
            "string",
            "null"
          ]
        },
        "publisher": {
          "type": [
            "string",
            "null"
          ]
        },
        "verifiedBy": {
          "type": [
            "string",
            "null"
          ]
        },
        "retrievedAt": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      }
    }
  }
}