Closed ychyrski closed 7 years ago
This constraint can not be modeled with a json schema. You can fix the values to only a valid set (using enum), or you can leave it open (without enum) , but you can not have both. Said that, you can create your own json schema extension for that, and use your own keyword instead of 'enum', for example 'preferred', and then add a custom decorator to the library to achieve the desired graphical effect.
For custom decorator examples see :
thanks!
Having this schema
I would like to render a dropdown componet which would contain values from the enum section(human,cat,dog) and provide end user with the possibility to enter its own value. Any insights how to do so?