Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1advisories/get #5479

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/global-advisory-items/value

The field id doesn't exist in the schema, but exists in the example.

Here's a snippet

    1: [ {
>   2:   "id" : 1,
    3:   "ghsa_id" : "GHSA-abcd-1234-efgh",
    4:   "cve_id" : "CVE-2050-00000",
    5:   "url" : "https://api.github.com/advisories/GHSA-abcd-1234-efgh",
    6:   "html_url" : "https://github.com/advisories/GHSA-abcd-1234-efgh",

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • fpt
  • ghec
  • ghes-3.14
  • ghes-3.15
  • ghes-3.16
  • ghes-3.17

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions