Issue in Displaying ZOD Schema in Instructor Node

While adding the Output Schema (Zod JSON) in Generate JSON node, it gives an error and does not allow to add an array of objects or array of arrays. When we try to add an array of any collection, it does not allow to name that objects name and does not display the same.

Steps to Reproduce

In the flow editor, add the generate JSON node and add the output schema as the following :

{
  "merging_indexs": {
    "type": "array",
    "items": {
      "type": "array", 
      "items": {
        "type": "number"
      } 
    }
  }
}

This does not allow the same to appear in the schema.

Expected Results

This should ideally allow to generate an array of arrays, with each item in the inner nested array to be of number type and name the following.

Actual Results

This currently displays this and does not allow to add or see beyond this partial information.

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

πŸ› Report Bug

Date

9 months ago

Author

Dhruv Pamneja

Subscribe to post

Get notified by email when there are changes.