JSON Schema Form: Custom Array?

react-jsonschema-form supports "custom arrays" like so:

{
  "title": "Custom array of strings",
  "type": "array",
  "items": {
    "type": "string"
  }
}

However, when putting this into a Retool JSON Schema Form, I get the following error:

Am I doing something wrong or is this a bug? :sweat_smile:

You're missing type and properties try:

{"type": "object",
  "properties": {
    "listOfStrings": {
      "type": "array",
      "title": "A list of strings",
      "items": {
        "type": "string",
        "default": "bazinga"
      }}}}
3 Likes

Ahh, so the top-level schema must always be an object? Gotcha. Thanks!

2 Likes