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

Implementation of map:entry in default function library uses wrong return type #299

Closed
aj-stein-gsa opened this issue Dec 18, 2024 · 1 comment · Fixed by #300
Closed
Assignees
Labels
bug Something isn't working java Pull requests that update Java code
Milestone

Comments

@aj-stein-gsa
Copy link
Contributor

Describe the bug

As of commit 8b524d4 in develop, use of the map:entry function in the Metapath default function library implements the wrong return type, leading to a variety of Metapath processing errors in constraints.

Who is the bug affecting

Developers and engineers using map:entry and other related map-related functions for processing model-bound documents with Metaschema tools, particularly for constraints.

How do we replicate this issue

  1. Use the map:entry function.
  2. Debug the output of the function and observe a sequence of items that are not resulting in a meta:map(*) type.

Expected behavior (i.e. solution)

Map entries are properly created per the the related specification.

Other comments

No response

@aj-stein-gsa aj-stein-gsa added bug Something isn't working java Pull requests that update Java code labels Dec 18, 2024
aj-stein-gsa added a commit to aj-stein-gsa/metaschema-java that referenced this issue Dec 18, 2024
@aj-stein-gsa aj-stein-gsa moved this from To Triage to Ready in Spec and Tooling Work Board Dec 18, 2024
@aj-stein-gsa aj-stein-gsa self-assigned this Dec 18, 2024
@aj-stein-gsa aj-stein-gsa moved this from Ready to In progress in Spec and Tooling Work Board Dec 18, 2024
@aj-stein-gsa aj-stein-gsa moved this from In progress to In review in Spec and Tooling Work Board Dec 18, 2024
@aj-stein-gsa
Copy link
Contributor Author

@david-waltermire I also reviewed all the function signatures for map: functions in the spec and they all look good after I double-checked. I set up #301 because that function is missing, but that is a different conversation for a different day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working java Pull requests that update Java code
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants