-
Notifications
You must be signed in to change notification settings - Fork 11
feat(input_schema): add isSecret flag into the sting property #335
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
Conversation
…ecret flag into sting property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does it going to work with other options such as:
editor? We could display the correct editor later on in the modal? This is useful, for example, for some secret JSON values.- we should probably disable max/min length as it could collide with encrypted data or no?
|
@mtrunkat As Franta mention we can use draf-07 I was thinking only for draft-04 🤦 |
|
@drobnikj JSON schema now supports if-then-else (since draft-07), maybe that would work? |
|
Also, if the conditional fields in the schema are possible, maybe we should disable |
|
I have quite hard times finding way how to do it. It is a little bit breakneck, but it should work. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uff, nice job!
I thought it would be easier, but the additionalProperties rule is making it complicated.
Add support for secure input values by adding
isSecretflag into the sting propertyThe flag is optional, so the change is not breaking.
EDIT:
I improved validation, if isSecret is
truefields:['minLength', 'maxLength','default', 'prefill', 'pattern']are not in string type definition and editor is only enum for
['textfield', 'textarea', 'hidden']