Repository navigation
chore: bump openapi-codegen and api, fixing coverage - #23
Merged
Merged
Conversation
The bump generates unknownEnum only for what a response holds, checks each recorded response holds only enum values the specification lists, and tests each union's null and that no strict decoder drops a member it does not know. Coverage, as devtool measures it with Go 1.27.4, goes from 74.3% to 83.6%. Fixes #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019QCb1AfnATvpBQCH3PrX7Y
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.
Fixes #21.
This bumps openapi-codegen (with MarkRosemaker/openapi-codegen#81 and #82) and go-api-libs/api (with go-api-libs/api#8), then regenerates:
unknownEnumis now generated only for types a response can hold: 215 methods instead of 539.null, and that each round-tripped alternative refuses a member it doesn't know rather than dropping it.Coverage, measured with Go 1.27.4 as devtool does (
make cover), goes from 74.3% to 83.6%. Note that Go 1.27.0 reads the same code about 2.5 points higher, which explains why local and devtool figures differed.make readypasses.Generated by Claude Code