Skip to content

Ordered schema with properties that have title will throw errors #179

@sneaker102

Description

@sneaker102

Using the version 1.0.3 with the order capability I encounter the next bugs:
Given schema: { "type": "object", "order": [ "version", "name" ], "properties": { "name": { "type": "string", "title": "Name title" }, "version": { "type": "number", "title": "Version title" } } }
Will throw this error :
image
image

And given this schema { "type": "object", "order": [ [ "version", "name" ] ], "properties": { "name": { "type": "string", "title": "Name title" }, "version": { "type": "number", "title": "Version title" } } }
Will throw this error:
image
image

This is because the properties keys are the name of a specific child schema and the order and required arrays are using this keys but inside the BaseComponent you modify the name by assigning the title and the getState function from ObjectComponent will return undefined.

image
image
image

Metadata

Metadata

Assignees

No one assigned

    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