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

ASF subversion and git services commented on AVRO-3677:
-------------------------------------------------------

Commit 362aef8a07bc17969601a4ff2cbf60ef7488d13c in avro's branch 
refs/heads/main from Oscar Westra van Holthe - Kind
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=362aef8a0 ]

AVRO-3677: Add SchemaFormatter (#2885)

* AVRO-3677: Introduce Named Schema Formatters

Adds a SchemaFormatter interface and factory method to format schemas to
different formats by name. The initial implementation supports JSON
(both inline and pretty printed), the parsing canonical form, and the IDL
format.

> Introduce Named Schema Formatters
> ---------------------------------
>
>                 Key: AVRO-3677
>                 URL: https://issues.apache.org/jira/browse/AVRO-3677
>             Project: Apache Avro
>          Issue Type: New Feature
>          Components: java
>    Affects Versions: 1.11.1
>            Reporter: Oscar Westra van Holthe - Kind
>            Assignee: Oscar Westra van Holthe - Kind
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.12.0
>
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Similar to AVRO-3666, which introduces multiple schema parsers, I propose to 
> introduce multiple, named, schema formatters.
> Names can be of the form {{{}<name>[/<variant>]{}}}, there the variant part 
> is optional.
> Initially, the list would be:
>  * json -> alias for json/pretty
>  * json/pretty -> pretty{-}-{-}printed JSON; replaces 
> {{{}Schema.toString(true){}}}
>  * json/inline -> single-line JSON; replaces {{{}Schema.toString(false){}}}
>  * canonical -> Parsing Canonical Form (as per spec)
> Then, after merging AVRO-3404, we can also add:
> * idl -> to write schemata in IDL format, as requested in AVRO-1757



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

Reply via email to