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
"refid" attribute on "includes" (incType) XML nodes should be marked optional #10212
Comments
…es should be marked optional The refid is conditionally added so this should also be reflected in the xsd file
Sounds all very reasonable. |
Yeah, fair. I encountered the code in a somewhat complex set up and lazily hoped the code references would be enough. Sorry about that. If you look at <includes local="yes">my_other_file.h</includes> Which is an |
issue #10212 "refid" attribute on "includes" (incType) XML nodes should be marked optional
Code has been integrated in master on GitHub (please don't close the issue as this will be done at the moment of an official release). |
This issue was previously marked 'fixed but not released', |
Describe the bug
The
incType
refid
attribute is not marked withuse="optional"
.doxygen/templates/xml/compound.xsd
Lines 101 to 108 in 682b594
Expected behavior
It is marked with
use="optional"
as it is only written conditionally:doxygen/src/xmlgen.cpp
Lines 1290 to 1293 in 682b594
Screenshots
None.
To Reproduce
The issue is visible when creating a parser for the XML based on the XSD which expects non-optional attributes to be there. This is done in Rust as part of the Docleaf project: https://github.com/docleaf-labs/docleaf
Version
I'm using 1.9.7 locally but the issue is visible in the code on
main
(if I correct in my interpretation of the code/xsd.)Stack trace
None
Additional context
None
The text was updated successfully, but these errors were encountered: