Commit afa4387
fix: extracting counterparty information to fix webhook generation (#190)
### TL;DR
Extracted `CounterpartyInformation` into a separate reusable schema
component.
### What changed?
- Created a new schema component `CounterpartyInformation` that was
previously defined inline
- Updated references in the `Transaction` schema to use the new
component via `$ref`
- Applied these changes consistently across both the main OpenAPI file
and the modular component files
### How to test?
1. Validate that the OpenAPI spec still compiles correctly
2. Verify that API documentation renders the `CounterpartyInformation`
schema properly
3. Confirm that any endpoints using transactions with counterparty
information still function as expected
### Why make this change?
This refactoring improves the OpenAPI specification by:
- Promoting reusability of the `CounterpartyInformation` schema
- Making the schema more maintainable by defining it in a single
location
- Following best practices for OpenAPI schema organization
- Ensuring consistency if this schema needs to be referenced from other
components in the future1 parent 163d78f commit afa4387
4 files changed
Lines changed: 26 additions & 21 deletions
File tree
- mintlify
- openapi/components/schemas/transactions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 50 | + | |
57 | 51 | | |
58 | 52 | | |
59 | 53 | | |
| |||
0 commit comments