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

Fix recursively_populate_jsonld failing when given array values with non-dict elements #708

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

brendon-boldt
Copy link

Fixes #698. Adds simple test with multiple, non-dict values in JSON-LD (e.g., {"a": ["b", "c"]}) which fails with the current implementation of recursively_populate_jsonld. Fixes the function so that it passes the test.

Test if recursively_populate_json can handle values that are arrays with
multiple, non-dict elements (e.g., ["a", "b"]).
Change recursively_populate_jsonld such that when it receives non-dicts,
it returns them immediately instead of blindly treating them like dicts.
@brendon-boldt brendon-boldt requested a review from a team as a code owner June 26, 2024 21:07
Copy link

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON LD parsing fails when multiple strings given to FileSet.includes
1 participant