[ https://issues.apache.org/jira/browse/AVRO-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13607952#comment-13607952 ]
Tom White commented on AVRO-1274: --------------------------------- Thanks for taking a look Scott. I agree that over time the builder API can be used as a replacement to hide the problems with the existing Schema API from users. Regarding the required field with default value - I'll add that. Also, we could check the union's first type is consistent with any default, but I can't see a way of getting it to be a compile-time check - we'd have to do it when the schema is built. I can make these changes in this JIRA or another one - either way works for me. > Add a schema builder API > ------------------------ > > Key: AVRO-1274 > URL: https://issues.apache.org/jira/browse/AVRO-1274 > Project: Avro > Issue Type: New Feature > Components: java > Reporter: Tom White > Assignee: Tom White > Attachments: AVRO-1274.patch, AVRO-1274.patch, AVRO-1274.patch, > AVRO-1274.patch, AVRO-1274.patch, TestDefaults.patch > > > It would be nice to have a fluent API that made it easier to construct record > schemas. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira