Skip to content

[Schema Inaccuracy] Mismatch between the response schema and response example for "List repository security advisories" API call #2902

Open
@anishrajan25

Description

@anishrajan25

Schema Inaccuracy

As per the response schema for:

the submission field's schema is as follows:

"submission": {
        "type": [
          "object",
          "null"
        ],
        "readOnly": true,
        "properties": {
          "accepted": {
            "type": "boolean",
            "description": "Whether a private vulnerability report was accepted by the repository's administrators.",
            "readOnly": true
          }
        },
        "required": [
          "accepted"
        ]
      }

i.e. the submission field in the response should be as follows:

"submission": {
    "accepted": true
}

But the response example for both these API calls have the submission field as:

"submission": [
      {
        "accepted": true
      }
    ]

Screenshot from official documentation:
image

Expected

The response example for both the above API calls should have the submission field as:

"submission": {
    "accepted": true
}

For the Report a security vulnerability (/repos/{owner}/{repo}/security-advisories/reports) API call, the submission field's schema is the same as above 2 API calls but the response example has the submission field in correct format.

image

Reproduction Steps

Since this is an issue with documentation, there no requirement for reproducing anything.

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