Skip to content

Add Avro schema support to playground converter#676

Merged
wilmveel merged 1 commit into
masterfrom
claude/adoring-cannon-faamwt
Jun 19, 2026
Merged

Add Avro schema support to playground converter#676
wilmveel merged 1 commit into
masterfrom
claude/adoring-cannon-faamwt

Conversation

@wilmveel

Copy link
Copy Markdown
Contributor

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 a Customer record with nested Address type, including various field types (string, int, float, boolean) and documentation.

  • Updated route handler (src/site/playground/src/routes/index.tsx):

    • Added avro to the ConvertSpecification type union
    • Imported avroToWirespec transformation function and avroExample
    • Added conditional logic to detect and handle Avro schemas in the conversion pipeline
    • Added case handler to load the Avro example when selected
  • Updated UI selector (src/site/playground/src/components/SpecificationSelector.tsx): Added "Avro" option to the specification dropdown menu

Type of Change

  • Feature
  • Bug fix
  • Documentation update
  • Refactoring
  • Performance improvement
  • Build/CI pipeline changes
  • Other (please describe):

Checklist

  • I have followed the contribution guidelines
  • I have written tests for my changes
  • I have updated the documentation if necessary
  • I have written code in a functional style (using Arrow where appropriate)

Notes

The actual avroToWirespec transformation function is imported from ../transformations/OpenAPIToWirespec but 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

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
@wilmveel wilmveel enabled auto-merge (squash) June 19, 2026 13:52
@wilmveel wilmveel merged commit 62f66a0 into master Jun 19, 2026
34 checks passed
@wilmveel wilmveel deleted the claude/adoring-cannon-faamwt branch June 19, 2026 14:04
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants