oxidecomputer / oxidecomputer/third-party-api-clients

GitHub client requires too many fields to create a repo for authenticated user

Open
#74 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
150
Forks
62
PR merge metrics
No merged PRs in 30d

Description

The ReposCreateRequest struct used by the Repos::create_for_authenticated_user() method marks the description, gitignore_template, homepage, license_template, name, and team_id fields as required, yet according to the schema, only name is required. In fact, the team_id field is actually invalid for this endpoint!

There are probably other structures in the client with the same problem, but this is the only one I actually checked.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ReposCreateRequest struct and Repos::create_for_authenticated_user() entry point, then compare their field requirements with the linked GitHub REST API schema. Done means only name is required for this request and the invalid team_id field is removed; check whether other structures show the same mismatch.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.