Closed mping-exo closed 8 months ago
Consider this:
(p/defmapper mapper [XXX$ListVolumesResponse XXX$VolumeMetadata] :key-name-fn u/->kebab-case) (let [x (-> (XXX$ListVolumesResponse/newBuilder) (.setVolumeId "XXXXXX") (.setVolumeMetadata (-> (XXX$VolumeMetadata/newBuilder) (.setCurrentSnapshotId 1))) (.build))] (p/proto->proto-map mapper x)) => {:volume-id "XXXXXX", :volume-metadata {:currentsnapshotid 1}}
Shouldn't the embedded message volume-metadata key be called current-snapshot-id instead?
volume-metadata
current-snapshot-id
Nevermind, the protobuf field is defined as currentSnapshotId. Closing
currentSnapshotId
Consider this:
Shouldn't the embedded message
volume-metadata
key be calledcurrent-snapshot-id
instead?