Hi all,

One change to the Java API I've been pondering is a parser/formatter
separate from the Schema & Protocol classes.
To implement this, I'm thinking of a combination of several pieces:

   - An interface for the functionality
   - An implementation for the current JSON format (.avsc & .avpr)
   - A service provider interface (SPI) to discover implementations with
   (e.g., to enable the IDL format)

For the actual implementation, I see several options:

   1. Nothing; keep what we have now
   2. Create SchemaParser and ProtocolParser interfaces for parsing, but
   keep the current toString() methods intact
   3. Create SchemaFormat and ProtocolFormat for both parsing and formatting
   (alternatively named SchemaFormatter & ProtocolFormatter, similar to
   java.time.format.DateTimeFormatter)
   4. Create both SchemaParser and ProtocolParser interfaces and
   SchemaFormatter and ProtocolFormatter interfaces

Which option do you prefer?

Kind regards,
Oscar

--

✉️ Oscar Westra van Holthe - Kind <os...@westravanholthe.nl>

Reply via email to