cloudflare-rs icon indicating copy to clipboard operation
cloudflare-rs copied to clipboard

responses: make messages and errors default if not present

Open Noah-Kennedy opened this issue 3 years ago • 1 comments

Both fields are often not returned by certain cloudflare APIs (the Zero Trust API is a good example). Allowing serde to default them if not present allows these APIs to be used with this crate.

Noah-Kennedy avatar Mar 08 '22 23:03 Noah-Kennedy

@adamchalmers @sssilver I'd like to get this in. Which approach do we want to go with here?

Noah-Kennedy avatar Jul 18 '22 19:07 Noah-Kennedy