Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1events/get #5492

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/public-events-items/value

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

Here's a snippet

   35:     "name" : "octocat/Hello-World",
   36:     "url" : "https://api.github.com/repos/octocat/Hello-World"
   37:   },
   38:   "payload" : {
>  39:     "push_id" : 10115855396,
   40:     "size" : 1,
   41:     "distinct_size" : 1,
   42:     "ref" : "refs/heads/master",
   43:     "head" : "7a8f3ac80e2ad2f6842cb86f576d4bfe2c03e300",

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions