fix: extracting counterparty information to fix webhook generation#190
fix: extracting counterparty information to fix webhook generation#190
Conversation
✱ Stainless preview buildsThis PR will update the kotlin openapi python typescript Edit this comment to update them. They will appear in their respective SDK's changelogs. ✅ grid-typescript studio · code · diff
✅ grid-kotlin studio · code · diff
❗ grid-python studio
This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push. |
Greptile OverviewGreptile SummarySuccessfully extracted
The schema structure remains semantically identical — only the organization changed. All references resolve correctly in the bundled output. Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| openapi/components/schemas/transactions/CounterpartyInformation.yaml | New schema component created with proper structure for counterparty information |
| openapi/components/schemas/transactions/Transaction.yaml | Updated to reference CounterpartyInformation via $ref instead of inline definition |
| openapi.yaml | Bundled schema correctly includes CounterpartyInformation component and references |
| mintlify/openapi.yaml | Bundled schema for Mintlify docs correctly includes CounterpartyInformation component |
Sequence Diagram
sequenceDiagram
participant Build as Build Process
participant Source as openapi/components/schemas/
participant Transaction as Transaction.yaml
participant Counter as CounterpartyInformation.yaml
participant Bundle as openapi.yaml
Note over Source,Counter: Before: Inline Definition
Transaction->>Transaction: counterpartyInformation<br/>(inline object)
Note over Source,Counter: After: Extracted Component
Build->>Transaction: Read Transaction schema
Transaction->>Counter: $ref: ./CounterpartyInformation.yaml
Build->>Counter: Read CounterpartyInformation schema
Build->>Bundle: Bundle schemas with references
Bundle->>Bundle: Resolve $ref to<br/>#/components/schemas/CounterpartyInformation
Last reviewed commit: a3a5645

TL;DR
Extracted
CounterpartyInformationinto a separate reusable schema component.What changed?
CounterpartyInformationthat was previously defined inlineTransactionschema to use the new component via$refHow to test?
CounterpartyInformationschema properlyWhy make this change?
This refactoring improves the OpenAPI specification by:
CounterpartyInformationschema