Repository navigation
Conversation
- Treat dotted map keys as literal keys when reading and updating values - Keep validation errors associated with the corresponding map entry - Test that the Vaadin write value converter displays both values and edits only the selected entry
- Reuse scoped rendering for bracketed map keys and dotted schema properties - Use schema property names when adding optional fields - Verify that edits and additions preserve the exact serialized keys
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
The Vaadin structured form can interpret characters in literal JSON keys as path syntax. This PR fixes three cases:
{"29.5": 237, "30.0": 241}. Editing29.5updates that exact key and leaves30.0unchanged.[0]now displays its value and saves edits under[0]. Editingsensor[0]updates the literal key without creating asensorarray.sensor.idnow appears in the form and can be edited. Add Parameter createssensor.nameunder its full schema property name.The Agent Link’s read-side Value converter (
valueConverter) and Write value converter (writeValueConverter) use the same schema and renderer, so this fix applies to both. The converter regression test exercises the write-side form.The shared renderer scopes these values so JSON Forms can edit them while preserving the original keys in the serialized object. The backend converter behavior is unchanged.
Targets the Vaadin migration branch from #3371.
Verification
or-json-formscomponent testsgit diff --check. ESLint reported seven pre-existing findingsChecklist