Add Avro schema support to playground converter#676
Merged
Conversation
Add Avro as a convert option in the playground so users can paste an Avro schema and convert it to Wirespec. Wires up a sample Customer schema, the avroToWirespec transformation, and the selector option. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S99jonug5NZ716GG7A4Hv7
jerrevanveluw
approved these changes
Jun 19, 2026
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
This PR adds Apache Avro schema support to the Wirespec playground, enabling users to convert Avro schemas to Wirespec format alongside existing OpenAPI v2/v3 converters.
Changes
New Avro example (
src/site/playground/src/examples/avro.tsx): Added a comprehensive example Avro schema demonstrating aCustomerrecord with nestedAddresstype, including various field types (string, int, float, boolean) and documentation.Updated route handler (
src/site/playground/src/routes/index.tsx):avroto theConvertSpecificationtype unionavroToWirespectransformation function andavroExampleUpdated UI selector (
src/site/playground/src/components/SpecificationSelector.tsx): Added "Avro" option to the specification dropdown menuType of Change
Checklist
Notes
The actual
avroToWirespectransformation function is imported from../transformations/OpenAPIToWirespecbut not shown in this diff, indicating it was implemented separately. This PR focuses on integrating the Avro converter into the playground UI and routing logic.https://claude.ai/code/session_01S99jonug5NZ716GG7A4Hv7