digitalbazaar / digitalbazaar/zcap
Update `checkCapability` to disallow additional unknown properties
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29
- Forks
- 4
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 1
Description
This should throw if any properties not expected are present -- this should automatically cover properties from older versions of zcap such as referenceId, which are no longer permitted.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start by locating the checkCapability entry point and inspect how expected properties are validated. Add coverage for an unexpected property, including the older referenceId property, and confirm that checkCapability throws while valid capabilities continue to pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100