Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify path handling to consistenly use JSON Pointer #2346

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

lucas-koehler
Copy link
Contributor

@lucas-koehler lucas-koehler commented Jun 14, 2024

Unify path handling to use JSON Pointer as path format consistently. No longer use lodash paths (dot separated paths) to resolve data.

Besides unifying pointer usage, this reworks the Paths.compose util to accept one base json pointer and an arbitrary number of segments to append. These can also be number now that are automatically converted.

closes #2153
supersedes #2168

Copy link

netlify bot commented Jun 14, 2024

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 99a4590
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/66e7e9aad106850008d15eb8
😎 Deploy Preview https://deploy-preview-2346--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@coveralls
Copy link

Coverage Status

coverage: 83.244% (-0.09%) from 83.337%
when pulling c4507e8 on issues/2168-path-to-json-pointer
into c00b664 on master.

@coveralls
Copy link

Coverage Status

coverage: 83.244% (-0.09%) from 83.337%
when pulling e68d3ef on issues/2168-path-to-json-pointer
into c00b664 on master.

@lucas-koehler lucas-koehler force-pushed the issues/2168-path-to-json-pointer branch from e68d3ef to 484bec7 Compare July 4, 2024 12:43
@coveralls
Copy link

Coverage Status

coverage: 83.172% (-0.09%) from 83.265%
when pulling f20ee31 on issues/2168-path-to-json-pointer
into 0fd6329 on master.

@lucas-koehler lucas-koehler force-pushed the issues/2168-path-to-json-pointer branch from f20ee31 to aef686f Compare August 21, 2024 15:26
@coveralls
Copy link

coveralls commented Aug 21, 2024

Coverage Status

coverage: 81.644% (-0.09%) from 81.733%
when pulling 99a4590 on issues/2168-path-to-json-pointer
into 8c4b2f0 on master.

@lucas-koehler lucas-koehler force-pushed the issues/2168-path-to-json-pointer branch from aef686f to 426da2c Compare August 28, 2024 13:42
LukasBoll and others added 7 commits September 16, 2024 10:16
- Rework Paths.compose to accept a JSON pointer and a variable number of unencoded segments to add
- Add unit tests for Path.compose
- Increase usage of Paths.compose across renderers
- Remove obsolete leading slashes of segments
- Allow handing in numbers (indices) to path composition
- improve migration guide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unify path handling
3 participants