{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "#/components/schemas/RelatedPartyOrPartyRole", "title": "RelatedPartyOrPartyRole", "allOf": [ { "$ref": "#/components/schemas/Extensible" }, { "type": "object", "description": "RelatedParty reference. A related party defines party or party role or its reference, linked to a specific entity", "properties": { "role": { "description": "Role played by the related party or party role in the context of the specific entity it is linked to. Such as 'initiator', 'customer', 'salesAgent', 'user'", "type": "string" }, "partyOrPartyRole": { "$ref": "#/components/schemas/PartyOrPartyRole" } } } ], "discriminator": { "propertyName": "@type", "mapping": { "RelatedPartyOrPartyRole": "#/components/schemas/RelatedPartyOrPartyRole" } } }