{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uktendercheck-co-uk/json-schema/uktendercheck-co-uk-renewal-radar-profile-schema.json",
  "title": "RenewalRadarProfile",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uktendercheck-co-uk-openapi.json#/components/schemas/RenewalRadarProfile",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 2,
      "maxLength": 160
    },
    "sectors": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 100
      },
      "maxItems": 30,
      "default": []
    },
    "capabilities": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 140
      },
      "maxItems": 50,
      "default": []
    },
    "regions": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 2,
        "maxLength": 100
      },
      "maxItems": 30,
      "default": []
    },
    "minContractValue": {
      "type": "integer",
      "minimum": 0
    },
    "maxContractValue": {
      "type": "integer",
      "minimum": 1
    }
  },
  "anyOf": [
    {
      "required": [
        "sectors"
      ],
      "properties": {
        "sectors": {
          "minItems": 1
        }
      }
    },
    {
      "required": [
        "capabilities"
      ],
      "properties": {
        "capabilities": {
          "minItems": 1
        }
      }
    },
    {
      "required": [
        "regions"
      ],
      "properties": {
        "regions": {
          "minItems": 1
        }
      }
    },
    {
      "required": [
        "minContractValue"
      ]
    },
    {
      "required": [
        "maxContractValue"
      ]
    }
  ]
}