Skip to content

Commit

Permalink
fix mapper bug
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaofeiCao committed Sep 20, 2024
1 parent 29841a7 commit 41673da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ public IType map(Schema value) {
private IType createSchemaType(Schema value) {
if (value instanceof PrimitiveSchema) {
return Mappers.getPrimitiveMapper().map((PrimitiveSchema) value);
} else if (value instanceof ChoiceSchema) {
return Mappers.getChoiceMapper().map((ChoiceSchema) value);
} else if (value instanceof SealedChoiceSchema) {
return Mappers.getSealedChoiceMapper().map((SealedChoiceSchema) value);
} else if (value instanceof ChoiceSchema) {
return Mappers.getChoiceMapper().map((ChoiceSchema) value);
} else if (value instanceof ArraySchema) {
return Mappers.getArrayMapper().map((ArraySchema) value);
} else if (value instanceof DictionarySchema) {
Expand Down

0 comments on commit 41673da

Please sign in to comment.