Ironclad / rivet

The open-source visual AI programming environment and TypeScript library
https://rivet.ironcladapp.com
MIT License
2.77k stars 243 forks source link

[Bug]: Cannot create object with properties "type" and "value" #244

Closed vpckso closed 11 months ago

vpckso commented 11 months ago

What happened?

When an object have "type" and "value" properties, it'll throw error "Invalid value"

What was the expected functionality?

Rivet did not work as expected!

Describe your environment

Ubuntu Linux

Relevant log output

ERROR: INVALID VALUE:
{
  "type": "object",
  "value": {
    "type": 1,
    "value": 2
  }
}

Relevant screenshots

rivet_object

Code of Conduct

abrenneke commented 11 months ago

Ah yeah, I added this as a safeguard so that nested types wouldn't accidentally get created. That code can probably be removed now.