-
-
Notifications
You must be signed in to change notification settings - Fork 379
Feature/gsk 1990 add pydantic config ie extra forbid to all dtos #1514
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
Feature/gsk 1990 add pydantic config ie extra forbid to all dtos #1514
Conversation
GSK-1990 Add pydantic config (ie extra = forbid) to all dtos
To avoid any silent typo or error between server and worker, and also client and server, pydantic object should be using some configuration. |
b3aa455 to
eda4d8f
Compare
eda4d8f to
7167863
Compare
7167863 to
7350dda
Compare
giskard/core/suite.py
Outdated
| @classmethod | ||
| def download(cls, client: GiskardClient, project_key: str, suite_id: int) -> "Suite": | ||
| suite_json = client.get_suite(client.get_project(project_key).project_id, suite_id) | ||
| suite_json: SuiteInfo = client.get_suite(client.get_project(project_key).project_id, suite_id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about changing suite_json to suite_dto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need re-generate by ignoring version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…-1990-add-pydantic-config-ie-extra-forbid-to-all-dtos
f40e124 to
c99dc3a
Compare
Inokinoki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…a-forbid-to-all-dtos
|
Kudos, SonarCloud Quality Gate passed! |








Description
To be merged after #1503
Related Issue
Type of Change
Checklist
CODE_OF_CONDUCT.mddocument.CONTRIBUTING.mdguide.make codestyle.