Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rahulsom opened this issue Mar 6, 2025 · 0 comments
Labels
feature fundamentals-and-support Added by Howie to auto-add issues to API Platform KTLO project

Comments

@rahulsom
Copy link

rahulsom commented Mar 6, 2025

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

@becco becco added the feature label Mar 6, 2025
@howie-work howie-work bot added the fundamentals-and-support Added by Howie to auto-add issues to API Platform KTLO project label Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature fundamentals-and-support Added by Howie to auto-add issues to API Platform KTLO project
Projects
None yet
Development

No branches or pull requests

2 participants