{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fence/json-schema/fence-deal-specific-asset-schema.json",
  "title": "DealSpecificAsset",
  "description": "Asset payload validated against the schema configured for the target deal. Common integrations use external_id, contract_external_id, and properties; Fence provides the authoritative deal-specific fields during onboarding.",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fence-openapi.json#/components/schemas/DealSpecificAsset",
  "type": "object",
  "minProperties": 1,
  "properties": {
    "external_id": {
      "type": "string",
      "minLength": 1,
      "description": "Client-controlled asset identifier when required by the deal schema."
    },
    "contract_external_id": {
      "type": [
        "string",
        "null"
      ],
      "minLength": 1
    },
    "properties": {
      "oneOf": [
        {
          "$ref": "#/$defs/DealSpecificProperties"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": true,
  "$defs": {
    "DealSpecificProperties": {
      "type": "object",
      "description": "Fields vary by deal and are defined in the integration-specific schema provided during onboarding.",
      "additionalProperties": true
    }
  }
}