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] Request field new_owner of repository transfer endpoint not marked as required #155

Open
pluehne opened this issue Jan 9, 2021 · 0 comments

Comments

@pluehne
Copy link
Member

pluehne commented Jan 9, 2021

Schema Inaccuracy

The repos/transfer operation for transferring repositories has a new_owner property in its request body to designate the new owner of the repository:

new_owner:
  type: string
  description: "**Required:** The username or organization name the
    repository will be transferred to."

As the documentation states, this field is required (which makes sense). However, this is not reflected by the specification, as the request body object doesn’t declare any fields to be required.

Expected

I’d expect the requestBody schema to include

required:
- new_owner
@bruce bruce added the P4 label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants