{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-create-monitor-request-dto-schema.json",
  "title": "CreateMonitorRequestDto",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-ongoing-monitoring-openapi.yml#/components/schemas/CreateMonitorRequestDto",
  "required": [
    "entityType",
    "name",
    "profiles",
    "sources"
  ],
  "type": "object",
  "properties": {
    "name": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string",
      "description": "The name of the monitor."
    },
    "description": {
      "maxLength": 100,
      "minLength": 1,
      "type": [
        "string",
        "null"
      ],
      "description": "Description of the monitor."
    },
    "entityType": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string",
      "description": "The type of monitored entities (e.g., 'Person', 'Organisation')."
    },
    "sources": {
      "maxItems": 50,
      "minItems": 1,
      "type": "array",
      "items": {
        "$ref": "#/$defs/SourcesDto"
      },
      "description": "A collection of sources associated with the monitor."
    },
    "profiles": {
      "maxItems": 50,
      "minItems": 1,
      "type": "array",
      "items": {
        "maxLength": 100,
        "minLength": 1,
        "type": "string"
      },
      "description": "A list of profiles associated with the monitor request. Each profile must be a non-empty string."
    }
  },
  "additionalProperties": false,
  "$defs": {
    "SourcesDto": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "maxLength": 100,
          "minLength": 1,
          "type": "string",
          "description": "Represents the name of a source."
        }
      },
      "additionalProperties": false
    }
  }
}