Conversation
A 402 shortfall is a money object, so create app failed to decode the problem and hid whether the balance was short or the account was suspended.
|
Important Review skippedAuto reviews are disabled on this repository. To trigger a review, include ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
shortfallas a money amount (amountandcurrency) instead of a string, so a refused deploy no longer fails with a JSON unmarshal error.Test plan
go test -race ./internal/api/serverless/make lintrunware serverless deployreports the credit detail and shortfall instead ofcannot unmarshal object into Go struct field ProblemDetails.shortfall