{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spot-insure/json-schema/spot-insure-public-profile-schema.json",
  "title": "PublicProfile",
  "description": "Public facts about Spot.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spot-insure-openapi.json#/components/schemas/PublicProfile",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "type",
    "name",
    "description",
    "legalName",
    "formerName",
    "address",
    "contact",
    "links",
    "audience",
    "capabilities",
    "independence",
    "demoUrl"
  ],
  "properties": {
    "type": {
      "type": "string",
      "description": "Entity category."
    },
    "name": {
      "type": "string",
      "description": "Public entity name."
    },
    "description": {
      "type": "string",
      "description": "Concise positioning."
    },
    "legalName": {
      "type": "string",
      "description": "Operating company's legal name."
    },
    "formerName": {
      "type": "string",
      "description": "Previous public company name."
    },
    "address": {
      "$ref": "#/$defs/PostalAddress"
    },
    "contact": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "general",
        "recruiting"
      ],
      "properties": {
        "general": {
          "type": "string",
          "format": "email"
        },
        "recruiting": {
          "type": "string",
          "format": "email"
        }
      }
    },
    "links": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "company",
        "product",
        "github"
      ],
      "properties": {
        "company": {
          "type": "string",
          "format": "uri"
        },
        "product": {
          "type": "string",
          "format": "uri"
        },
        "github": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "audience": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "independence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "insuranceCarrier",
        "takesPremiumCommissions",
        "canWorkWithIncumbentBroker"
      ],
      "properties": {
        "insuranceCarrier": {
          "type": "boolean"
        },
        "takesPremiumCommissions": {
          "type": "boolean"
        },
        "canWorkWithIncumbentBroker": {
          "type": "boolean"
        }
      }
    },
    "pricing": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "range",
          "price"
        ],
        "properties": {
          "range": {
            "type": "string"
          },
          "price": {
            "type": "string"
          }
        }
      }
    },
    "demoUrl": {
      "type": "string",
      "format": "uri"
    }
  },
  "$defs": {
    "PostalAddress": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "streetAddress",
        "addressLocality",
        "addressRegion",
        "postalCode",
        "addressCountry"
      ],
      "properties": {
        "streetAddress": {
          "type": "string"
        },
        "addressLocality": {
          "type": "string"
        },
        "addressRegion": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "addressCountry": {
          "type": "string"
        }
      }
    }
  }
}