{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/presentofai-com/json-schema/presentofai-com-company-detail-response-schema.json",
  "title": "CompanyDetailResponse",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/presentofai-com-openapi.json#/components/schemas/CompanyDetailResponse",
  "type": "object",
  "required": [
    "source",
    "attribution",
    "license",
    "url",
    "company"
  ],
  "properties": {
    "source": {
      "type": "string",
      "const": "Present of AI"
    },
    "attribution": {
      "type": "string",
      "description": "Data from presentofai.com, CC BY 4.0, link back to the page you use"
    },
    "license": {
      "type": "string",
      "const": "CC BY 4.0"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Canonical presentofai.com page for this response. Link back to it."
    },
    "company": {
      "$ref": "#/$defs/CompanyDetail"
    }
  },
  "$defs": {
    "Company": {
      "type": "object",
      "required": [
        "slug",
        "name",
        "page_url"
      ],
      "properties": {
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "one_liner": {
          "type": "string"
        },
        "sector": {
          "type": [
            "string",
            "null"
          ]
        },
        "country": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "founded": {
          "type": [
            "integer",
            "null"
          ]
        },
        "stage": {
          "type": [
            "string",
            "null"
          ]
        },
        "tags": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "website": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "logo_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "funding": {
          "oneOf": [
            {
              "$ref": "#/$defs/Funding"
            },
            {
              "type": "null"
            }
          ]
        },
        "hiring_count": {
          "type": "integer"
        },
        "has_full_spotlight": {
          "type": "boolean"
        },
        "page_url": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "CompanyDetail": {
      "allOf": [
        {
          "$ref": "#/$defs/Company"
        },
        {
          "type": "object",
          "properties": {
            "description": {
              "type": [
                "string",
                "null"
              ]
            },
            "founders": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "backers": {
              "type": [
                "string",
                "null"
              ]
            },
            "batch": {
              "type": [
                "string",
                "null"
              ]
            },
            "open_roles": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "location": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            },
            "sources": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "label": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            },
            "news": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "title": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "date": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string",
                    "format": "uri"
                  }
                }
              }
            }
          }
        }
      ]
    },
    "Funding": {
      "type": "object",
      "properties": {
        "total_raised_usd": {
          "type": [
            "integer",
            "null"
          ]
        },
        "total_raised_as_of": {
          "type": [
            "string",
            "null"
          ]
        },
        "total_raised_source": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_round": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "stage": {
              "type": [
                "string",
                "null"
              ]
            },
            "amount_usd": {
              "type": [
                "integer",
                "null"
              ]
            },
            "date": {
              "type": [
                "string",
                "null"
              ]
            },
            "lead": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "summary": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}