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

Enhance validate command to perform Metaschema and constraint-based validation of modules #231

Open
5 tasks
aj-stein-gsa opened this issue Nov 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@aj-stein-gsa
Copy link
Contributor

aj-stein-gsa commented Nov 2, 2024

User Story

As a developer of Metaschema-based software, in order to find precise modeling errors XML Schema based validations cannot find, I would like the metaschema-cli validate ... to natively used the Metaschema model and constraint-based validation of models.

NOTE: This request came from a consideration during a review of a code cleanup in #230 (comment).

Goals

  • More precise error detection for Metaschmea models
  • More precise, informative error reporting upon detection that is more helpful than XML Schema validation

Dependencies

No response

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 the enhancement New feature or request label Nov 2, 2024
@aj-stein-gsa aj-stein-gsa mentioned this issue Nov 2, 2024
8 tasks
@david-waltermire
Copy link
Contributor

@aj-stein-gsa Would you provide more details around how you would like this to work? How do you see the command changing as far as arguments? What behavioral change should be implemented?

@aj-stein-gsa
Copy link
Contributor Author

@aj-stein-gsa Would you provide more details around how you would like this to work? How do you see the command changing as far as arguments? What behavioral change should be implemented?

Sure thing. I may have said it in an overly complex way, but what I mean is that this command would take any Metaschema module and validate it against the Metaschema constraints for the modules themselves to report any constraint violations, not just XML schema validation. That is currently not done, correct? I know you did some refactoring but I could not find that in the code last I checked.

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

No branches or pull requests

2 participants