Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AVRO-3677: Add SchemaFormatter #2885

Merged
merged 10 commits into from May 6, 2024
Merged

Conversation

opwvhk
Copy link
Contributor

@opwvhk opwvhk commented May 1, 2024

What is the purpose of the change

Add a SchemaFormatter, complementing the recently added SchemaParser.

Verifying this change

This change added tests and can be verified as follows:

  • Check the new tests
  • Review the changed IDL detection in IdlSchemaParser

Documentation

  • Does this pull request introduce a new feature? (yes / no)
  • If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)

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), and the parsing canonical form.
@github-actions github-actions bot added Java Pull Requests for Java binding build labels May 1, 2024
Copy link
Contributor

@Fokko Fokko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm less familiar with the IDL part, but looks good to me. Left some small comments

@opwvhk opwvhk merged commit 362aef8 into apache:main May 6, 2024
8 checks passed
@opwvhk opwvhk deleted the AVRO-3677-SchemaFormatter branch May 6, 2024 09:31
RanbirK pushed a commit to RanbirK/avro that referenced this pull request May 13, 2024
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Java Pull Requests for Java binding website
Projects
None yet
2 participants