Skip to content

chore: bump openapi-codegen and api, fixing coverage - #23

Merged
MarkRosemaker merged 1 commit into
mainfrom
chore/bump-codegen
Nov 15, 2026
Merged

MarkRosemaker merged 1 commit into
mainfrom
chore/bump-codegen

Conversation

@MarkRosemaker

Copy link
Copy Markdown
Contributor

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:

  • unknownEnum is now generated only for types a response can hold: 215 methods instead of 539.
  • The replay test checks that every recorded response holds only enum values the spec lists. It passes; no recording holds an unlisted value.
  • New generated tests check that each union handles 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 ready passes.


Generated by Claude Code

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
@MarkRosemaker
MarkRosemaker merged commit 017a10d into main Nov 15, 2026
1 check passed
@MarkRosemaker
MarkRosemaker deleted the chore/bump-codegen branch November 15, 2026 17:36
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.

Coverage is below the 80% a public repository needs: 74.3%

2 participants