Skip to content

docs: fix invalid client example schema type - #2545

Merged
mromaszewicz merged 2 commits into
oapi-codegen:mainfrom
anisayakmitra-in:docs/fix-invalid-client-example-1976
Nov 15, 2026
Merged

mromaszewicz merged 2 commits into
oapi-codegen:mainfrom
anisayakmitra-in:docs/fix-invalid-client-example-1976

Conversation

@anisayakmitra-in

Copy link
Copy Markdown
Contributor

Fixes #1976.\n\nThe client example used the invalid OpenAPI schema type \int. Replace it with the OpenAPI 3.0 primitive \integer, so generating all example schemas with \skip-prune\ succeeds.\n\nValidation: \git diff --check\ passed. The repository-required \make tidy, \make test, \make generate, and \make lint\ commands could not be run because this environment does not provide \make\ or Go.

@mromaszewicz
mromaszewicz marked this pull request as ready for review November 15, 2026 15:46
@mromaszewicz
mromaszewicz requested a review from a team as a code owner November 15, 2026 15:46
@mromaszewicz
mromaszewicz enabled auto-merge (squash) November 15, 2026 15:47
@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This example correction appears safe to merge.

Summary

Corrects Unreferenced.id in examples/client/api.yaml from int to integer.

  • The client example marks id as an OpenAPI integer.

Reviews (1) · Last reviewed commit: "Merge remote-tracking branch 'upstream/m..." · Reviewed by Greptile

@mromaszewicz
mromaszewicz merged commit b33d821 into oapi-codegen:main Nov 15, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Some examples are using invalid OpenAPI 3.0.x

2 participants