test: add staging hub server to openapi#71
Conversation
✱ Stainless preview buildsThis PR will update the ✅ hub-typescript studio · code
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
WalkthroughThis pull request adds a new staging server endpoint to the OpenAPI specification for the Hub. The 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 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 |
What does this PR do?
Changes OpenAPI server entries.
This is a focused validation change for ENG-759. Stainless Code Mode is currently receiving the correct
FORMBRICKS_HUB_BASE_URL, but its sandbox rejects it. Stainless guidance suggests the sandbox may derive allowed outbound hosts from the OpenAPIserversarray used during SDK/MCP generation, so this PR tests that hypothesis by making the staging Hub URL explicit in the uploaded spec.How should this be tested?
go test ./internal/api/handlers ./cmd/api -run 'OpenAPI|HTTPServerServesOpenAPI' -count=1npx --yes @stoplight/spectral-cli@6 lint openapi.yaml