Skip to content

modify login response to enable codegen to generate header based client - #7

Merged
Shreya-7 merged 1 commit into
mainfrom
feat-fix-login-contract
Jan 3, 2024
Merged

modify login response to enable codegen to generate header based client#7
Shreya-7 merged 1 commit into
mainfrom
feat-fix-login-contract

Conversation

@abhishekmsingh

Copy link
Copy Markdown
Owner

The codegen we are using does not support 204 as response code due to a weird bug. So we need to use 200 but no content so that it generates a client service which returns a header.
Have raised an MR with fix: ferdikoomen/openapi-typescript-codegen#1965

@Shreya-7
Shreya-7 merged commit 24aaaa1 into main Jan 3, 2024
@mrlubos

mrlubos commented Feb 4, 2024

Copy link
Copy Markdown

@abhiandthetruth did you have time to look at https://github.com/nicolas-chaulet/openapi-typescript-codegen? We handle 204 status codes as I was running into issues with generated types assuming success response would always be defined

@abhishekmsingh

Copy link
Copy Markdown
Owner Author

Hey no, have not checked that out. Will do in some time

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants