← Back to issue list

Prototype craft-store for returning pydantic models for all requests

View original Github issue

Metadata

Project
craft-store
Number
#98
Type
issue
State
open
Author
syu-w
Labels
—
Created
Updated
Closed
—

Current evaluation

Typed Pydantic responses are partially implemented, but several craft-store endpoints still expose raw JSON and the broad goal needs an endpoint-by-endpoint scope

Suggested action: needs triage

Reason: The issue is unlabelled and has no maintainer comments, while CRAFT-1952 broadly requests Pydantic models for all responses without defining the endpoint inventory or compatibility policy. Current code is mixed: notify_revision returns RevisionsResponseModel and list_revisions returns RevisionModel, while whoami still returns dict[str, Any], demonstrating partial implementation but also requiring broader schema and consumer-impact analysis.

Evaluated by: mr-cal-bot

Impact: 46 Quick Win: 8 Complexity: 64 Confidence: 92 Actionability: 47

Issue body

### What needs to get done Move all API calls response to pydantic models. ### Why it needs to get done Allow others easier to use results CRAFT-1952

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 46
Quick Win: 8
Complexity: 64
Confidence: 92
Actionability: 47
needs triage Typed Pydantic responses are partially implemented, but several craft-store endpoints still expose raw JSON and the broad goal needs an endpoint-by-endpoint scope
stealth/space-bunny-alpha
Impact: 45
Quick Win: 4
Complexity: 72
Confidence: 55
Actionability: 32
needs triage Maintainer-authored feature request to make all craft-store API calls return pydantic models instead of raw dicts (CRAFT-1952). Open with no labels, comments, or progress in ~3 years.
qwen/qwen3.6-35b-a3b
Impact: 40
Quick Win: 8
Complexity: 50
Confidence: 40
Actionability: 40
needs triage Feature request to convert all craft-store API responses to pydantic models. Issue is 3 years old with no maintainer engagement or labels.
qwen/qwen3.8-27b
Impact: 50
Quick Win: 20
Staleness: 85
Complexity: 60
Confidence: 70
Support Request: 0
needs triage Prototype to convert all craft-store API responses to pydantic models. Partially done: some methods (list_revisions, list_resource_revisions) already return pydantic models, but others (whoami, upload_file, push_resource_revision) still return dicts or primitives. No activity in 3 years.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 35
Confidence: 85
Support Request: 5
close stale Prototype to refactor craft-store API responses to Pydantic models. Unassigned, unlabeled, and inactive for nearly three years with zero maintainer engagement.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 45
Confidence: 85
Support Request: 5
close stale Prototype to convert API responses to Pydantic models for easier consumption. Open for nearly 3 years with no maintainer response, comments, or labels.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.