-
Notifications
You must be signed in to change notification settings - Fork 9
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
Schema converter has code comment that omits schema name and version #62
Comments
I think this is a touchup with immediate positive impact; indeed it falls into the 'sooner the better' category. @galtm assuming a clear front on your side could you expedite this correction in a separate (standalone) PR against This sounds like option b), which I like very much. Thank you! |
Sure, I'll do that. Yes, it's option b). |
Created pull request #64, putting the test near the XSLT (which was one option mentioned in discussion #63). |
Fixed via #64 |
Describe the bug
I think the
src/converter-gen/xml-to-json/produce-xml-converter.xsl
is looking for metadata in the wrong place, so the schema name and version will be omitted from the comment in the generated XSLT file.The line that says
should have
metadata/
inserted in two spots:Who is the bug affecting?
Anyone who looks at the code for the XML-to-JSON converter that gets generated using the XSLT pipeline. The mistake is in a code comment, so usage of the converter is not affected.
What is affected by this bug?
The code comment is less informative than it's supposed to be. For example:
instead of
When does this occur?
Anytime the XML-JSON or JSON-to-XML converter generator is used, I think.
How do we replicate the issue?
{What are the steps to reproduce the behavior?
models_metaschema.xml
from the metaschema repo to themetaschema-xslt/src/converter-gen
directory in this repo.Line 83 in
output.xsl
is missing information.Expected behavior (i.e. solution)
That comment line should indicate the name and version of the metaschema.
Other Comments
I am working on unit tests in this area of the code, so I can include the fix in an eventual pull request for tests. If you want me to do that, let me know whether I should
a) Wait until I am done with a batch of tests or
b) Make a pull request for this fix as soon as I have a minimal test file that confirms the bug fix
The text was updated successfully, but these errors were encountered: