TM Forum · Schema

AttachmentRefOrValue

The polymorphic attributes @type, @schemaLocation & @referredType are related to the Attachment entity and not the AttachmentRefOrValue class itself

TelcoTelecommunicationsBSSOSSOpen APIsStandards
View JSON Schema on GitHub

JSON Schema

tm-forum-attachmentreforvalue-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/AttachmentRefOrValue",
  "title": "AttachmentRefOrValue",
  "type": "object",
  "description": "The polymorphic attributes @type, @schemaLocation & @referredType are related to the Attachment entity and not the AttachmentRefOrValue class itself",
  "oneOf": [
    {
      "$ref": "#/components/schemas/Attachment"
    },
    {
      "$ref": "#/components/schemas/AttachmentRef"
    }
  ],
  "discriminator": {
    "propertyName": "@type",
    "mapping": {
      "Attachment": "#/components/schemas/Attachment",
      "AttachmentRef": "#/components/schemas/AttachmentRef"
    }
  }
}