alexa_rust icon indicating copy to clipboard operation
alexa_rust copied to clipboard

ResolutionsPerAuthority type fails to deserialize when there is no match

Open MikeFHay opened this issue 2 years ago • 0 comments

It is common on failed matches for Alexa to send a request that looks like:

...
  "resolutionsPerAuthority": [
      {
          "authority": "amzn1.er-authority.echo-sdk.amzn1.ask.skill....",
          "status": {
              "code": "ER_SUCCESS_NO_MATCH"
          }
      }
  ]
...

Attempting to deserialize this to the types in this crate will give the error:

Error("missing field `values`", line: 0, column: 0)

MikeFHay avatar Aug 13 '22 17:08 MikeFHay