Skip to content

WIP: Use wire schema artifact#846

Draft
erlendnils1 wants to merge 21 commits into
mainfrom
use_wire_schema_artifact
Draft

WIP: Use wire schema artifact#846
erlendnils1 wants to merge 21 commits into
mainfrom
use_wire_schema_artifact

Conversation

@erlendnils1

@erlendnils1 erlendnils1 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Wire schema source code was forked and included in project for the initial version. Likely reason was the need for a mutable model for the schema (wire was, or perhaps at one point became, immutable).

This PR attempts to remove the local, hard to maintain fork and instead use latest wire schema artifact. To avoid having to rewrite absolutely everything a much simpler mutable model has been added as replacement for the full wire fork. Model is used for manipulating the schema, with conversion from and to ordinary wire model for schema parsing and printing.

NB! Current impl is mostly AI vibe. Need to review the code.

erlend and others added 9 commits June 15, 2026 12:23
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
# Conflicts:
#	schema2proto-wire/pom.xml
#	schema2proto-wire/src/main/java/com/squareup/wire/schema/internal/parser/ProtoParser.java
#	schema2proto-wire/src/test/java/com/squareup/wire/schema/internal/parser/ProtoParserTest.kt
@erlendnils1 erlendnils1 requested a review from Copilot June 16, 2026 07:02
@erlendnils1 erlendnils1 changed the title Use wire schema artifact WIP: Use wire schema artifact Jun 16, 2026

This comment was marked as outdated.

This comment was marked as outdated.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 100 out of 100 changed files in this pull request and generated 5 comments.

Comment thread schema2proto-lib/MIGRATION_NOTES.md Outdated
erlendnils1 and others added 5 commits June 16, 2026 16:29
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants