You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Zoltan Farkas (Jira)" <ji...@apache.org> on 2022/12/22 12:45:00 UTC

[jira] [Comment Edited] (AVRO-2832) [Java] Create a configurable Formatter for Schemas

    [ https://issues.apache.org/jira/browse/AVRO-2832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17651264#comment-17651264 ] 

Zoltan Farkas edited comment on AVRO-2832 at 12/22/22 12:44 PM:
----------------------------------------------------------------

I would also like to highlight: [https://github.com/apache/avro/pull/1217] 

which might provide a reasonable solution for this.


was (Author: zolyfarkas):
I would also like to highlight: [https://github.com/apache/avro/pull/1217] 

which might provide a generic solution for this.

> [Java] Create a configurable Formatter for Schemas
> --------------------------------------------------
>
>                 Key: AVRO-2832
>                 URL: https://issues.apache.org/jira/browse/AVRO-2832
>             Project: Apache Avro
>          Issue Type: Improvement
>            Reporter: Ryan Skraba
>            Assignee: Oscar Westra van Holthe - Kind
>            Priority: Major
>
> The JSON String representation of a Schema is obtained using the {{toString(...)}} methods on the class.  Instead of using this method, we should create a configurable {{Formatter}} to create the JSON representation.
> This would allow configuration options on how the JSON is constructed, notably to include/exclude schemas that should be considered "known" when the Schema is parsed (see AVRO-2822).
> This is similar to how the old {{parse(...)}} methods directly on Schema were deprecated in favour of a {{Parser}}.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)