Skip to content

APIResponse Order field mapping - #17

Merged
sonirico merged 1 commit into
sonirico:masterfrom
terwey:test/apiresponse-unmarshal
Aug 11, 2025
Merged

APIResponse Order field mapping#17
sonirico merged 1 commit into
sonirico:masterfrom
terwey:test/apiresponse-unmarshal

Conversation

@terwey

@terwey terwey commented Aug 11, 2025

Copy link
Copy Markdown
Contributor

I forgot in my recent PR to write a unit test which with further testing showed there was another bug, I might find more over time as my implementation using this SDK is nearing completion :)

test(api): add unit test for APIResponse.UnmarshalJSON and fix cloid field mapping

  • Add apiresponse_test.go to verify correct parsing of CreateOrderRequest responses.
  • Fix JSON tag for OrderStatusResting.ClientID from "cid" to "cloid" to match API schema.

Pull Request

Description

Brief description of the changes in this PR.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring
  • Performance improvement

…field mapping

- Add apiresponse_test.go to verify correct parsing of CreateOrderRequest responses.
- Fix JSON tag for OrderStatusResting.ClientID from "cid" to "cloid" to match API schema.
@coveralls

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 16886688833

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.0%) to 12.843%

Totals Coverage Status
Change from base Build 16853950187: 1.0%
Covered Lines: 351
Relevant Lines: 2733

💛 - Coveralls

@sonirico
sonirico merged commit 89904a1 into sonirico:master Aug 11, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants