Move openapi-example.yaml to test/fixtures and flesh out with edge cases#1829
Merged
pmcelhaney merged 3 commits intomainfrom Apr 11, 2026
Merged
Move openapi-example.yaml to test/fixtures and flesh out with edge cases#1829pmcelhaney merged 3 commits intomainfrom
pmcelhaney merged 3 commits intomainfrom
Conversation
Copilot created this pull request from a session on behalf of
pmcelhaney
April 11, 2026 12:23
View session
pmcelhaney
approved these changes
Apr 11, 2026
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.
Summary
Moves
openapi-example.yamlfrom the repository root intotest/fixtures/openapi-example.yamland expands it with a comprehensive set of OpenAPI edge cases to better exercise the code generator and server.Changes
test/fixtures/openapi-example.yaml– new home for the file, greatly expanded:GET /users,POST /users,GET/PUT/PATCH/DELETE /users/{userId}POST /eventsusingoneOf+allOf+discriminatorint64,double) onGET /products/{productId}multipart/form-dataatPOST /uploadsGET /legacy/itemsapplication/json,text/csv,application/pdf) atGET /reports/{reportId}GET /pingadditionalPropertiesobject atPUT /metadataanyOfon product attributes$refresponse components (BadRequest, Unauthorized, NotFound, InternalServerError)minimum/maximum/defaultconstraintsx-total-count,x-next-page,x-rate-limit-remaining)package.json–go:examplescript updated to new pathtest/app.test.ts– twoopenApiPathreferences updatedtest/typescript-generator/generate.test.ts–generate()call updatedtest/typescript-generator/__snapshots__/generate.test.ts.snap– regenerated.changeset/move-openapi-example-to-fixtures.md– changeset entry addedManual acceptance tests
yarn go:examplestarts the server successfully against the new fixture path with no errorsGET /usersreturns a 200 with thewithUsersexample payloadPOST /eventswith aClickEventbody returns 202 AcceptedGET /products/42returns a 200 with aProduct-shaped responseGET /pingreturns 204 with no body