You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to dynamically update the schema of my editor, enum content to be precise. I have a configuration page where I need to select from list of files that constantly changes and I get the list of the files from API as a JSON list. I haven't found any way to dynamically add any value inside the enum while the editor is loaded.
{"title": "json schema example","type": "object","properties": {"string": {"type": "string","description": "This is an example schema.","enum": "[]"<-----HereIneedtoaddsomevaluesaftertheeditorisloaded.}}}
The text was updated successfully, but these errors were encountered:
KodzghlyCZ
changed the title
How to dynamically update editor schema
Dynamically updating editor schema
Feb 26, 2024
I think what you want is the DescribedBy editor for this. I'm currently also looking at doing this same thing, though details on its implementation are a little lacking. Also the demo is broken as of #1316.
General information
I need to dynamically update the schema of my editor, enum content to be precise. I have a configuration page where I need to select from list of files that constantly changes and I get the list of the files from API as a JSON list. I haven't found any way to dynamically add any value inside the enum while the editor is loaded.
The text was updated successfully, but these errors were encountered: