Skip to content

[Schema Inaccuracy] Invalid example for /repos/{owner}/{repo}/issues/{issue_number} #5234

@rahulsom

Description

@rahulsom

Schema Inaccuracy

The example contains an unexpected field issue_field_values that the schema doesn't.
The example is at #/paths/~1repos~1{owner}~1{repo}~1issues~1{issue_number}/patch/requestBody/content/application~1json/examples/default/value
The schema is at #/paths/~1repos~1{owner}~1{repo}~1issues~1{issue_number}/patch/requestBody/content/application~1json/schema.

            1: {
            2:   "assignees" : [ "octocat" ],
            3:   "body" : "I'm having a problem with this.",
        >   4:   "issue_field_values" : [ {
            5:     "field_id" : "123",
            6:     "value" : "Critical"
            7:   }, {
            8:     "field_id" : "456",

Expected

The schema and example are in sync

Reproduction Steps

I found this in
- ghec
- fpt
- 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