{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "One CMDB relationship row, normalised to our relationship schema (ADR 0019)", "description": "What the normalise_cmdb_relationship_batch sub-agent returns for one row of an uploaded relationship export. The parent depends on, contains or runs the child. Every string is copied verbatim from the row; type is the only judgment. Code resolves both ends to judged CIs.", "type": "object", "properties": { "row": { "type": "integer" }, "skip": { "type": "string", "minLength": 1 }, "parent_ref": { "type": "string", "minLength": 1, "description": "The parent CI, as the row names it (its identifier or name)." }, "child_ref": { "type": "string", "minLength": 1, "description": "The child CI, as the row names it." }, "type_raw": { "type": [ "string", "null" ], "description": "The relationship type as written, e.g. Depends on::Used by." }, "type": { "type": "string", "enum": [ "hosted_on", "app_to_db", "app_to_app", "app_to_shared_service", "middleware", "network_attachment", "unclassified" ] }, "injection_detected": { "type": "boolean" } }, "required": [ "row" ], "additionalProperties": false }