dce
dce copied to clipboard
Fix swagger definition of usage
trafficstars
Proposed changes
the dce-cli currently fails with
dce usage -e 1725645854 -s 1725645000
err: json: cannot unmarshal array into Go value of type operations.GetUsageOKBody
because it's expecting a single value but the API returns an array.
Types of changes
- [X] Bugfix (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)
- [ ] Refactor (changes to code, which do not change application behavior)
Checklist
- [X] I have filled out this PR template
- [ ] I have read the CONTRIBUTING doc
- [ ] I have added automated tests that prove my fix is effective or that my feature works
- [ ] I have added necessary documentation (
README.md, inline comments, etc.) - [ ] I have updated the
CHANGELOG.mdunder a## nextrelease, with a short summary of my changes