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

Add function-lookup() to default function registry #275

Open
5 tasks
aj-stein-gsa opened this issue Dec 4, 2024 · 2 comments
Open
5 tasks

Add function-lookup() to default function registry #275

aj-stein-gsa opened this issue Dec 4, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request java Pull requests that update Java code
Milestone

Comments

@aj-stein-gsa
Copy link
Contributor

aj-stein-gsa commented Dec 4, 2024

User Story

Per shared interest from @wandmagic and the rest of the FedRAMP Automation Team, I would like us to include function-lookup() to the default function registry for Metapath.

NOTE: This function is not listed as a TODO in the registry as of the current state of DefaultFunctionLibrary.java in develop, which seems odd. I found some Saxonica documentation which explained the legacy function-available() is not what we need for XPath 3.1, but not sure how it evaded Dave's earlier dump of the spec to text, but here we are.

Goals

  • Allow general runtime safety to check for missing functions
  • Allow developers to code "pre-check" constraints with external constraint files to introspect the runtime and gracefully fail when users accidentally check instances against models with older versions of the tool moving forward to know that function is not yet implemented.

(Yes, ironically this function was perhaps the very first one we should have implemented so long ago, but oh well. 🤣)

Dependencies

N/A

Acceptance Criteria

  • All website and readme documentation affected by the changes in this issue have been updated.
  • A Pull Request (PR) is submitted that fully addresses the goals of this User Story. This issue is referenced in the PR.
  • The CI-CD build process runs without any reported errors on the PR. This can be confirmed by reviewing that all checks have passed in the PR.

Revisions

No response

@aj-stein-gsa aj-stein-gsa added enhancement New feature or request java Pull requests that update Java code labels Dec 4, 2024
@wandmagic
Copy link
Contributor

NICE!

@aj-stein-gsa
Copy link
Contributor Author

NICE!

I never thought I would get this excitement about an issue in an open-source project. I guess we have infected you, @wandmagic.

@david-waltermire david-waltermire moved this from To Triage to Ready in Spec and Tooling Work Board Dec 6, 2024
@david-waltermire david-waltermire added this to the v2.2.0 milestone Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request java Pull requests that update Java code
Projects
Status: Ready
Development

No branches or pull requests

3 participants