[Schema Inaccuracy] Example and schema mismatch for `#/paths/~1user~1codespaces~1{codespace_name}~1publish/post`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- openapi
- Domain
- api
Research direction
Locate the OpenAPI schema and the example referenced as #/components/examples/codespace-with-full-repository/value, then inspect the POST response for the publish endpoint. Compare the schema with the example around subscribers_count and validate that the two representations are in sync.
Written by the indexing model from the issue text.
Description
Schema Inaccuracy
This is the json ref for the example
#/components/examples/codespace-with-full-repository/value
The field subscribers_count doesn't exist in the schema, but exists in the example.
Here's a snippet
288: "allow_squash_merge" : true,
289: "allow_auto_merge" : false,
290: "delete_branch_on_merge" : true,
291: "allow_merge_commit" : true,
> 292: "subscribers_count" : 42,
293: "network_count" : 0
294: },
295: "temp_clone_token" : "ABTLWHOULUVAXGTRYU7OC2876QJ2O",
296: "allow_squash_merge" : true,
Expected
The schema and example are in sync
Reproduction Steps
I could reproduce this in
- fpt
- ghec
- Dominant language
- No language data
- Stars
- 1.6k
- Forks
- 342
- Avg merge
- 2h 23m
- Merged PRs (30d)
- 57
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from github/rest-api-description
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
github/rest-api-description#7220 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
github/rest-api-description#7201 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/rest-api-description#7163 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7162 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7135 ·
All issues in github/rest-api-description
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
speaches-ai/speaches#678 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
[BUG] ECR GetAuthorizationToken returns a proxyEndpoint for the default region, not the request's Openbug ecr
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100