Skip to content

Commit

Permalink
fix: fix bytes in kotlin schema extractor (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Feb 15, 2024
1 parent e6c6ccf commit 32b8a9f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -474,8 +474,10 @@ class SchemaExtractor(
type.isSubtypeOf(builtIns.longType) -> Type(int = xyz.block.ftl.v1.schema.Int())
type.isSubtypeOf(builtIns.doubleType) -> Type(float = xyz.block.ftl.v1.schema.Float())
type.isSubtypeOf(builtIns.booleanType) -> Type(bool = xyz.block.ftl.v1.schema.Bool())
type.isSubtypeOf(builtIns.byteType) -> Type(bytes = xyz.block.ftl.v1.schema.Bytes())
type.isSubtypeOf(builtIns.unitType) -> Type(unit = xyz.block.ftl.v1.schema.Unit())
type.anySuperTypeConstructor {
it.getClassFqNameUnsafe().asString() == ByteArray::class.qualifiedName
} -> Type(bytes = xyz.block.ftl.v1.schema.Bytes())
type.anySuperTypeConstructor {
it.getClassFqNameUnsafe().asString() == builtIns.list.fqNameSafe.asString()
} -> Type(
Expand Down

0 comments on commit 32b8a9f

Please sign in to comment.