{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "enum": {
      "anyOf": [
        {
          "type": "number",
          "enum": [1, 2, 3, 4]
        },
        {
          "type": "string",
          "enum": ["something", "anything"]
        }
      ]
    }
  }
}
