getoutreach / goql

A GraphQL client package written in Go.
Apache License 2.0
19 stars 2 forks source link

chore(test): support error responses in test server #88

Closed grevych closed 2 years ago

grevych commented 2 years ago

What this PR does / why we need it

apiproxy service needs to interpret flagship errors coming through giraffe in the extensions field of the graphql error type. This errors must be forwarded to comply with api v2 error definition. See more: https://outreach-io.atlassian.net/browse/VXP-4000

The changes in this proposal add a new operation error that can be registered in the test server to respond with a graphql error with a custom extensions field. The value of the extensions interface is defined through the registered operation.

Jira ID

[ORES-1245]

getoutreach-ci-2[bot] commented 2 years ago

:tada: This PR is included in version 1.9.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: