feat: add Stainless SDK config and misc cleanups#132
Conversation
This was referenced Jan 24, 2026
Merged
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Contributor
Greptile OverviewGreptile SummaryAdds Stainless SDK configuration to enable TypeScript and Kotlin SDK generation from the OpenAPI specification, along with several OpenAPI schema improvements. Key Changes:
All changes are properly reflected in both the modular OpenAPI files and the bundled Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| .stainless/stainless.yml | Added comprehensive Stainless SDK configuration for TypeScript and Kotlin SDK generation with proper resource mappings and authentication settings |
| .stainless/workspace.json | Created Stainless workspace config pointing to OpenAPI spec and TypeScript SDK output directory |
| openapi/openapi.yaml | Added AllErrors union schema to consolidate all error types for SDK generation |
| openapi/components/schemas/customers/UltimateBeneficialOwner.yaml | Fixed phone number example to include '+' prefix matching E.164 format pattern |
| openapi/paths/internal-accounts/internal_accounts.yaml | Fixed schema reference path from users/InternalAccount.yaml to customers/InternalAccount.yaml |
Sequence Diagram
sequenceDiagram
participant Dev as Developer
participant Stainless as Stainless SDK Generator
participant OpenAPI as OpenAPI Spec
participant SDK as Generated SDK
Dev->>OpenAPI: Add AllErrors union schema
Dev->>OpenAPI: Rename Error to GridError
Dev->>OpenAPI: Fix phone number format
Dev->>OpenAPI: Fix schema reference paths
Dev->>Stainless: Create stainless.yml config
Note over Stainless: Define resources, models, methods<br/>Configure authentication<br/>Set error handling
Dev->>Stainless: Create workspace.json
Note over Stainless: Point to OpenAPI spec<br/>Define output paths
Stainless->>OpenAPI: Read OpenAPI spec
Stainless->>Stainless: Transform AllErrors using splitSchemasByEnumProperty
Stainless->>SDK: Generate TypeScript SDK
Stainless->>SDK: Generate Kotlin SDK
Note over SDK: SDKs now have proper error types,<br/>correct schema references,<br/>and valid examples
6432728 to
e5749d2
Compare
21d334e to
f90918a
Compare
e5749d2 to
a27f6e6
Compare
f90918a to
c6b215b
Compare
a27f6e6 to
a1379cd
Compare
c6b215b to
6464d8a
Compare
a1379cd to
d0f0475
Compare
2d0527c to
16c31c5
Compare
94a379a to
c72b46f
Compare
16c31c5 to
20ea4a3
Compare
c72b46f to
99a29c9
Compare
20ea4a3 to
d1566ae
Compare
99a29c9 to
d8d7c4d
Compare
7324f44 to
3aa1250
Compare
1c31c37 to
fbf418e
Compare
3aa1250 to
f054ac0
Compare
- Add .stainless/stainless.yml and workspace.json - Add AllErrors schema and remove retry quotes endpoint - Update .redocly.lint-ignore.yaml - Fix UltimateBeneficialOwner phone format - Fix internal_accounts ref path
fbf418e to
48e70c8
Compare
f054ac0 to
2ac3b42
Compare
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.

Grid API SDK Configuration