[Schema Inaccuracy] Example and schema mismatch for `#/paths/~1users~1{username}~1attestations~1bulk-list/post`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- openapi
- Domain
- api
Research direction
Start with the example at #/components/examples/list-attestations-bulk/value and compare attestations_subject_digests with the schemas for the two affected POST paths. Confirm whether the object or array shape is authoritative, then make the schema and example agree for both endpoints. Done means the documented example validates against both affected schemas.
Written by the indexing model from the issue text.
Description
Schema Inaccuracy
This is the JSON ref for the example
#/components/examples/list-attestations-bulk/value
Schema and example mismatch. The value for attestations_subject_digests is expected to be an object, but the example contains an array.
Here's a snippet
1: {
> 2: "attestations_subject_digests" : [ {
3: "sha256:abc" : [ {
4: "bundle" : {
5: "mediaType" : "application/vnd.dev.sigstore.bundle.v0.3+json",
6: "verificationMaterial" : {
Affected Schema Refs
#/paths/~1users~1{username}~1attestations~1bulk-list/post
#/paths/~1orgs~1{org}~1attestations~1bulk-list/post
Expected
The schema and example are in sync
Reproduction Steps
I could reproduce this in
- fpt
- ghec
- Dominant language
- No language data
- Stars
- 1.6k
- Forks
- 342
- Avg merge
- 3h 33m
- Merged PRs (30d)
- 51
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 github/rest-api-description
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
github/rest-api-description#7201 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
github/rest-api-description#7163 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7162 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
github/rest-api-description#7135 ·
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
github/rest-api-description#7111 · 1 comment ·
All issues in github/rest-api-description
Similar issues
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100