← Back to issue list

schema: add regex to validate description is non-empty

View original Github issue

Metadata

Project
snapcraft
Number
#3303
Type
pull request
State
merged
Author
cjp256
Labels
Created
Updated
Closed

Current evaluation

Merged a schema update adding a regex pattern to validate non-empty snap descriptions. This catches metadata errors earlier in the build process. Approved by maintainer, passed CI checks, and integrated into the main branch.

Suggested action:

No scores available.

Issue body

Empty descriptions will fail late in the build with: Failed to generate snap metadata: Missing required key(s) in snapcraft.yaml: 'description'. Either specify the missing key(s), or use 'adopt-info' to get them from a part. Add a schema regex pattern to validate that the string is non-empty so the error will happen prior to build, if specified. Signed-off-by: Chris Patterson <chris.patterson@canonical.com> - [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)? - [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)? - [ ] Have you successfully run `./runtests.sh static`? - [ ] Have you successfully run `./runtests.sh tests/unit`? -----

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged a schema update adding a regex pattern to validate non-empty snap descriptions. This catches metadata errors earlier in the build process. Approved by maintainer, passed CI checks, and integrated into the main branch.
qwen3.6-35b-a3b-mtp-q6 Merged schema update adding a regex pattern to validate non-empty descriptions in snapcraft.yaml. This shifts validation to the schema layer, preventing late-stage build failures for missing description fields.
qwen3.6-35b-a3b-mtp-q6 Merged a schema update adding a regex pattern to validate non-empty descriptions in snapcraft.yaml. This prevents late build failures by catching missing descriptions earlier in the validation phase.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1924 schema: update version regex snapcraft merged Merged update to the schema version regex, aligning validation with snapd and review tools. Approved by three reviewers, passed CI checks, and modified two files.
76%
#1957 schema: improve the snap name's validator snapcraft merged Merged schema validator improvements. Fixed exponential regex performance, added length validation, and clarified error messages. Approved by two reviewers, modified two files, and aligns with project-wide validation unification.
74%