Map Structured Data Definition and Object Definitions in openAI Transform Text to Structured Data module

I keep running into the error

BundleValidationError

Validation failed for 2 parameter(s).

  • Invalid collection in parameter ‘parameters’.
  • Invalid collection in parameter ‘objectDefinitions’.

I map a json like this to the Structured Data Definition

{
  "parameterName": "parameter1",
  "description": "description of parameter 1",
  "dataType": "Text"
},
{
  "parameterName": "parameter2",
  "description": "description of parameter 2",
  "dataType": "Text"
},
{
  "parameterName": "attributes",
  "description": "description of attributes",
  "dataType": "Object",
  "definitionName": "attributes_object"
},
{
  "parameterName": "category",
  "description": "category object description",
  "dataType": "Object",
  "definitionName": "category_object"
}

and a json like this to the Object Definitions:

{
  "objectName": "attributes_object",
  "description": "Details der Attribute für Zimmerpflanzen.",
  "properties": [
    {
      "parameterName": "attribute1",
      "description": "description of attribute1",
      "dataType": "Number"
    },
    {
      "parameterName": "attribute2",
      "description": "description of attribute2",
      "dataType": "Boolean"
    },
    {
      "parameterName": "attribute3",
      "description": "description of attribute3",
      "dataType": "Text"
    }
  ]
},
{
  "objectName": "category_object",
  "description": "category object description",
  "properties": [
    {
      "parameterName": "category1",
      "description": "description of category1",
      "dataType": "Array (text)",
    },
    {
      "parameterName": "category2",
      "description": "description of category2",
      "dataType": "Array (text)",
    },
    {
      "parameterName": "category3",
      "description": "description of category3",
      "dataType": "Array (text)",
    }
  ]
}

I havent found the documentation for the maped fields anywhere, on how the input has to be structured. Do any of you guys know of a solution, or resourcces, that point me into the right direction?

Hello @cejay,
Instead of sharing your issue in text format please share it with a screenshot. Which is easy to understand.

If you want to share just JSON data only then share it as a JSON file or surrounded like using backtick `your json data`

Output: your json data

@dilipborad Thank you for your Feedback! I have edited the Post to include a Screenshot and edited the layout for clearity of the JSON Inputs.

1 Like

I also need help with this use case, following!