{ "$id": "https://raw.githubusercontent.com/bcgov/nr-pies/refs/heads/main/docs/spec/element/message/linkage.schema.json", "$schema": "http://json-schema.org/draft-07/schema#", "title": "Linkage", "description": "Represents a message asserting a linkage between specific assets.", "type": "object", "properties": { "asset_group": { "$ref": "https://raw.githubusercontent.com/bcgov/nr-pies/refs/heads/main/docs/spec/element/data/asset.schema.json" }, "linked_asset_id": { "type": "string", "description": "The asset or primary key representing what asset is linked with the primary header asset." }, "linked_asset_kind": { "type": "string", "description": "A valid Asset Kind code that specifies the precise type of asset is linked with the primary header asset.", "enum": ["ANCHOR", "PERMIT", "PROJECT"] }, "linked_system_id": { "type": "string", "description": "A valid CSNR IT Service Management code identifying the originating source system, service, or asset.", "pattern": "^ITSM-\\d{4,5}$" }, "relation_kind": { "type": "string", "description": "The kind of relation between the primary asset and the linked asset (for example, MERGES, RELATES, SELF, SPLITS).", "enum": ["MERGES", "RELATES", "SELF", "SPLITS"] } }, "allOf": [ { "$ref": "https://raw.githubusercontent.com/bcgov/nr-pies/refs/heads/main/docs/spec/element/data/header.schema.json" } ], "required": ["asset_group", "linked_asset_id", "linked_asset_kind", "linked_system_id", "relation_kind"] }