react-jsonschema-form icon indicating copy to clipboard operation
react-jsonschema-form copied to clipboard

fix 3711 anyOf/oneOf remove old fields from previous schema

Open cwendtxealth opened this issue 1 year ago • 5 comments

Reasons for making this change

Fixes #3711 - removing old undefined fields when switching to different oneOf/anyOf schema

Checklist

  • [ ] I'm updating documentation
  • [x] I'm adding or updating code
    • [x] I've added and/or updated tests. I've run npm run test:update to update snapshots, if needed.
    • [ ] I've updated docs if needed
    • [ ] I've updated the changelog with a description of the PR
  • [ ] I'm adding a new feature
    • [ ] I've updated the playground with an example use of the feature

cwendtxealth avatar Jun 01 '23 17:06 cwendtxealth

Hello, any update on this fix? Thanks!

linpc avatar Aug 25 '23 14:08 linpc

@linpc This is a very tricky problem that @cwendtxealth hasn't quite figured out how to fix yet.

heath-freenome avatar Aug 29 '23 19:08 heath-freenome

Hey @cwendtxealth, @heath-freenome , any predictions on when this might get merged? No pressure, but our workaround for this is giving us some performance issues, so we need to decide if it's worth optimizing.

michal-kurz avatar Feb 08 '24 18:02 michal-kurz

Hi @michal-kurz , would you mind sharing your workaround?

fdallmeier avatar Mar 28 '24 09:03 fdallmeier

thank you all, just a doubt: it will work on conditionally remove a field with "if" without anyOf or oneOf?

Bonfims avatar Apr 24 '24 14:04 Bonfims