← Back to issue list

Improve platform validation error message

View original Github issue

Metadata

Project
craft-application
Number
#347
Type
issue
State
open
Author
cmatsuoka
Labels
Created
Updated
Closed

Current evaluation

Request to improve the cryptic pydantic validation error shown when platforms/build-on is malformed in a craft project file. No maintainer response or labels; only an auto Jira-sync comment. Current code already converts pydantic errors via CraftValidationError.from_pydantic, so the raw message may be outdated.

Suggested action: needs triage

Reason: No maintainer has acknowledged, labelled, or responded to this issue — the only comment is the autogenerated Jira-sync bot (CRAFT-2919). The reported raw 'wheelcraft internal error: ValidationError(...)' message may no longer be reproducible because craft_application/models/base.py now wraps pydantic.ValidationError in CraftValidationError.from_pydantic with formatted output, so a maintainer should verify current behaviour before deciding whether this is still actionable.

Impact: 40 Quick Win: 26.0 Staleness: 72 Complexity: 35 Confidence: 60 Support Request: 10

Issue body

### What needs to get done Display better validation error messages to the user when platforms are not correctly defined. This is a follow-up to # ### Why it needs to get done This is the current validation error message: ``` wheelcraft internal error: ValidationError(model='BuildPlanner', errors=[{'loc': ('platforms', 'build-on'), 'msg': 'value is not a valid list', 'type': 'type_error.list'}]) ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 40
Quick Win: 26.0
Staleness: 72
Complexity: 35
Confidence: 60
Support Request: 10
needs triage Request to improve the cryptic pydantic validation error shown when platforms/build-on is malformed in a craft project file. No maintainer response or labels; only an auto Jira-sync comment. Current code already converts pydantic errors via CraftValidationError.from_pydantic, so the raw message may be outdated.
qwen/qwen3.6-35b-a3b
Staleness: 90
Complexity: 10
Confidence: 80
Support Request: 0
needs triage Improve validation error messages for platform definitions to replace raw Pydantic output. Open for over two years with no maintainer triage or follow-up beyond a Jira sync bot.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 80
Support Request: 10
needs triage Improve platform validation error messages to replace raw Pydantic errors with user-friendly text. Open for over two years with no labels, assignee, or maintainer assessment.
qwen3.6-35b-a3b-mtp-q6
Staleness: 90
Complexity: 10
Confidence: 70
Support Request: 5
close stale Replace cryptic platform validation errors with clear, user-friendly messages. Open, synced to Jira CRAFT-2919, and awaiting triage or assignment after months of inactivity.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.