Tobias Munk
Tobias Munk
@germanbisurgi Should we also trigger validation for `keyUp` when validation is `always`? Related: - https://github.com/json-editor/json-editor/issues/1290
Try `no_additional_properties: true`.
And how about `keep_oneof_values: false`. @germanbisurgi This version is missing in the demo but available in the playground, right?
> @rmonnerat, do you have an idea why tests fail? (see e.g. https://github.com/json-editor/json-editor/actions/runs/6868513133/job/18698471271?pr=1423) I triggered the failed builds again, let's see if this was just a hickup.
Please provide an example link and a bit more detailed explanation (Actual/Expected).
It's not planned from our side, if you can come up with a solution, we'll happily take a look.
They way @germanbisurgi described in the other ticket (pre-create JSON) is IMHO the way to go. Another more hacky way would be just to click the "Add" button programmatically, but...
> if adding the fieldOne, the depender2 is not displayed automatically From a UX standpoint I understand the issue, but logically, since you're using `defaultProperties` why should `depender1/2` become selected...
Currently the only way would be using `show_opt_in`, see [example](https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNShYUbFUIBBeAAIwnbuLZRBEXSnZceCiFMhUpsGhuIwq2ACYAtVzBPLR1CABVVQ18qIjIRbChDIm8/BUtrQkQoKRh4AHMQAF82FJ9fAHl4G00YbRsQAElDRGVRP0M8KkMVMgKqX0MoMEMAchIwUfSrBuzcgoUqeBE6VABtYjBgtjwyKRAAXTYYuITxW139kpAY63gYqQBGELqw22bbpcGEZNTK6qGIy6YwmUwsMyyOTyhTYSxW6xA2GkagUMAgiHhR3A0DgSE8n3uSww3mQaC85SqDQmxSK1wJDwATC96oQPlQ7t8jGU/JTAZ1uqNLmCQBlZlCFrDlqsUBtfGAkfs2Ig6oc2JBYAhSaB6USSZ5uf8GpcabTrq0wBReK5nFJSSA8lBXGQeLj0qoGIQ8FsoHMyBAACwKKRUACOIhgwd8vDwgl4J3iiVQcWwiCoxxgiAgAljwbDEYGvBwgiTclTSralvVvDyqByIjTIEkvDIvl8dVxcl4Thcbj1KGTZZAZA4ZAAHiWUw224gyHgdFa23wOLR4BPB9PZ/OsNgBOibAOpxnN1Qu85rL2PP3S4eZ3OT3spEJm621zfj82pI+c1RpA9X+nb3nB8nxiHRHX/EAlnfYDYywCBiyvSc2Bg3gsHgHJ5UQXhhggCCNzvD8vzjHwqEdZsd14ZwKFJA8AOgz8QJIsiBGySiLVfWkgA=). Also, I do not really see a way to implement the behavior you want, but feel free to submit a...
@fdeuze We ran into a similar problem, although not 100% the same. But nonetheless, see this [example](https://json-editor.github.io/json-editor/?data=N4Ig9gDgLglmB2BnEAuUMDGCA2MBGqIAZglAIYDuApomALZUCsIANOHgFZUZQD62ZAJ5gArlELwwAJzplsrEIgwALKrNShYUbFUIAhKgHMy8QwqiCIulOy48FUqgEcRMRwBNUAbRCSo1eHcYMwBdNggpSCopWBoNXzB/KkDg+IsrQjwwMB0TBRIZMnEbFW4AayyADxAAXzY8IykRZPcRU14yqhh4XgbjUzTLa0UoKW6zNgLZYpAoKkryRzIFSFgEZDQQdyorQOSMGDjNvwCgsxQiOUQqGtu2UaoiIgg2sr5pYs0hwkRR8ZXoHAkPFtrttvADkdQCcWqkUKNmrc6iA6GAjLhSrw5jJutYvhkbGQpFIhAo2jAXFQAJJzOgbBFUNh0bo0tQbACMTLIlVZdNQAGY2DBaRt8cNfmMBpNpNNCO4ilRYAwALTYMAYOS1NirIGirY7Fr7Q56mEpc4MpFsMgiRCGKgUMhUZTYbFY6LM+CDAkjSUTEAOqAqNLu3GEVHozCqN04+C6ZHJER0ADKoikGGG2I9um1gPWIINewhxviprOqAtdxAEUSYDKOWwvEMYjIKmxXvFfylxBlRUIcwWRKoyxza2Bm1BhqLUJA1tt9sdztdme65aaN0r1agtfrvA4ZAIm3SHd9+R7M37iyHANHeonhchetndodTpd0WjHtXiMtIBgRHi1ZWDExbHIkpxwqAWBIMUFbIlAqiepsjguG4VCeCgPilqk9yOE8LzwG8vAfAo4aGBiUbLrGChPvOr5LiGnrhJEW51tgDZNuQrbRAom7bmxu77iAITxtg1zxMhrgeN4CRJGaCh9GugRtIYHRdD0fQmKElaIMoYAULw0SRFIGy/vA2ItqO5iqAwmTZFAEpkBAAAstQ1EAA===) for some inspiration how to solve the dependeny problem in conjunction with `if-then-else`...