leancodepl / contractsgenerator-dart

Dart contracts client generator for a CQRS API
3 stars 1 forks source link

Support `Binary` known type #66

Closed shilangyu closed 2 years ago

shilangyu commented 2 years ago

On the transport level it is implemented as a base64 encoded string. Possible mappings:

  1. primitive string
  2. parse into UnmodifiableUint8ListView
  3. custom type Binary which would store b64 string with some helper methods (one of which would produce UnmodifiableUint8ListView)

Personally I am a fan of 3., comments are welcome.