Skip to content

Custom success response code dropped in openapi generator #6825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jonath0n opened this issue Apr 22, 2025 · 0 comments
Open

Custom success response code dropped in openapi generator #6825

jonath0n opened this issue Apr 22, 2025 · 0 comments

Comments

@jonath0n
Copy link

Which Fern component?

SDK Generator

How urgent is this?

P2 - Medium (Would be helpful)

What's the issue?

Your docs here indicate that I can specify a custom status code for a success response. But the openapi generator seems to default to 200 regardless.

Here's our definition

endpoints:
    track:
      ...
      response:
        type: TrackAcceptedResponse
        status-code: 202
      errors:
       ...
      examples:
        ...

and here's the generated openapi

/inbound/courier:
    post:
      ...
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TrackAcceptedResponse'
              examples:
                ...

Fern CLI & Generator Versions

No response

Workaround

No response

Are you interested in contributing a fix?

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant