Skip to content

[Schema Inaccuracy] Missing field in schema for User: suspended_at #5667

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the API

#/paths/~1user~1{account_id}/get

These are the two possible types for the response

#/paths/~1user~1{account_id}/get/responses/200/content/application~1json/schema/oneOf/0

referencing

#/components/schemas/private-user

or

#/paths/~1user~1{account_id}/get/responses/200/content/application~1json/schema/oneOf/1

referencing

#/components/schemas/public-user

On GHES 3.17, the API call returns a field suspended_at that's not in the schema.

Expected

The schema contains that field.

Reproduction Steps

With GH CLI, run something like this against GHES

gh api /user/14513

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions