[OLINGO-1166] Fix serialization of annotations for enum members in the CSDL
Signed-off-by: Christian Amend <christian.amend@sap.com>
This commit is contained in:
parent
0a2ebd7953
commit
16afaa6f68
|
@ -934,7 +934,7 @@ public class MetadataDocumentXmlSerializer {
|
|||
writer.writeAttribute(XML_UNDERLYING_TYPE, getFullQualifiedName(enumType.getUnderlyingType(), false));
|
||||
|
||||
for (String memberName : enumType.getMemberNames()) {
|
||||
writer.writeEmptyElement(XML_MEMBER);
|
||||
writer.writeStartElement(XML_MEMBER);
|
||||
writer.writeAttribute(XML_NAME, memberName);
|
||||
|
||||
EdmMember member = enumType.getMember(memberName);
|
||||
|
@ -943,6 +943,7 @@ public class MetadataDocumentXmlSerializer {
|
|||
}
|
||||
|
||||
appendAnnotations(writer, member);
|
||||
writer.writeEndElement();
|
||||
}
|
||||
|
||||
writer.writeEndElement();
|
||||
|
|
Loading…
Reference in New Issue