feat: oagen updates to handle Golang#17
Merged
gjtorikian merged 9 commits intomainfrom Apr 9, 2026
Merged
Conversation
Preserves OpenAPI parameter serialization metadata (style, explode) in the IR so emitters can handle non-default query param encoding like comma-joined arrays (explode=false). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Operation hints can now specify constant defaults (e.g., response_type: 'code') and inferFromClient fields (e.g., client_id) that emitters inject at runtime instead of exposing in the public method signature. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…edup
Merger now tracks aliased export names (e.g., export { X as Y }) to
avoid appending re-exports that duplicate existing top-level exports.
Writer's import splicer checks whether identifiers are already covered
by more-specific generated imports before preserving barrel imports.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…matches Two changes to the merger's docstring refresh: 1. When replacing an existing docstring with a generated one, carry over any @deprecated lines from the existing doc that aren't present in the generated doc. This prevents hand-written deprecation notices from being silently dropped during regeneration. 2. Make the URL fingerprint fallback (pass 2) more restrictive: only attempt fingerprint matching when there is exactly one unmatched generated member and one unmatched existing member for a given fingerprint. When multiple members share the same URL path (e.g., POST and GET on /authorization/roles), the previous greedy matching would swap docstrings between methods. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The regex for extracting @deprecated lines didn't match one-liner JSDoc format (`/** @deprecated ... */`). Fix by checking for `@deprecated` anywhere in the doc string, and strip trailing `*/` from matched lines before inserting into the generated docstring. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Config generation is not a distinct pipeline stage — emitters that need config files can emit them from generateClient or generateResources. Removes the method from the Emitter contract, orchestrator, CLI init template, and all tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Drop the config generator, its import, README mention, and test case from the reference emitter example. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update README, architecture docs, quickstart, minimal emitter guide, and emitter contract to reflect the removal of generateConfig. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
plus, a bunch of other fixes, particularly around docstrings