oxidecomputer / third-party-api-clients

A place for keeping all our generated third party API clients.
https://docs.rs/octorust
MIT License
133 stars 56 forks source link

Patched the Users type to have a default for the non-required "custom… #70

Closed chandler-onda closed 1 year ago

chandler-onda commented 1 year ago

…_scehmas" field

Without having the default, serde will throw 'Err(expected , or } at line 53 column 5)' when trying to deserialize a User resource.

Since this library is fully generated, my guess is either the generator module in this repo needs a tweak or the OpenAPI Spec from APIs-guru/openapi-directory does.

augustuswm commented 1 year ago

A fix in the generator for this (and other HashMap cases) is included in #75