Commit d27ba70
committed
POST /gists does not require :public
There is a mismatch between the documentation and the API.
If I `POST /gists` without passing a `public` parameter, a secret gist gets
created (201 returned) and is visible to me at http://gist.github.com --
however the response has the attribute `public` set to nil.
If this is the desired behavior, then my commit fixes the documentation to match the API.
If this is not the desired behavior, then the API should return 422 if `public` is not specified1 parent 9145f1a commit d27ba70
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments