Skip to content

Property with reference is not rendered #2187

@KIC

Description

@KIC

Describe the bug

While the address renders fine, given the json schema below, the parent does not render at all.

type: "object",
definitions: {
  Client: {
      "address": {
          "type": "array",
          "items": {
              "$ref": "#/definitions/Address"
          }
      },
      "parent": {
          // https://jsonforms.io/docs/tutorial/multiple-forms#interlinked-inputs
          "$ref": "#/definitions/SearchableObject/properties/a_very_special_field"
          //"$ref": "#/definitions/SearchableObject"
          //"type": "object"
          //items: {"$ref": "#/definitions/SearchableObject"}
          //item: {"$ref": "#/definitions/SearchableObject"}
      }
  },
  SearchableObject: {
      "type": "object",
      "properties": {
          "a_very_special_field": {
              "type": "integer"
          }
      },
      "required": []
  },
 properties: {
    "Client": {
        "$ref": "#/definitions/Client"
    }
}

As soon as I turn the parent into an array field just like the address it renders fine again (but of course is an array which is not what I need).

Expected behavior

Render the Sub-Form for the parent object like for array fields

Steps to reproduce the issue

Render form using the jsonschema above und leave the uischema undiefined.

Screenshots

No response

In which browser are you experiencing the issue?

Google Chrome

Which Version of JSON Forms are you using?

3.1.0

Framework

React

RendererSet

Material

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions