Conversation
|
@mtruj013 Thanks for the fix. Is there a way to achieve the same outcome without making those CVSS4 fields mandatory? |
|
@Skazitron removing |
|
@mtruj013 got it. LGTM then. |
|
Dealing with really long/hanging jenkins builds. Fixing that before merging this as it is not super high priority |
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Marshmallow schema definitions for CVSS v4 objects so that Swagger UI correctly renders nested schema fields in the generated OpenAPI/Swagger documentation for the Security API.
Changes:
- Removed
allow_none=Truefrom several CVSS v4Nested(...)fields to improve Swagger UI rendering of nested properties. - Updated CVSS v4 base/modified/environmental/threat metric schema nesting to be non-nullable in the spec.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| baseMetrics = Nested(CvssV4BaseMetrics) | ||
| supplementalMetrics = Nested(CvssV4SupplementalMetrics) | ||
| environmentalMetrics = Nested(CvssV4EnvironmentalMetrics) | ||
| threatMetrics = Nested(CvssV4ThreatMetrics) |
Done
QA
docker compose up -dthendotrunIssue / Card
Fixes https://warthogs.atlassian.net/browse/WD-37123
Screenshots