Skip to content

[Schema Inaccuracy] Example and schema mismatch for #/paths/~1enterprises~1{enterprise}~1actions~1hosted-runners/get #5481

@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref for the example

#/components/examples/actions-hosted-runner-paginated/value

The field image doesn't exist in the schema, but exists in the example. It's probably meant to be image_details.

Here's a snippet

    3:     "id" : 5,
    4:     "name" : "My hosted ubuntu runner",
    5:     "runner_group_id" : 2,
    6:     "platform" : "linux-x64",
>   7:     "image" : {
    8:       "id" : "ubuntu-20.04",
    9:       "size" : 86
   10:     },
   11:     "machine_size_details" : {

Expected

The schema and example are in sync

Reproduction Steps

I could reproduce this in

  • ghec

Also happens in

#/paths/~1enterprises~1{enterprise}~1actions~1hosted-runners/post

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions