sam-goodwin / punchcard

Type-safe AWS infrastructure.
Apache License 2.0
507 stars 20 forks source link

implement Avro Codec #10

Open sam-goodwin opened 5 years ago

sam-goodwin commented 5 years ago

We currently only support Json codecs, let's demonstrate how interchangeable they are by integrating with Avro. It should be simple enough to map a Shape to avro schema, similarly to how JSON schema works:

https://github.com/sam-goodwin/punchcard/blob/d866672ccd1adf60ed18a75f119745a4f3fde03a/packages/punchcard/lib/shape/types/type.ts#L10

sam-goodwin commented 5 years ago

https://www.npmjs.com/package/avro-js