Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1dependabot~1alerts/get #5487

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

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

Schema and example mismatch. Schema has a single element. Example has a list.

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" : [ {

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions