Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1dependabot~1alerts/get #5628

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/dependabot-alerts-for-repository/value

Schema and example mismatch. The schema has an element. The example has an array.

Here's a snippet

   49:         "vector_string" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
   50:         "score" : 8.7
   51:       }
   52:     },
>  53:     "epss" : [ {
   54:       "percentage" : 4.5E-4,
   55:       "percentile" : "0.16001e0"
   56:     } ],
   57:     "cwes" : [ {

Same problem found in

#/paths/~1repos~1{owner}~1{repo}~1dependabot~1alerts~1{alert_number}/get

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec
  • ghes-3.16
  • ghes-3.17
  • ghes-3.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions