Skip to content

Commit ce981cb

Browse files
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: cursor
1 parent 26d988e commit ce981cb

3 files changed

Lines changed: 172 additions & 110 deletions

File tree

apps/engine/src/__generated__/openapi.d.ts

Lines changed: 24 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)