fastly_api::apis::secret_store_api::client_key
not returning a client key
#10
Labels
bug
Something isn't working
it seems
fastly_api::models::client_key::ClientKey
has the wrong field name for the client key. the following should return a key, but instead returns none.example (with my key omitted):
output (with my exact values omitted):
while the equivalent curl command
curl -i -X POST "https://api.fastly.com/resources/stores/secret/client-key" -H "Fastly-Key: YOUR_FASTLY_TOKEN" -H "Accept: application/json"
returns:you'll notice the curl command returns the field
public_key
, while the rust call returns the fieldclient_key
. looking at the rust code we can see the same issuefastly-rust/src/models/client_key.rs
Lines 12 to 23 in cfa52f8
i would normally just fix this myself and PR it, but seeing how the library is generated from an openapi spec, i figured id just report it instead
The text was updated successfully, but these errors were encountered: