Skip to content

Commit bf0e314

Browse files
committed
fix(core/protocols): return early for unit schema in xml deser
1 parent 3e08cf6 commit bf0e314

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/core/src/submodules/protocols/xml/XmlShapeDeserializer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ export class XmlShapeDeserializer extends SerdeContextConfig implements ShapeDes
5858

5959
public readSchema(_schema: Schema, value: any): any {
6060
const ns = NormalizedSchema.of(_schema);
61+
62+
if (ns.isUnitSchema()) {
63+
return;
64+
}
65+
6166
const traits = ns.getMergedTraits();
6267

6368
if (ns.isListSchema() && !Array.isArray(value)) {

0 commit comments

Comments
 (0)