You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error response from the API can contain a data field with additional context for errors. This is specifically used for tests within ACL files. We should add the data field as described in the API documentation
Closes#5
This commit adds the `Data` field to the `APIError` type and provides a helper function `ErrorData` to obtain
the slice of errors from the response. This will allow us to expose errors in ACL tests.
Signed-off-by: David Bond <[email protected]>
Closes#5
This commit adds the `Data` field to the `APIError` type and provides a helper function `ErrorData` to obtain
the slice of errors from the response. This will allow us to expose errors in ACL tests.
Signed-off-by: David Bond <[email protected]>
An error response from the API can contain a
data
field with additional context for errors. This is specifically used for tests within ACL files. We should add thedata
field as described in the API documentationRelated to https://github.com/davidsbond/terraform-provider-tailscale/issues/73
The text was updated successfully, but these errors were encountered: