{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buildervet-au/json-schema/buildervet-au-builder-profile-schema.json",
  "title": "BuilderProfile",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/buildervet-au-api-openapi.yml#/components/schemas/BuilderProfile",
  "type": "object",
  "properties": {
    "slug": {
      "type": "string"
    },
    "displayName": {
      "type": "string"
    },
    "legalName": {
      "type": "string"
    },
    "abn": {
      "type": [
        "string",
        "null"
      ]
    },
    "acn": {
      "type": [
        "string",
        "null"
      ]
    },
    "asicStatus": {
      "type": [
        "string",
        "null"
      ]
    },
    "licences": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Licence"
      }
    },
    "riskSignals": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "signal": {
            "type": "string"
          },
          "severity": {
            "type": "string"
          }
        }
      }
    },
    "firstObservedByBuilderCheck": {
      "type": "string",
      "description": "When BuilderVet's archive first captured this entity."
    }
  },
  "$defs": {
    "Licence": {
      "type": "object",
      "properties": {
        "licenceNo": {
          "type": "string"
        },
        "class": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "grantedOn": {
          "type": "string"
        },
        "expiresOn": {
          "type": "string"
        },
        "suburb": {
          "type": "string"
        },
        "postcode": {
          "type": "string"
        }
      }
    }
  }
}