← Back to issue list

feat: auto-generate charmcraft.yaml json schema

View original Github issue

Metadata

Project
charmcraft
Number
#2183
Type
pull request
State
merged
Author
bepri
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2183 as commit b4aee1e9, adding generated charmcraft.yaml JSON Schema support, CI drift checks, and a Makefile regeneration target.

Resolution: closed resolved

Reason: PR #2183 was merged into main as commit b4aee1e9. It introduced schema generation tooling and committed schema/charmcraft.json.

Evaluated by: mr-cal-bot

No scores available.

Issue body

Adds plumbing for creating a JSON schema for project files, a CI workflow to check for changes, and a Makefile recipe to regenerate the schema. Once this is merged, I will have to have a PR in the schema store to point to this repository be merged. Until then, the only way to test this is to locally point your editor to `schema/charmcraft.json` for `**/charmcraft.yaml`. Corresponding schema store PR: https://github.com/SchemaStore/schemastore/pull/4472 CRAFT-2806.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged PR #2183 as commit b4aee1e9, adding generated charmcraft.yaml JSON Schema support, CI drift checks, and a Makefile regeneration target.
stealth/space-bunny-alpha — closed resolved Merged as commit b4aee1e9. Adds auto-generated charmcraft.yaml JSON schema at schema/charmcraft.json, a CI drift-check workflow, and a Makefile regeneration target for CRAFT-2806; schema has been maintained in later commits.
stealth/space-bunny-alpha — closed resolved Merged charmcraft PR #2183 as commit b4aee1e9, adding automatic charmcraft.yaml JSON Schema generation, CI drift checks, and a Makefile regeneration target for CRAFT-2806.
qwen/qwen3.6-35b-a3b — — Merged. Introduces automated JSON schema generation for charmcraft.yaml, a CI workflow to detect schema changes, and a Makefile recipe for regeneration. Full editor support depends on a separate SchemaStore repository merge.
qwen3.6-35b-a3b-mtp-q6 — — Merged auto-generation plumbing for charmcraft.yaml JSON schema, adding a CI workflow and Makefile recipe. Enables local editor validation via schema/charmcraft.json. Requires a separate SchemaStore PR for official integration. Resolves CRAFT-2806.

Update history

No update history recorded yet.

Related work

  • Related To: schemastore#4472 (confidence 100%)

    Companion SchemaStore PR intended to publish the generated Charmcraft schema.

Related issues

Issue Project State Summary Similarity
#687 Add a jsonschema for charmcraft.yaml in jsonstore charmcraft closed Resolved by merged PR canonical/charmcraft#2183 (commit b4aee1e9), adding automatic charmcraft.yaml schema generation, a checked-in schema, and CI drift and validation checks.
84%
#471 config: add charm part to documentation (CRAFT-356) charmcraft merged Merged PR #471 via commit e0b18661, documenting the charm part in the configuration schema for CRAFT-356.
71%