debian-forge-composer/internal/cloudapi
Chloe Kaubisch 765e93bfc8 cloudapi: get specific error from openapi
Error handling is structured in such a way that typically, a ServiceCodeError is passed
through the echo HTTP error, in reference to internally defined errors. We want to be able
to obtain and return specific external errors, for example during validation from openapi3.
Add a 'details' field to the serviceError struct, to contain extra / externally defined
information. Modify HTTPErrorHandler to anticipate either a string or a ServiceErrorCode
from echo, and respond accordingly. Edit the affected tests to expect the appropriate response.
2022-06-28 10:02:55 +02:00
..
v2 cloudapi: get specific error from openapi 2022-06-28 10:02:55 +02:00
server.go cloudapi: prevent dangling manifest goroutines 2022-04-06 08:51:01 +02:00