danielgtaylor / danielgtaylor/huma

[feature] cannot add headers in error response in openapi doc

Open
#853 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
4.4k
Forks
285
Avg merge
40m
Merged PRs (30d)
1

Description

![Image](https://github.com/user-attachments/assets/4f651f6a-ff41-4276-b905-056359f2aed4)

![Image](https://github.com/user-attachments/assets/5126592a-28f8-4578-af3d-ec58fdf314a2)

Those header key are set by http middleware, so adding to openapi is the job to be done.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue mentions HTTP middleware and OpenAPI error responses but names no files or tests. Start by tracing how error responses are represented in the OpenAPI document and how middleware-set headers are handled; done means those headers can be included in the documented error response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, openapi
Domain
api, documentation
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.