Skip to content

Commit

Permalink
Merge branch 'main' of github.com:awslabs/smithy-kotlin into feat-kmp…
Browse files Browse the repository at this point in the history
…-targets
  • Loading branch information
lauzadis committed Oct 19, 2023
2 parents 12fc0c2 + 4afd4f6 commit d257b17
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,10 @@ private class XmlMapSerializer(
checkNotNull(mapTrait.entry)
}

val entryNamespace = descriptor.findTrait<XmlNamespace>()
val keyNamespace = descriptor.findTrait<XmlMapKeyNamespace>()
val valueNamespace = descriptor.findTrait<XmlCollectionValueNamespace>()

xmlWriter.writeTag(tagName, entryNamespace) {
xmlWriter.writeTag(tagName) {
writeTag(mapTrait.key, keyNamespace) { text(key) }
writeTag(mapTrait.value, valueNamespace) { valueFn() }
}
Expand Down

0 comments on commit d257b17

Please sign in to comment.