Closed
Description
Code of Conduct
- I have read and agree to the GitHub Docs project's Code of Conduct
What article on docs.github.com is affected?
What part(s) of the article would you like to see updated?
the "response schema" has:
"quantity": {
"type": "integer",
"description": "Quantity of the usage line item."
},
and it turns out that in the actual response from the API, the quantity
field is a float, not an int.
Real life example:
"usageItems": [
{
"date": "2025-01-01T00:00:00Z",
"product": "actions",
"sku": "Actions storage",
"quantity": 5.801260062,
"unitType": "GigabyteHours",
"pricePerUnit": 0.00033602,
"grossAmount": 0.001949096,
"discountAmount": 0.001949096,
"netAmount": 0.0,
"organizationName": "octokit",
"repositoryName": "octokit"
},
...
Additional information
No response