| 1 | import * as SchemaBinary from "effect/encoding/SchemaBinary" |
| 2 | import * as Schema from "effect/Schema" |
| 3 | |
| 4 | const schema = Schema.Struct({ |
| 5 | a: Schema.String, |
| 6 | b: Schema.optional(Schema.FiniteFromString), |
| 7 | c: Schema.Array(Schema.String) |
| 8 | }) |
| 9 | |
| 10 | export const codec = SchemaBinary.toCodec(schema) |