Provide support to change jdoc of "simpleContent" attributes
Closed this issue · 1 comments
ahmad2702 commented
Lets say, we have the following xsd snippet:
<xsd:complexType name="File">
<xsd:annotation>
<xsd:documentation>
My jdoc for the File class
</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:annotation>
<xsd:documentation>
My jdoc for my "value" attribute
</xsd:documentation>
</xsd:annotation>
<xsd:extension base="xsd:base64Binary">
<xsd:attribute name="id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The ID of this file
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
And from this xsd file we can generate our proto file using schema2proto-maven-plugin:
// My jdoc for the File class
message File {
// The ID of this file
string id = 1;
// SimpleContent value of element
bytes value = 2;
}
Problem: We get the wrong jdoc for the "simpleContent" attribute. I have found that this jdoc was hard coded into no.entur.schema2proto.generateproto.SchemaParser
. Please provide support to change the jdoc of "simpleContent" attributes.
seime commented
Most likely fixed, ancient XSOM package hides this value well