{
  "$schema": "http://json-schema.org/draft/2020-12/schema",
  "$id": "https://schemas.mpai.community/MMM4/V2.1/data/BasicDiscovery.json",
  "title": "BasicDiscovery", "type": "object", "properties": {
    "Header": { "type": "string", "pattern": "^MMM-BDV-V[0-9]{1,2}[.][0-9]{1,2}$" },
    "MInstanceID": { "type": "string" }, 
    "BasicDiscoveryID": { "type": "string" },
    "BasicDiscovery": { "type": "object", "properties": {
      "DiscoveryRequest": { "type": "object", "properties": {
        "Items": { "type": "array", "items": {"ItemID": { "type": "string" } } },
        "MLocations": { "type": "array", "items": { "type": "object", "properties": { "MLocation": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/MLocation.json" } } } },
        "Entities": { "type": "array", "items": { "type": "object", "properties": { "Entity": { "$ref": "https://schemas.mpai.community/OSD/V1.4/data/PerceptibleEntity.json" } } } },
        "Processes": { "type": "array", "items": {"ItemID": { "type": "string" } } } } },
      "DiscoveryResponse": { "type": "object", "properties": {
        "Items": { "type": "array", "items": {"ItemID": { "type": "string" } } },
        "MLocations": { "type": "array", "items": { "type": "object", "properties": { "MLocation": { "$ref": "https://schemas.mpai.community/MMM4/V2.1/data/MLocation.json" } } } },
        "Entities": { "type": "array", "items": { "type": "object", "properties": { "Entity": { "$ref": "https://schemas.mpai.community/OSD/V1.4/data/PerceptibleEntity.json" } } } },
        "Processes": { "type": "array", "items": {"ItemID": { "type": "string" } } } } } } },
    "DescrMetadata": { "type": "string" } }
}

