Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
feat: add model validation for types #708
base: main
Are you sure you want to change the base?
feat: add model validation for types #708
Changes from 7 commits
4cc6762
8dcd7dd
cb15f44
aa039d2
8ae0e1c
310363e
8f2460a
eaf2f8b
0e04538
8820926
84b29a7
3578749
cfea264
5606e0d
2bdc65a
eeaa426
ac0b4c6
e94d979
faf75fd
68907d4
aa9d110
525c15d
a3a4efe
e08ccdf
c745f69
786ad8d
71b0a04
850998d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Ensure
public_key
values do not expose sensitive informationThe hard-coded
public_key
values at lines 448 and 471 may inadvertently contain sensitive data. Please confirm that these are not actual cryptographic keys. If they are placeholders for testing, consider annotating them as such or using clearly non-sensitive values to prevent any security concerns.Also applies to: 471-471
Tools
Gitleaks
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.
This is a sample string (that isn't even a valid public key), just used as a placeholder.
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.
@mvadari, thank you for the clarification. I've noted that the
public_key
values in this test file are placeholders and do not represent actual cryptographic keys.(_/)
(•‿•)
Learnings added
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.
Fix the typo in error dictionary keys to correctly reference the variable
attr
.In the return statements on lines 314, 328, and 348, the key of the error dictionary is mistakenly set to the string
"attr"
instead of the variableattr
. This will result in error dictionaries with the key"attr"
instead of the actual attribute name, which could lead to confusion when handling errors.Apply this diff to correct the error:
Also applies to: 328-328, 348-348
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.
Fixed in 786ad8d
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.
@mvadari Thank you for fixing the issue! 🐰🎉
If you found this review helpful, would you consider giving us a shout-out on X?
Thank you for using CodeRabbit!