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
Support readOnly
and writeOnly
attribute of json-schema
#33
Comments
Oh thats a good point! I got a few ideas/thoughts here:
|
readOnly
and writeOnly
attribute of json-schema
Good points. I think we should check out some comparable libraries how they implemented those two attributes. |
react-jsonschema-form:
Not so many support readonly, in a few i didn't found the actual implementation.
|
I've checked several Libs in different languages. "writeOnly" is indeed completely ignored. My proposition on controls with readOnly:
I don't think we need to go further and build also checks inside the store that really nobody can change any readOnly-Value. |
@elbakerino Update to writeOnly-Attribute: I'm going to implement that in ds-bootstrap. |
For Doesn't do anything for |
Further optimized |
New
|
Scope of required: per design system/widget
Summary
We should support the "readOnly" Attribute of the json schema to allow disabling of controls:
https://github.com/json-schema-org/json-schema-spec/blob/master/meta/meta-data.json#L24-L27
Examples
My current implementation in ds-blueprint:
As readOnly means you cannot modify an input, I make use of the "disabled" attribute on the blueprintjs-components:
Example-Implementation
Motivation
The text was updated successfully, but these errors were encountered: