OAuth2 security requirement for /oauth2/revoke uses null instead of an empty scope list
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- openapi
- Domain
- api, documentation
Research direction
Find the OpenAPI definition file for the Square Connect API, likely in the repository root or a spec/ directory. Locate the security requirement for the POST /oauth2/revoke endpoint. Change the 'oauth2' value from null to an empty array []. Validate the change by running any OpenAPI validation tool mentioned in the project, or check if the repository has a test or lint script for the specification.
Written by the indexing model from the issue text.
Description
The OpenAPI definition for POST /oauth2/revoke currently contains:
"security": [
{
"oauth2": null
}
]
In an OpenAPI Security Requirement Object, the value must be an array of scope names. When no scopes are required, it should be an empty array:
"security": [
{
"oauth2": []
}
]
Strict OpenAPI parsers reject the current document. Normalizing this value to [] makes the complete specification pass validation.
- Dominant language
- Mustache
- Stars
- 76
- Forks
- 36
- Avg merge
- 3h 14m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from square/connect-api-specification
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Invalid $ref values Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
square/connect-api-specification#205 · 1 comment · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
square/connect-api-specification#201 · 1 comment · 1 reaction ·
All issues in square/connect-api-specification
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
microsoft/magentic-ui#588 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
alexgorbatchev/simple-ptt#3 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
CorrelAid/formtransform#44 ·