[Schema Inaccuracy] /repos/{owner}/{repo}/git/trees
can respond with an undocumented 409
#637
Labels
/repos/{owner}/{repo}/git/trees
can respond with an undocumented 409
#637
Schema Inaccuracy
The route is documented as responding with 403 (forbidden e.g. use doesn't have write access), 404 Not Found (repo does not exist?) or 422 Unprocessable Entitiy (both sha and content specified? possibly also invalid mode, or type?)
However it can also reply with an HTTP 409 Conflict iff the repository is empty, while this is not clearly noted
/repos/{owner}/{repo}/git/blobs
does document the response code and behaves the same.Expected
Either documenting the error condition, or allowing the creation of trees and blobs in empty repositories.
Reproduction Steps
The text was updated successfully, but these errors were encountered: