chore: revert url change; made test broader#74
Conversation
✱ Stainless preview buildsThis PR will update the Edit this comment to update it. It will appear in the SDK's changelogs. ✅ hub-openapi studio · code · diff
✅ hub-typescript studio · code · diff
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
|
ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
💤 Files with no reviewable changes (1)
WalkthroughThis PR updates the OpenAPI specification to use templated server URLs with configurable scheme, host, and base path variables, removing an explicit staging server entry. In the MCP smoke test suite, inline JSON decoding logic is extracted into a reusable helper function 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Removes the temporary staging Hub URL from the public OpenAPI
serverslist and keeps the contract generic for self-hosted/local deployments. Also updates the MCP smoke test decoder to support both Stainless hosted Code Mode output and local Code Mode output.Test Plan
npx --yes @stoplight/spectral-cli@6 lint openapi.yamlgo test ./internal/api/handlers ./cmd/api -run 'OpenAPI|HTTPServerServesOpenAPI' -count=1--code-execution-mode local