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
gr2m
changed the title
[Schema Inaccuracy] <Describe Problem>
[Schema Inaccuracy] incorret requestBody schema for branch protection endpoints
Nov 11, 2020
gwestersf
changed the title
[Schema Inaccuracy] incorret requestBody schema for branch protection endpoints
[Schema Inaccuracy] incorrect requestBody schema for branch protection endpoints
Nov 23, 2020
Schema Inaccuracy
These endpoints now accept a namespaced array in the request body, as documented:
POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
)https://docs.github.com/rest/reference/repos#add-status-check-contexts
PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
)https://docs.github.com/rest/reference/repos#set-status-check-contexts
DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts
)https://docs.github.com/rest/reference/repos#remove-status-check-contexts
POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
)https://docs.github.com/rest/reference/repos#add-app-access-restrictions
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
)https://docs.github.com/rest/reference/repos#set-app-access-restrictions
DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps
)https://docs.github.com/rest/reference/repos#remove-app-access-restrictions
POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
)https://docs.github.com/rest/reference/repos#add-team-access-restrictions
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
)https://docs.github.com/rest/reference/repos#set-team-access-restrictions
DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams
)https://docs.github.com/rest/reference/repos#remove-team-access-restrictions
POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
)https://docs.github.com/rest/reference/repos#add-user-access-restrictions
PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
)https://docs.github.com/rest/reference/repos#set-user-access-restrictions
DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users
)https://docs.github.com/rest/reference/repos#remove-user-access-restrictions
but the schema for these endpoints is currently defined as
Expected
the schema should instead be an object with a single property, e.g.
Reproduction Steps
See
curl
examples in the docs linked aboveThe text was updated successfully, but these errors were encountered: