Skip to content

chore: build references and rename with openapi-edit's helpers - #8

Merged
MarkRosemaker merged 1 commit into
mainfrom
chore/edit-helpers
Nov 13, 2026
Merged

MarkRosemaker merged 1 commit into
mainfrom
chore/edit-helpers

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Contributor

api/fetch.go now uses the two helpers added in openapi-edit#19 instead of its own code:

  • edit.SchemaRef replaces refTo, and also the four references built by hand where the component is already in the document.
  • edit.RenameSchemasFunc replaces the map-building loop in stripSuffixes.

moveToComponents stays here, since notion is its only user.

Result

  • go generate changes nothing: the specification and the library are byte for byte the same.
  • make ready passes.

Generated by Claude Code

refTo and the loop stripSuffixes ran are edit.SchemaRef and
edit.RenameSchemasFunc now, as are the references built by hand where
the component is already in the document. The specification and the
library come out as they were.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
@MarkRosemaker
MarkRosemaker merged commit f63ed17 into main Nov 13, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the chore/edit-helpers branch November 13, 2026 22:05
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