Choose what this site may use

This site uses strictly necessary cookies to work and to remember your privacy choices. With your permission it would also load content hosted by other services, such as videos, maps and fonts, which then receive your network address and device data. We do not sell or share your personal information and we run no advertising. Choose Accept all, Reject all or Customise. You can change your mind at any time through Privacy choices at the foot of every page.

  • Always on

    Needed for the site to work and to remember your privacy choices. Always on.

  • Remembers settings you choose, such as the light or dark display, in your browser.

  • Loads videos, maps and other content hosted by other services. Those services receive your address and device data.

Menu Close
In this section: Specification
Specification
Functions
Schemas
Registers

NamePack

Source schemas/json/name-pack.schema.json

On this page
  1. Properties
  2. Positive fixtures
  3. Negative fixtures
  4. Schema

Operator name pack (OBSP-SOV, SOV-6). Open components are brand-neutral: product and surface names, system codes, organisation name, logos, help/docs/legal/privacy links, legal text and locale strings that users see come from the name pack the operator loads. Every operator class loads its own pack (neutral default, Nexus standardised names for non-profit deployments, government, intergovernmental, enterprise, OEM white label, company). A NON_PROFIT_STANDARDISED pack names its surfaces with Nexus standardised system codes (NXS-XXX). Links are https or relative; logos are local paths with digests unless the operator opts into remote logos. Example packs carry placeholders and example true; an operator pack carries no placeholder. Scope: presentation configuration only; loading a pack grants no authority and makes no outbound connection.

FieldValue
Identifierurn:obsp:schema:v3.1:namepack
Dialecthttps://json-schema.org/draft/2020-12/schema
Used by functionsnone

Properties

PropertyRequiredTypeDescription
schemaVersionyesreference
apiVersionyesstring
idyesstring
kindyesreference
versionyesstring
exampleyesbooleantrue for a shipped example pack with placeholders; an operator pack sets false and carries no placeholder
productyesreference
systemCodesyesobjectrole -> system code and title, e.g. observation -> NXS-OPS. Empty when the operator uses no system codes.
organisationyes
logosyesarray
linksyesreference
legalyesreference
localesyesreference
assetPolicyyesobject
extensionsnoreference

Positive fixtures

  • name-pack.intergovernmental-multilingual.valid.json
  • name-pack.neutral.valid.json
  • name-pack.nexus-standardised.valid.json

Negative fixtures

  • name-pack.bad-locale-tag.json
  • name-pack.http-link.json
  • name-pack.missing-rtl-flag.json
  • name-pack.neutral-with-organisation.json
  • name-pack.non-profit-surface-without-code.json
  • name-pack.non-profit-without-nxs-codes.json
  • name-pack.placeholder-in-operator-pack.json
  • name-pack.protocol-relative-link.json
  • name-pack.remote-logo-without-opt-in.json
  • name-pack.unknown-kind.json

Schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "urn:obsp:schema:v3.1:namepack",
  "title": "NamePack",
  "description": "Operator name pack (OBSP-SOV, SOV-6). Open components are brand-neutral: product and surface names, system codes, organisation name, logos, help/docs/legal/privacy links, legal text and locale strings that users see come from the name pack the operator loads. Every operator class loads its own pack (neutral default, Nexus standardised names for non-profit deployments, government, intergovernmental, enterprise, OEM white label, company). A NON_PROFIT_STANDARDISED pack names its surfaces with Nexus standardised system codes (NXS-XXX). Links are https or relative; logos are local paths with digests unless the operator opts into remote logos. Example packs carry placeholders and example true; an operator pack carries no placeholder. Scope: presentation configuration only; loading a pack grants no authority and makes no outbound connection.",
  "type": "object",
  "required": [
    "schemaVersion",
    "apiVersion",
    "id",
    "kind",
    "version",
    "example",
    "product",
    "systemCodes",
    "organisation",
    "logos",
    "links",
    "legal",
    "locales",
    "assetPolicy"
  ],
  "properties": {
    "schemaVersion": {
      "$ref": "#/$defs/SchemaVersion"
    },
    "apiVersion": {
      "type": "string",
      "const": "obsp/name-pack/v3.1"
    },
    "id": {
      "type": "string",
      "pattern": "^namepack\\.[a-z0-9][a-z0-9.-]{1,62}$"
    },
    "kind": {
      "$ref": "#/$defs/NamePackKind"
    },
    "version": {
      "type": "string",
      "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)$"
    },
    "example": {
      "type": "boolean",
      "description": "true for a shipped example pack with placeholders; an operator pack sets false and carries no placeholder"
    },
    "product": {
      "$ref": "#/$defs/Product"
    },
    "systemCodes": {
      "type": "object",
      "description": "role -> system code and title, e.g. observation -> NXS-OPS. Empty when the operator uses no system codes.",
      "propertyNames": {
        "pattern": "^[a-z][a-zA-Z0-9]{1,39}$"
      },
      "additionalProperties": {
        "$ref": "#/$defs/SystemCode"
      },
      "maxProperties": 64
    },
    "organisation": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "$ref": "#/$defs/Organisation"
        }
      ]
    },
    "logos": {
      "type": "array",
      "maxItems": 8,
      "items": {
        "$ref": "#/$defs/Logo"
      }
    },
    "links": {
      "$ref": "#/$defs/Links"
    },
    "legal": {
      "$ref": "#/$defs/Legal"
    },
    "locales": {
      "$ref": "#/$defs/Locales"
    },
    "assetPolicy": {
      "type": "object",
      "required": [
        "remoteLogos"
      ],
      "properties": {
        "remoteLogos": {
          "type": "boolean",
          "description": "false by default; true is the operator's explicit choice to let clients fetch logos from an https location it controls (SOV-1)"
        }
      },
      "additionalProperties": false
    },
    "extensions": {
      "$ref": "#/$defs/Extensions"
    }
  },
  "additionalProperties": false,
  "allOf": [
    {
      "$comment": "an operator pack (example false) carries no placeholder",
      "if": {
        "properties": {
          "example": {
            "const": false
          }
        }
      },
      "then": {
        "$ref": "#/$defs/NoPlaceholderValue"
      }
    },
    {
      "$comment": "NEUTRAL: no organisation-specific names, logos, links, legal text or system codes",
      "if": {
        "properties": {
          "kind": {
            "const": "NEUTRAL"
          }
        }
      },
      "then": {
        "properties": {
          "organisation": {
            "type": "null"
          },
          "logos": {
            "maxItems": 0
          },
          "systemCodes": {
            "maxProperties": 0
          },
          "links": {
            "properties": {
              "help": {
                "type": "null"
              },
              "docs": {
                "type": "null"
              },
              "legal": {
                "type": "null"
              },
              "privacy": {
                "type": "null"
              },
              "support": {
                "type": "null"
              }
            }
          },
          "legal": {
            "properties": {
              "notice": {
                "type": "null"
              }
            }
          }
        }
      }
    },
    {
      "$comment": "NON_PROFIT_STANDARDISED: surfaces carry Nexus standardised system codes",
      "if": {
        "properties": {
          "kind": {
            "const": "NON_PROFIT_STANDARDISED"
          }
        }
      },
      "then": {
        "properties": {
          "systemCodes": {
            "minProperties": 1,
            "additionalProperties": {
              "properties": {
                "code": {
                  "pattern": "^NXS-[A-Z]{3}$"
                }
              }
            },
            "required": [
              "observation",
              "compute",
              "network"
            ]
          },
          "product": {
            "properties": {
              "productName": {
                "pattern": "^NXS-[A-Z]{3}"
              },
              "surfaces": {
                "additionalProperties": {
                  "pattern": "^NXS-[A-Z]{3}"
                }
              }
            }
          }
        }
      }
    },
    {
      "$comment": "government, intergovernmental, enterprise, OEM and company packs carry the operator's own organisation",
      "if": {
        "properties": {
          "kind": {
            "enum": [
              "GOVERNMENT",
              "INTERGOVERNMENTAL",
              "ENTERPRISE",
              "OEM_WHITE_LABEL",
              "COMPANY"
            ]
          }
        }
      },
      "then": {
        "properties": {
          "organisation": {
            "$ref": "#/$defs/Organisation"
          }
        }
      }
    },
    {
      "$comment": "remote logo locations only when the operator opts in",
      "if": {
        "properties": {
          "assetPolicy": {
            "properties": {
              "remoteLogos": {
                "const": false
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "logos": {
            "items": {
              "properties": {
                "remoteUrl": false
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "SchemaVersion": {
      "type": "string",
      "const": "3.1.0"
    },
    "NamePackKind": {
      "type": "string",
      "enum": [
        "NEUTRAL",
        "NON_PROFIT_STANDARDISED",
        "GOVERNMENT",
        "INTERGOVERNMENTAL",
        "ENTERPRISE",
        "OEM_WHITE_LABEL",
        "COMPANY"
      ]
    },
    "Text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
    },
    "LongText": {
      "type": "string",
      "minLength": 1,
      "maxLength": 2000
    },
    "Product": {
      "type": "object",
      "required": [
        "productName",
        "protocolDisplayName",
        "surfaces"
      ],
      "properties": {
        "productName": {
          "$ref": "#/$defs/Text"
        },
        "protocolDisplayName": {
          "$ref": "#/$defs/Text"
        },
        "surfaces": {
          "type": "object",
          "required": [
            "console",
            "studio",
            "developerPortal",
            "nodeAgent",
            "siteCell"
          ],
          "properties": {
            "console": {
              "$ref": "#/$defs/Text"
            },
            "studio": {
              "$ref": "#/$defs/Text"
            },
            "developerPortal": {
              "$ref": "#/$defs/Text"
            },
            "nodeAgent": {
              "$ref": "#/$defs/Text"
            },
            "siteCell": {
              "$ref": "#/$defs/Text"
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "SystemCode": {
      "type": "object",
      "required": [
        "code",
        "title"
      ],
      "properties": {
        "code": {
          "type": "string",
          "pattern": "^[A-Z][A-Z0-9]{1,7}-[A-Z][A-Z0-9]{1,7}$"
        },
        "title": {
          "$ref": "#/$defs/Text"
        }
      },
      "additionalProperties": false
    },
    "Organisation": {
      "type": "object",
      "required": [
        "displayName"
      ],
      "properties": {
        "displayName": {
          "$ref": "#/$defs/Text"
        },
        "legalName": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/Text"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Logo": {
      "type": "object",
      "required": [
        "role",
        "path",
        "digest",
        "mediaType",
        "altText"
      ],
      "properties": {
        "role": {
          "type": "string",
          "enum": [
            "PRIMARY",
            "MARK",
            "FAVICON",
            "PRINT"
          ]
        },
        "path": {
          "type": "string",
          "description": "path relative to the operator's asset root; no scheme, no parent traversal",
          "pattern": "^(?![A-Za-z][A-Za-z0-9+.-]*:)(?!/)(?!.*\\.\\.)[A-Za-z0-9_./-]{1,255}$"
        },
        "digest": {
          "type": "string",
          "pattern": "^sha256:[0-9a-f]{64}$"
        },
        "mediaType": {
          "type": "string",
          "enum": [
            "image/svg+xml",
            "image/png",
            "image/webp"
          ]
        },
        "altText": {
          "$ref": "#/$defs/Text"
        },
        "remoteUrl": {
          "type": "string",
          "pattern": "^https://[A-Za-z0-9.-]+(:[0-9]{1,5})?(/[^\\s]*)?$"
        }
      },
      "additionalProperties": false
    },
    "Link": {
      "description": "https URL or a relative path; never http, a protocol-relative URL or another scheme",
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "string",
          "maxLength": 2048,
          "pattern": "^(https://[A-Za-z0-9.-]+(:[0-9]{1,5})?(/[^\\s]*)?|/(?!/)[^\\s]*|\\./[^\\s]*)$"
        }
      ]
    },
    "Links": {
      "type": "object",
      "description": "operator-provided; each may be null",
      "required": [
        "help",
        "docs",
        "legal",
        "privacy",
        "support"
      ],
      "properties": {
        "help": {
          "$ref": "#/$defs/Link"
        },
        "docs": {
          "$ref": "#/$defs/Link"
        },
        "legal": {
          "$ref": "#/$defs/Link"
        },
        "privacy": {
          "$ref": "#/$defs/Link"
        },
        "support": {
          "$ref": "#/$defs/Link"
        }
      },
      "additionalProperties": false
    },
    "Legal": {
      "type": "object",
      "required": [
        "notice"
      ],
      "properties": {
        "notice": {
          "oneOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/LongText"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "Bcp47": {
      "type": "string",
      "pattern": "^[a-zA-Z]{2,3}(-[a-zA-Z]{4})?(-([a-zA-Z]{2}|[0-9]{3}))?(-([a-zA-Z0-9]{5,8}|[0-9][a-zA-Z0-9]{3}))*$"
    },
    "Locale": {
      "type": "object",
      "required": [
        "tag",
        "rtl",
        "strings"
      ],
      "properties": {
        "tag": {
          "$ref": "#/$defs/Bcp47"
        },
        "rtl": {
          "type": "boolean"
        },
        "strings": {
          "type": "object",
          "description": "message key -> text shown in this locale",
          "propertyNames": {
            "pattern": "^[a-z][a-zA-Z0-9]*(\\.[a-z][a-zA-Z0-9]*)*$"
          },
          "additionalProperties": {
            "$ref": "#/$defs/LongText"
          },
          "maxProperties": 500
        }
      },
      "additionalProperties": false
    },
    "Locales": {
      "type": "object",
      "required": [
        "default",
        "available"
      ],
      "properties": {
        "default": {
          "$ref": "#/$defs/Bcp47"
        },
        "available": {
          "type": "array",
          "minItems": 1,
          "maxItems": 64,
          "items": {
            "$ref": "#/$defs/Locale"
          }
        }
      },
      "additionalProperties": false
    },
    "NoPlaceholderValue": {
      "not": {
        "type": "string",
        "pattern": "\\[[A-Z0-9_]*PLACEHOLDER[A-Z0-9_]*\\]"
      },
      "additionalProperties": {
        "$ref": "#/$defs/NoPlaceholderValue"
      },
      "items": {
        "$ref": "#/$defs/NoPlaceholderValue"
      }
    },
    "Extensions": {
      "type": "object",
      "propertyNames": {
        "pattern": "^[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)+$"
      },
      "additionalProperties": true
    }
  }
}