Skip to content

[Schema Inaccuracy] Response for "/repos/{owner}/{repo}/replicas/caches" has incompatible example #4590

Open
@rahulsom

Description

@rahulsom

Schema Inaccuracy

This is the json ref:

#/paths/~1repos~1{owner}~1{repo}~1replicas~1caches/get/responses/200/content/application~1json/examples/default/value

The field spec is

                      "git": {
                        "type": "object",
                        "properties": {
                          "sync_status": {
                            "type": "string",
                            "enum": [
                              "offline",
                              "inactive",
                              "in_sync",
                              "not_in_sync"
                            ]
                          },
                          "last_sync": {
                            "type": "string",
                            "format": "date-time"
                          }
                        },
                        "required": [
                          "sync_status",
                          "last_sync"
                        ]
                      }

The example is

                        "git": [
                          {
                            "sync_status": "in_sync"
                          },
                          {
                            "last_sync": "2022-01-10T19:33:52Z"
                          }
                        ]

I looked at GHES-3.12, GHES-3.13, GHES-3.14, GHES-3.15.

Expected

The example should have an object or the type spec should have a list.

Reproduction Steps

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurefundamentals-and-supportAdded by Howie to auto-add issues to API Platform KTLO project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions