Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sneaker102 opened this issue Jun 5, 2024 · 1 comment
Open

Comments

@sneaker102
Copy link

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

@sneaker102
Copy link
Author

Also if the property "order" is an empty array nothing will be displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant