errorEnvelopeResponse is the generic `default` error response (ErrorEnvelope). Huma auto-adds it to every operation, but declaring a custom `Responses` map SUPPRESSES that auto default — so any op with a custom map must re-add this, or its OpenAPI contract omits the error shape and generated clients
()
| 35 | // its OpenAPI contract omits the error shape and generated clients fall back to |
| 36 | // raw-string error bodies (losing the machine `code`; api-v1-redesign §6a #4). |
| 37 | func (s *Server) errorEnvelopeResponse() *huma.Response { |
| 38 | return s.jsonResponse(reflect.TypeOf(ErrorEnvelope{}), "ErrorEnvelope", |
| 39 | "Error — the standard envelope; branch on error.code.") |
| 40 | } |
| 41 | |
| 42 | // SendResultView is the single outbound result for send/reply/forward/approve/ |
| 43 | // test (MSG-9). Per scenario: |
no test coverage detected