Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1repos~1{owner}~1{repo}~1activity/get #5607

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/activity-items/value

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

Here's a snippet

    3:   "node_id" : "MDEwOlJlcG9zaXRvcnkxMjk2MjY5",
    4:   "before" : "6dcb09b5b57875f334f61aebed695e2e4193db5e",
    5:   "after" : "827efc6d56897b048c772eb4087f854f46256132",
    6:   "ref" : "refs/heads/main",
>   7:   "pushed_at" : "2011-01-26T19:06:43Z",
    8:   "push_type" : "normal",
    9:   "pusher" : {
   10:     "login" : "octocat",
   11:     "id" : 1,

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
  • ghes-3.18

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions