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 33d669b
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/671a4ddd6d3a6c0008105c63
😎 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 requested a review from sdirix June 14, 2024 09:58
@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.639% (-0.09%) from 81.728%
when pulling 33d669b on issues/2168-path-to-json-pointer
into 08bb7df 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
@lucas-koehler lucas-koehler force-pushed the issues/2168-path-to-json-pointer branch from 426da2c to 99a4590 Compare September 16, 2024 08:17
LukasBoll and others added 7 commits October 24, 2024 15:38
- 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
@lucas-koehler lucas-koehler force-pushed the issues/2168-path-to-json-pointer branch from 99a4590 to 33d669b Compare October 24, 2024 13:38
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