You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
Prior to 2013-04-30, you could not GET a submodule via the Repository
Contents API. (You could see the submodule listed when you GET the
directory that the submodule resides it, but you could not GET just the
submodule.) On 2013-04-30, we added the ability to GET a submodule.
(See 81c7e58.) When you GET a submodule, the "type" is returned as
"submodule".
Prior to 2013-04-30, when you listed the contents of a directory using
the Repository Contents API, the output included submodules, but it
returned the "type" as "file". The type *should* be "submodule". We are
leaving this behavior as is for v3, so as not to break any client code
that might depend on this behavior. In the next major version of the
API, the type will be returned as "submodule".
Copy file name to clipboardexpand all lines: content/index.md
+1
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,7 @@ objects.
46
46
*`[ ]` Use JSON to POST to the "repos/:owner/:repo/forks" endpoint, instead of a query string.
47
47
*`[✓]` <del>User Emails come back [as a hash][v3-email] instead of a string.</del>
48
48
*`[ ]` Remove the unused "bio" field for Users.
49
+
*`[ ]` When listing the contents of a directory in the [Repository Contents API](/v3/repos/contents/#get-contents), fix the `type` value returned for submodules: change the value to `"submodule"` (instead of `"file"`).
0 commit comments