Skip to content
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

fix(cts): strict comparaison of query parameters #2681

Merged
merged 5 commits into from
Feb 11, 2024
Merged

Conversation

millotp
Copy link
Collaborator

@millotp millotp commented Feb 8, 2024

🧭 What and Why

Unknown query parameters are not allowed in most APIs, we need to make sure that the client only sends what was requested, and nothing else.
Enforce strict check in all languages, and fix python by initializing every member of a class, otherwise they are treated as static member ! (so weird)
No need to initialize models for python, because they all extend the BaseModel which initializes everything properly (from what I understand, maybe I'm wrong).

also some small fixes in other languages to make the CI pass, and locally too.

@millotp millotp self-assigned this Feb 8, 2024
@millotp millotp requested a review from a team as a code owner February 8, 2024 23:07
@millotp millotp requested review from damcou and Fluf22 February 8, 2024 23:07
Copy link

netlify bot commented Feb 8, 2024

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit 9a498e2
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/65c8b93d578bd400095ca8eb
😎 Deploy Preview https://deploy-preview-2681--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Feb 8, 2024

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@morganleroi
Copy link
Contributor

Do I need to double check if all assertion are correctly done in C# ?

@millotp
Copy link
Collaborator Author

millotp commented Feb 10, 2024

I checked for all languages, but maybe I got some wrong !

Copy link
Contributor

@morganleroi morganleroi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GéGé

@millotp millotp merged commit d3862d9 into main Feb 11, 2024
26 checks passed
@millotp millotp deleted the fix/strict-qp branch February 11, 2024 14:39
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