fix: collections API should parse skills_json into structured response
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
Research direction
Start in internal/store/store.go and internal/handler/collections.go, tracing how skills_json is loaded and serialized for GET /api/v1/collections/{name}. The work is done when the endpoint returns a skills array of structured objects rather than an escaped JSON string, matching the response example.
Written by the indexing model from the issue text.
Description
From code review of PR #15.
GET /api/v1/collections/{name} returns skills_json as a JSON-encoded string inside JSON, which is awkward for API consumers:
{"skills_json": "[{\"name\":\"s1\",\"image\":\"quay.io/org/s1:1.0.0\"}]"}
Should return parsed structure:
{"skills": [{"name": "s1", "image": "quay.io/org/s1:1.0.0"}]}
Options:
- Add a
Skills []SkillReffield toCollectionwith customMarshalJSON - Or use a response DTO that parses
skills_jsonbefore serialization
Files: internal/store/store.go, internal/handler/collections.go
- Dominant language
- HTML
- Stars
- 9
- Forks
- 3
- Avg merge
- 18m
- Merged PRs (30d)
- 1
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.
More from redhat-et/skillimage
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
redhat-et/skillimage#17 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
redhat-et/skillimage#44 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 57/100
redhat-et/skillimage#36 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
redhat-et/skillimage#33 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
redhat-et/skillimage#32 ·
All issues in redhat-et/skillimage
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