Skip to content

feat: add types for req.req and req.res#415

Draft
schwma wants to merge 7 commits into
mainfrom
req.req-and-req.res
Draft

feat: add types for req.req and req.res#415
schwma wants to merge 7 commits into
mainfrom
req.req-and-req.res

Conversation

@schwma
Copy link
Copy Markdown
Member

@schwma schwma commented Feb 27, 2025

part of cap/issues/17887
documented in capire/docs#1603

Comment thread test/typescript/apis/project/cds-services.ts
@daogrady daogrady marked this pull request as ready for review March 6, 2025 06:49
@daogrady daogrady marked this pull request as draft March 6, 2025 06:50
@daogrady
Copy link
Copy Markdown
Contributor

daogrady commented Mar 6, 2025

From what I can see, this looks pretty much done. Is it still a draft or ready for review?

@schwma
Copy link
Copy Markdown
Member Author

schwma commented Mar 6, 2025

The PR is still a draft since the API isn't final yet and might still change. See capire/docs#1603 (comment) for slightly more details.

@daogrady
Copy link
Copy Markdown
Contributor

daogrady commented Mar 6, 2025

I see! Just wanted to make sure you were not waiting for my approval. 🙂

@schwma
Copy link
Copy Markdown
Member Author

schwma commented Mar 6, 2025

Thank you! 🙂 I'll let you know as soon as I know more

@daogrady
Copy link
Copy Markdown
Contributor

daogrady commented Jun 2, 2025

@schwma is the respective runtime change relevant for cds8, or is it only available starting with cds9?

@schwma
Copy link
Copy Markdown
Member Author

schwma commented Jun 2, 2025

@schwma is the respective runtime change relevant for cds8, or is it only available starting with cds9?

The API is also relevant for cds8, however, as far as I am aware, the API is still not final yet.

@daogrady daogrady added the cds9 label Jun 5, 2025
@daogrady
Copy link
Copy Markdown
Contributor

@schwma with cds9 being released, is this now official? If not, is it maybe something we could release with @beta annotation?

@schwma
Copy link
Copy Markdown
Member Author

schwma commented Jun 24, 2025

@daogrady the API is still not final. I brought this up in our team again today and we decided that it should not yet be released, even with an @beta annotation.

@daogrady
Copy link
Copy Markdown
Contributor

@schwma with cds10 around the corner, I'd like to put a lid on this PR originally intended for cds9. 😉
Has the API reached its final stage? If yes, we should get this PR merged. If it has not been after over a year, I'd opt to close the PR.

@niklasvieth
Copy link
Copy Markdown
Contributor

I think they are officially now accessible via req.http https://cap.cloud.sap/docs/node.js/events#http

@daogrady
Copy link
Copy Markdown
Contributor

Hi Niklas,

thanks for weighing in on this! It does look like it is official now. But, as you noticed, it appears to require another .http in between. @schwma if you'd like to add that in, we can get this merged today and shipped with the next release of cds-types.

Best,
Daniel

@schwma
Copy link
Copy Markdown
Member Author

schwma commented Apr 28, 2026

Hi all, thanks for the heads up! Types for req.http.req/res already exist here:

http?: { req: express.Request, res: express.Response }

This PR is specifically about req.req/res. @daogrady after laying dormant for a while, the larger overarching topic (which this PR is a part of) is once again an active work in progress in our team. I will update the PR once everything has been finalized.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants