allow type to be a single string instead of always an array

Instead of always having to do:

```
-      "type" : [
-        "string"
-      ],
```

We can clean up our json a lot by doing:


 ` "type" : "string"`