{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-reference-tables-table-metadata-schema.json",
  "title": "ReferenceTableMetadata",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/observeinc-referencetables-api-openapi.yml#/components/schemas/ReferenceTables-TableMetadata",
  "type": "object",
  "properties": {
    "label": {
      "type": "string",
      "description": "The label of the reference table."
    },
    "description": {
      "type": "string",
      "default": "",
      "description": "The description of the reference table."
    },
    "primaryKey": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The primary key of the reference table."
    },
    "labelField": {
      "type": "string",
      "description": "The field that should be used for the OPAL label."
    }
  },
  "required": [
    "label"
  ]
}