Commit ce981cb
committed
fix: unwrap optional headers to restore typed content encoding in OpenAPI spec
getParamContentType looked up .meta() on the field schema directly, but
.optional() wraps it in a new node without the annotation. Unwrap
optional/nullable wrappers before looking up the param content meta so
x-pipeline/x-source/x-state headers get their $ref content encoding back.
Made-with: Cursor
Committed-By-Agent: cursor1 parent 26d988e commit ce981cb
3 files changed
Lines changed: 172 additions & 110 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments