Skip to content

Vue-Vanilla OneOfRenderer throws warning "Missing required prop: "rootSchema" " #2265

@davewwww

Description

@davewwww

Describe the bug

In a schema with a oneOf construct, the OneOfRenderer throws this error: Missing required prop: "rootSchema"

{
    "type": "object",
    "properties": {
      "quantity": {
        "oneOf": [{ "type": "string" }, { "type": "number" }]
      }
  }
}

to reproduce: https://codesandbox.io/p/devbox/jsonforms-oneof-error-mng4g8

Expected behavior

No warning should be thrown.

Steps to reproduce the issue

  1. Go to (https://codesandbox.io/p/devbox/jsonforms-oneof-error-mng4g8)
  2. Click on "Show form"
  3. See error at Dev console

Screenshots

No response

Which Version of JSON Forms are you using?

v3.2.1

Framework

Vue

RendererSet

Vanilla

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions