-
Notifications
You must be signed in to change notification settings - Fork 1
Mileva #14
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
Mileva #14
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -101,6 +101,31 @@ class Config: # vuln_id is excluded if None | |||||
| fields = {"vuln_id": {"exclude": True}} | ||||||
|
|
||||||
|
|
||||||
| class CVSSScores(BaseModel): | ||||||
| """CVSS v3.0/v3.1 severity metrics.""" | ||||||
|
|
||||||
| version: str | ||||||
| vectorString: str | ||||||
| baseScore: float | ||||||
|
||||||
| baseSeverity: str | ||||||
|
||||||
| baseSeverity: str | |
| base_severity: str = Field(alias="baseSeverity") |
Copilot
AI
Dec 7, 2025
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.
The field name attackVector uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using attack_vector and mapping it to the correct JSON field name using Pydantic's Field(alias="attackVector") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name attackComplexity uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using attack_complexity and mapping it to the correct JSON field name using Pydantic's Field(alias="attackComplexity") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name privilegesRequired uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using privileges_required and mapping it to the correct JSON field name using Pydantic's Field(alias="privilegesRequired") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name userInteraction uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using user_interaction and mapping it to the correct JSON field name using Pydantic's Field(alias="userInteraction") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name confidentialityImpact uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using confidentiality_impact and mapping it to the correct JSON field name using Pydantic's Field(alias="confidentialityImpact") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name integrityImpact uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using integrity_impact and mapping it to the correct JSON field name using Pydantic's Field(alias="integrityImpact") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name availabilityImpact uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using availability_impact and mapping it to the correct JSON field name using Pydantic's Field(alias="availabilityImpact") if needed.
Copilot
AI
Dec 7, 2025
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.
The field name cweId uses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case. Consider using cwe_id and mapping it to the correct JSON field name using Pydantic's Field(alias="cweId") if needed.
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.
The field name
vectorStringuses camelCase, which is inconsistent with Python naming conventions. All other fields in this codebase use snake_case (e.g.,base_score,attack_vector). While this may match the CVSS JSON schema, for consistency with the rest of the AVID codebase, consider usingvector_stringand mapping it to the correct JSON field name using Pydantic'sField(alias="vectorString")if needed.