webgme / svelte-jsonschema-form

A Svelte component for generating forms from JSON Schema.
MIT License
32 stars 2 forks source link

Checkboxes for optional object properties with fixed values #4

Closed brollb closed 1 year ago

brollb commented 1 year ago

If an object has optional properties, it should be able to be explicitly removed via a checkbox. I thought this was already in the main branch (as @romancow has demoed it) but I don't see it on the github pages version.

romancow commented 1 year ago

There was never a way to "explicitly" remove optional fields. Currently to not have an optional value, you just leave it empty/blank.

brollb commented 1 year ago

Oh, I was referring to the checkboxes on the accordions that you demoed a little while back. Wasn't that allowing you to remove those keys from the object or did I misunderstand it? Has that been merged into the main branch?

romancow commented 1 year ago

Yes, that should be. But I haven't created a new "release" on github yet, which is what triggers the pages update. I can do that.