Parsing Fix Confidence and Fix Rating

This guide explains how to interpret the response from the GET fix-reports/{fixReportId} API.

How to obtain fix confidence status

The confidence field in the API response allows you to determine if a fix is considered "Stable" or "Adaptive".

  • "confidence": 90: indicates Stable Fix, which are deterministic fixes

  • "confidence": 50: indicates Adaptive Fix, which are fixes generated using intelligent AI techniques that may require closer review.

For more details on Stable vs Adaptive fixes, see Working with the Fix Report.

Sample Output (Truncated):

{
    "fixReport": [
        {
            "fixes": [
                {
                    "id": "51c6cce5-8374-4357-bda8-9a8e03f98e4b",
                    "safeIssueType": "SQL_Injection",
                    "confidence": 90,
                }
            ]
        }
    ]
}

How to obtain Fix Rating

The sharedState object contains the fixRatings array, which details user sentiment and feedback on a fix.

  • Vote Score (voteScore):

    • 1: Thumbs Up

    • -1: Thumbs Down

  • Fix Rating Tag (fixRatingTag): Reason for rejection (if voteScore is -1).

    • Values: BAD_PATTERN, BREAKING_FIX, FALSE_POSITIVE, OTHER, UNRESOLVED_FIX

  • Comments (comment): Improved context provided by the user.

  • User Info: email and name of the reviewer.

For more information on how to submit feedback via the UI, see Providing Fix Feedback.

Sample Output (Truncated):

Last updated