Skip to content

Conversation

@coltondotio
Copy link
Contributor

Description

Refs: Requested by @coltondotio

Link to Devin run

Adds support for parsing response headers from OpenAPI specs. Response headers defined on success responses (2xx) are now captured in the IR and available for SDK generators and documentation. This complements the existing support for error response headers.

Changes Made

  • Added responseHeaders field to HttpEndpoint in the IR SDK definition
  • Updated ResponseBodyConverter to parse response headers from OpenAPI specs, including:
    • Support for string, integer, and boolean header types
    • Header example extraction (user-specified and auto-generated)
  • Updated OperationConverter to pass response headers through to the endpoint definition
  • Added test fixture (response-headers) with various header types and examples
  • Added CLI version 3.36.0 entry for this feature

Testing

  • Unit tests added (new response-headers fixture with snapshot tests)
  • Verified TypeScript compilation passes for modified packages
  • Verified lint checks pass

Review Checklist

  • Verify responseHeaders field is correctly populated in generated IR snapshots
  • Check header type inference logic (defaults to optional string for unrecognized types)
  • Note: Only captures headers from the first successful response (matches existing response body behavior)

- Add responseHeaders field to HttpEndpoint in IR SDK definition
- Update ResponseBodyConverter to parse response headers from OpenAPI specs
- Update OperationConverter to pass response headers through to endpoint
- Add test fixture for response headers with various header types
- Update CLI versions.yml for v3.36.0 feature release

Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
@devin-ai-integration
Copy link
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
@devin-ai-integration devin-ai-integration bot changed the title feat: add response header parsing for success responses feat(cli): add response header parsing for success responses Jan 8, 2026
devin-ai-integration bot and others added 3 commits January 8, 2026 17:02
Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
Co-Authored-By: Colton Berry <coltonsberry@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants