-
Notifications
You must be signed in to change notification settings - Fork 10
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
[BUG]: Deleting in a Git Tree Fails When Passing Null or "Null" #120
Comments
👋 Hi! Thank you for this contribution! Just to let you know, our GitHub SDK team does a round of issue and PR reviews twice a week, every Monday and Friday! We have a process in place for prioritizing and responding to your input. Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labeled with |
Interesting...our YAML OpenAPI schema definition looks like this:
Note |
is there a work around? |
What happened?
https://docs.github.com/en/rest/git/trees?apiVersion=2022-11-28
When passing a null - the value is not serialized inside TreesPostRequestBody_tree and an error is thrown that Content or Sha must be passed. If you pass a "null" it throws an error => sha null is not a valid blob
We need to be able to pass just a null to delete a blob in a Pull Request (Tree)
`sha string or null
The SHA1 checksum ID of the object in the tree. Also called tree.sha. If the value is null then the file will be deleted.
Note: Use either tree.sha or content to specify the contents of the entry. Using both tree.sha and content will return an error.`
Versions
octokit v.0.0.14
.net 8
Code of Conduct
The text was updated successfully, but these errors were encountered: