~sircmpwn/git.sr.ht#361: 
REST API: POST /api/repos no longer accepts lowercase visibility option

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.

Status
RESOLVED FIXED
Submitter
~nhanb
Assigned to
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~sircmpwn REPORTED FIXED 2 years ago

Adnan Maolood referenced this ticket in commit 95f9f1e.

~sircmpwn 2 years ago

Adnan Maolood referenced this ticket in commit 95f9f1e.

~sircmpwn 2 years ago

Adnan Maolood referenced this ticket in commit 95f9f1e.

Register here or Log in to comment, or comment via email.