{
  "$schema": "http://json-schema.org/draft-06/schema#",
  "title": "User Custom Fields Schema",
  "description": "Defines how custom fields can be specified on a user. Allows alphanumeric numbers and underscores.",
  "type": "object",
  "patternProperties": {
    "^[a-zA-Z0-9_]{1,64}$": {
      "$schema": "http://json-schema.org/draft-06/schema#",
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1024
        },
        {
          "type": "boolean"
        },
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "additionalProperties": false,
  "maxProperties": 100
}