{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rig.works/schemas/rig.organisation.identity.schema.json",
  "title": "rig.organisation.identity",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "lei": {
      "type": "string",
      "pattern": "^[A-Z0-9]{20}$",
      "description": "ISO 17442 LEI (ISO 20022 LEI)."
    },
    "bic": {
      "type": "string",
      "pattern": "^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$",
      "description": "ISO 9362 BIC (ISO 20022 AnyBIC)."
    },
    "registrationNumber": {
      "$ref": "./_defs.schema.json#/$defs/string"
    }
  },
  "description": "Organisation legal identifiers. Field meanings follow ISO 20022 OrganisationIdentification. Name is rig.meta.named.",
  "minProperties": 1
}
