Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default to string for decoder if no explicit type is provided #76

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

alexejk
Copy link
Owner

@alexejk alexejk commented Dec 4, 2023

According to XML-RPC specification, if a value type is not provided, default should be considered as <string>. Current implementation returned nil which is not correct.

Fixes #75 - as the actual error is due to array not being properly decoded.

Copy link

codecov bot commented Dec 4, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (317a94e) 75.09% compared to head (69e9c7f) 75.38%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #76      +/-   ##
==========================================
+ Coverage   75.09%   75.38%   +0.28%     
==========================================
  Files           7        7              
  Lines         522      524       +2     
==========================================
+ Hits          392      395       +3     
+ Misses        100       99       -1     
  Partials       30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@alexejk alexejk changed the title Allow codec to skip strict field count checks in response vs deserialized struct Default to string for decoder if no explicit type is provided Dec 6, 2023
Copy link

sonarcloud bot commented Dec 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@alexejk alexejk marked this pull request as ready for review December 6, 2023 10:25
@alexejk alexejk merged commit 2830010 into master Dec 6, 2023
5 checks passed
@alexejk alexejk deleted the omitempty branch December 6, 2023 10:29
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.

Error: reading body number of exported fields (3) on response type doesnt match expectation (1)
1 participant