Skip to content

Adds path/query parameter sanization - #278

Merged
Andrew Omondi (andrueastman) merged 7 commits into
mainfrom
andrueastman/pathParameters
May 22, 2024
Merged

Andrew Omondi (andrueastman) merged 7 commits into
mainfrom
andrueastman/pathParameters

Conversation

@andrueastman

Copy link
Copy Markdown
Contributor

Fixes #245

Sanitizes types passed to the path/query object dictionaries to ensure success of various object types in the parameters.
Adds tests to validate date,time,datetime,boolean,number and uuid types.

@andrueastman
Andrew Omondi (andrueastman) marked this pull request as ready for review May 21, 2024 12:09
@andrueastman
Andrew Omondi (andrueastman) requested a review from a team as a code owner May 21, 2024 12:09

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the version in the toml file at the root also needs to be updated

@andrueastman

Copy link
Copy Markdown
Contributor Author

@baywet

Copy link
Copy Markdown
Member

interesting, it's not configured like the service lib

I believe it's because of a combination of this file and that directive but maybe Samwel K. (@samwelkanda) can confirm?
If so, it'd be interesting to replicate in other python repos, for consistency and efficiency.

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@samwelkanda

Copy link
Copy Markdown
Contributor

Vincent Biret (@baywet) Andrew Omondi (@andrueastman) We do not need to update the pyproject.toml file for now as the core libraries use flit to publish packages to PyPI which only requires the VERSION variable to be updated. I agree that we should update the workflows to align with the setup in service libraries that use Python’s built-in build tool. Shem Ogumbe (@shemogumbe) are you able to take this up?

@baywet

Copy link
Copy Markdown
Member

Thanks for the additional context Samwel K. (@samwelkanda) Before anybody takes anything, I'll go ahead and create issues. So we can schedule things as part of our regular workflow.

@pjmagee

Patrick Magee (pjmagee) commented May 22, 2024 •

Copy link
Copy Markdown

Awesome stuff

@shemogumbe

Copy link
Copy Markdown

Do we go with python build? and align with service libraries?

@andrueastman

Copy link
Copy Markdown
Contributor Author

Any chance you can clarify what you mean Shem Ogumbe (@shemogumbe)?

Do we go with python build? and align with service libraries?

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.

Guid uri template path/query parameter values should be normalized to string

6 participants