vladvasiliu / opsgenie-rs

OpsGenie SDK for Rust
Other
3 stars 0 forks source link

Rate Limiting #1

Open chills42 opened 3 years ago

chills42 commented 3 years ago

I'm not seeing anywhere where the API rate limiting is accounted for. At minimum, the appropriate headers should be returned.

https://docs.opsgenie.com/docs/api-rate-limiting

vladvasiliu commented 3 years ago

Not sure what you mean by "returned". Do you mean in the response object? That's probably because the Open API spec provided doesn't define any object based on those headers. Took a quick look at the official Python SDK, and it doesn't seem to expose those either.

In the case of an error response, the generated model does have a response_headers field which isn't populated for some reason. source

Should probably send a PR to that project to fix this.