Skip to content

[SchemaRenderer] SchemaKeyValueEditor renders "[object Object]" for complex additionalProperties values #796

Description

@likeamike

EPAM AI DIAL UI Kit version

0.12.0

How to reproduce

Render DialSchemaRenderer with a schema where a property is type: object with no fixed properties, and additionalProperties is a complex schema (an object, a oneOf, or a $ref) rather than a simple type like string/number. For example:

{
  properties: {
    indexes: {
      type: 'object',
      additionalProperties: {
        discriminator: { propertyName: 'type', mapping: { chunk: '#/$defs/ChunkIndexConfig' } },
        oneOf: [{ $ref: '#/$defs/ChunkIndexConfig' }],
      },
    },
  },
}

Add a map entry with a value like { type: 'chunk', display_name: 'My Index' }.

Actual result

Each entry renders as Key: <name> / Value: [object Object] instead of an expandable form for the referenced schema's fields.

Expected result

The value should render as an expandable form recursing into the referenced schema's own fields — the same way SchemaArrayEditor already handles arrays of discriminated objects — instead of being stringified.

Confidential information

  • I confirm that do not share any confidential information

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions