I have an **existing JSON data feed** between multiple systems which I **do not control** and **cannot change**. I have been tasked with writing a schema for this feed. The **existing JSON** looks in part like this:

```
 "ids": [
            { "type": "payroll", "value": "011808237" },
            { "type": "geid",  "value":  "31826" }
           ]

```

When I try to define a JSON schema for this, I wind up with a scrap of schema that looks like this:

```
"properties": {
    "type": {                   <====================== PROBLEM!!!!
        "type": "string",
        "enum": [ "payroll", "geid" ]
    },
    "value": {
        "type": [ "string", "null" ],
        "pattern": "^[0-9]*$"
    }
}

```

As you might guess, when the JSON validator hits that "type" on the line marked "PROBLEM!!!" it gets upset and throws an error about how type needs to be a string or array.