Reproduction:
$ curl -X POST 'https://git.sr.ht/api/repos' -d '{"name": "foo1", "visibility": "public"}' -H 'Content-Type: application/json' -H "Authorization: Bearer $SRHT_TOKEN"
# expected: creates new repo
# got:
{"errors": [{"reason": "public is not a valid Visibility"}]}⏎
Example in API spec uses lowercase, and the API had been working that way until recently. I'm sure because this broke a mirroring script of mine that used to work just fine.
Adnan Maolood referenced this ticket in commit 95f9f1e.
Adnan Maolood referenced this ticket in commit 95f9f1e.
Adnan Maolood referenced this ticket in commit 95f9f1e.