-
Notifications
You must be signed in to change notification settings - Fork 1
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
Provide "validate" method #4
Comments
@opoudjis could you help describe the cases you need for validation?
Ones I can think of:
|
What I need, Ronald, is content in the spec so I know what the hell this gem does, because I don't, and I'm not going to waste your clients' time trying to work it out. I don't care what validation functionality you want to add to this gem, there is no validation in spec of what it already does. I misunderstood what you meant by validation here. But if you're going to start developing code for this project, then you are going to be held to a far greater standard than this:
|
And if you seriously want to reimplement mn-requirements/modspec from scratch, including all its validation, without talking to me, the spec files of mn-requirements are publicly available. Right now, this is a naive attempt to reimplement mn-requirements/modspec/metanorma, with no idea about validation, no idea about Presentation XML, no idea about the cyclical dependencies and the conflict between anchors and identifiers. Just a bare shell of Shale on top of an object model. It's unusable, it does only the easy bit of mn-requirements/modspec, it is not thought through, and I will ignore it. |
It will never have anything to do with Presentation XML. You mentioned about the “easy bits”, so what are the difficult bits? |
You need to say what exactly this code is meant to input and output, with test code, and why, and what bits of the existing mn-requirement code it is meant to replace. I don't know what you want this code to do, and I don't trust you. Modspec Validation functionality is in https://github.com/metanorma/mn-requirements/blob/main/lib/metanorma/modspec/validate.rb |
Based on the content provided, this Ruby file implements several validations for ModSpec requirements. Here's an overview of the key validations performed:
The code uses a logging mechanism to report validation issues, providing details about the nature of the problem and the affected requirements. This validation helps ensure the integrity and consistency of the ModSpec requirement structure, particularly in terms of relationships between different types of requirements and conformance tests. |
We need to validate ModSpec instances
The text was updated successfully, but these errors were encountered: