Skip to content

test(openapi): pin GET /v1/customer/search 200 envelope (#360)#361

Merged
CryptoJones merged 1 commit into
masterfrom
test/openapi-customer-search-response-shape
May 19, 2026
Merged

test(openapi): pin GET /v1/customer/search 200 envelope (#360)#361
CryptoJones merged 1 commit into
masterfrom
test/openapi-customer-search-response-shape

Conversation

@CryptoJones
Copy link
Copy Markdown
Owner

Closes #360.

Summary

Pins the seven-property envelope already declared in the spec so a future spec edit that drops a field surfaces in CI.

Test plan

  • npm run lint && npm test — 796 passing (was 795).

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

The OpenAPI spec already declares the full envelope for the search
endpoint — {message, q, companyId, count, limit, offset, customers:
Customer[]} — but no test asserted the shape. A future "cleanup"
that dropped a field from the spec would silently regress SDK
code-gen output without CI catching it.

Pin all seven properties + the Customer items \$ref so the contract
stays stable. Test count: 795 → 796.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 10703bb into master May 19, 2026
3 checks passed
@CryptoJones CryptoJones deleted the test/openapi-customer-search-response-shape branch May 19, 2026 19:50
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.

test(openapi): GET /v1/customer/search 200 envelope shape is unpinned

1 participant