Commit ca25a31
feat(generator): restore model-generator and regenerate models from OpenAPI (#2)
* feat(generator): restore OpenAPI-driven model generator
Reintroduce tools/model-generator with OpenAPI Generator templates, spec fetch, and post-processing for model and enum output under src/main/java.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(spec): refresh prime-public-spec.yaml from live OpenAPI
Update the committed Prime REST API spec to match the current public OpenAPI document.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore: regenerate models and enums from OpenAPI spec
Regenerate model/ and model/enums/ from the refreshed spec, including new cross-margin and staking types and XM naming alignment.
Co-authored-by: Cursor <cursoragent@cursor.com>
* fix: align service requests with spec and remove legacy APIs
Add staking metadata and validator provider fields, remove deprecated service aliases, and delete unused legacy request/response types superseded by canonical names.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore(release): bump to v1.10.0 and update CHANGELOG
Document customer-facing model, request, and removal changes for the OpenAPI sync release.
Co-authored-by: Cursor <cursoragent@cursor.com>
* address review: restore getPortfolioCounterpartyId on AdvancedTransferService
The OpenAPI spec tags this route under Advanced Transfer. Keep PortfoliosService
as a deprecated shim for backward compatibility.
Co-authored-by: Cursor <cursoragent@cursor.com>
* address review: update generated model headers and DateOfBirth primitives
Remove OpenAPI Generator attribution from generated file headers and convert
DateOfBirth year/month/day fields to int primitives via post-processor.
Co-authored-by: Cursor <cursoragent@cursor.com>
* address review: enforce XM acronym casing across generated models
Add post-processor normalization so Xm* type and accessor names become XM*
for parity with TS/Go SDKs, including case-variant file cleanup on regen.
Co-authored-by: Cursor <cursoragent@cursor.com>
* chore: regenerate models with updated generator formatting
Re-run the OpenAPI model generator to apply consistent 4-space indentation, expanded Javadoc blocks, and enum doc formatting across all 209 model and enum files.
Co-authored-by: Cursor <cursoragent@cursor.com>
* add make commands for format and run format
* update changelog date
---------
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 4d01ad6 commit ca25a31
266 files changed
Lines changed: 5605 additions & 3895 deletions
File tree
- apiSpec
- src
- main/java/com/coinbase/prime
- advancedtransfer
- futures
- model
- enums
- orders
- portfolios
- positions
- staking
- transactions
- users
- test/java/com/coinbase/prime
- integration
- positions
- staking
- tools/model-generator
- src/main/java/com/coinbase/tools/modelgenerator
- templates
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
3 | 43 | | |
4 | 44 | | |
5 | 45 | | |
| |||
69 | 109 | | |
70 | 110 | | |
71 | 111 | | |
72 | | - | |
| 112 | + | |
73 | 113 | | |
74 | 114 | | |
75 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments