TM Forum · Schema

GeographicLocationRefOrValue

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

TelcoTelecommunicationsBSSOSSOpen APIsStandards
View JSON Schema on GitHub

JSON Schema

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