← Back to issue list

schemas: add parts schema and schema validator

View original Github issue

Metadata

Project
craft-parts
Number
#6
Type
pull request
State
closed
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Closed unmerged as superseded by canonical/craft-parts#9, which replaced the JSON-schema validator approach with pydantic-based parts unmarshalling and validation.

Resolution: closed superseded

Reason: The maintainer explicitly commented that the PR was superseded by #9. PR #9 was merged via merge commit 5ec52d53, with implementation commit bbd50615.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Validate the parts definition data against the schema. The validator is largely ported from snapcraft with minor refactoring. Error handling and `jsonschema.ValidationError` post-processing is also ported from snapcraft. Signed-off-by: Claudio Matsuoka <claudio.matsuoka@canonical.com> - [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? -----

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed unmerged as superseded by canonical/craft-parts#9, which replaced the JSON-schema validator approach with pydantic-based parts unmarshalling and validation.
stealth/space-bunny-alpha — closed superseded Parts-schema validation was closed unmerged in favor of pydantic-based unmarshalling, which was delivered by merged PR canonical/craft-parts#9.
stealth/space-bunny-alpha — closed superseded Unmerged after parts-schema validation was replaced by a pydantic refactor; the maintainer closed it as superseded by canonical/craft-parts#9.
qwen/qwen3.6-35b-a3b — — The proposed parts schema and validator were closed and superseded by PR #9. The changes were not merged but replaced by the referenced pull request.
qwen3.6-35b-a3b-mtp-q6 — — Added a parts schema and validator ported from snapcraft. The pull request was closed and superseded by PR #9, which incorporated the changes.

Update history

No update history recorded yet.

Related work

  • Superseded By: canonical/craft-parts#9 (confidence 100%)

    Merged pydantic-based refactor that replaced this unmerged schema validator proposal.

Related issues

Issue Project State Summary Similarity
#781 feat: JSON schema generation for parts craft-parts merged Merged JSON Schema generation for parts in commit 09a99811, adding Pydantic-based schemas and tests after prerequisite #778.
73%