Repository navigation
Description
The CycloneDX specification must have grammar and style checks. Ideally, checks would be performed:
- On demand via GitHub Action
- On PRs - fail if grammar or style violations occur
Grammar check should adhere to ISO House Style where British English is used to describe the specification, but is not required for the specification itself. The ISO House Style also requires American English for certain words with Greek origin (e.g. standardization - with a 'z' not an 's').
Acceptance criteria:
-
Scoped to JSON Schema only. Checks for XML and Protobuf are optional and nice-to-have.
-
Schema properties
- American English spell check on property names
- Enforce lower camel case on property names
-
Property titles:
- Titles must be sentence case
- British English (ISO House Style) spell check enforced
-
Property descriptions (description and meta:enum)
- Descriptions must be sentence case
- Descriptions must form at least one complete sentence
- Descriptions must end in a single full-stop (.)
- British English (ISO House Style) spell check enforced
- Grammar check
- Ensure RFC-2119 style capitalization of MUST, SHOULD, etc are NOT used in descriptions
-
Enumeration values
- TODO: Define
Experiments
I have been experimenting with spelling and grammar checks with GitHub Actions in my personal repo. See
https://github.com/stevespringett/jsonschema-grammar-action and https://github.com/stevespringett/jsonschema-grammar-action/tree/main/.github/workflows
References
The Ecma Rules for Editing and Distribution may be used as reference in addition to the ISO House Style.
Activity
[-]Grammer and style check[/-][+]Grammar and style check[/+]stevespringett commentedon Nov 12, 2025
Additionally, the word "must" does not imply a requirement for ISO standards. The word "shall" does mean that something is a requirement. Therefore, much like we did for 1.7 in an automated way, we need to replace in the schemas themselves along with checking and blocking on the use of the word.
jkowalleck commentedon Aug 24, 2026
workin on some automation for this.
probably based on the existing tooling we have.
jkowalleck commentedon Aug 25, 2026
added linter as a regular GH workflow: #1048
this runs on pullrequests and in major merges/pushes
jkowalleck commentedon Aug 27, 2026
re: #492 (comment)
current status as of https://github.com/CycloneDX/specification/actions/runs/33088497811
Summary for 2.0
Reports: https://github.com/CycloneDX/specification/actions/runs/33088497811/artifacts/9653288377
By CheckID
description-full-stopdescription-oxford-englishduplicate-contentduplicate-definitionsenum-value-formattingenum-value-otherformatting-indentmeta-enum-full-stopmodel-property-ordermodel-structureno-must-wordno-uppercase-rfcproperty-name-american-englishschema-commentschema-draftschema-id-patterntitle-formattingBy File
schema/2.0/cyclonedx-2.0.schema.jsonschema/2.0/cyclonedx-api-2.0.schema.jsonschema/2.0/model/cyclonedx-ai-modelcard-2.0.schema.jsonschema/2.0/model/cyclonedx-annotation-2.0.schema.jsonschema/2.0/model/cyclonedx-behavior-2.0.schema.jsonschema/2.0/model/cyclonedx-blueprint-2.0.schema.jsonschema/2.0/model/cyclonedx-business-objective-2.0.schema.jsonschema/2.0/model/cyclonedx-certification-2.0.schema.jsonschema/2.0/model/cyclonedx-citation-2.0.schema.jsonschema/2.0/model/cyclonedx-common-2.0.schema.jsonschema/2.0/model/cyclonedx-component-2.0.schema.jsonschema/2.0/model/cyclonedx-composition-2.0.schema.jsonschema/2.0/model/cyclonedx-control-2.0.schema.jsonschema/2.0/model/cyclonedx-cryptography-2.0.schema.jsonschema/2.0/model/cyclonedx-data-2.0.schema.jsonschema/2.0/model/cyclonedx-declaration-2.0.schema.jsonschema/2.0/model/cyclonedx-definition-2.0.schema.jsonschema/2.0/model/cyclonedx-dependency-2.0.schema.jsonschema/2.0/model/cyclonedx-evidence-2.0.schema.jsonschema/2.0/model/cyclonedx-formulation-2.0.schema.jsonschema/2.0/model/cyclonedx-jss_X590_2023_10-2.0.schema.jsonschema/2.0/model/cyclonedx-license-2.0.schema.jsonschema/2.0/model/cyclonedx-metadata-2.0.schema.jsonschema/2.0/model/cyclonedx-party-2.0.schema.jsonschema/2.0/model/cyclonedx-patent-2.0.schema.jsonschema/2.0/model/cyclonedx-perspective-2.0.schema.jsonschema/2.0/model/cyclonedx-physical-2.0.schema.jsonschema/2.0/model/cyclonedx-profile-2.0.schema.jsonschema/2.0/model/cyclonedx-release-notes-2.0.schema.jsonschema/2.0/model/cyclonedx-requirement-2.0.schema.jsonschema/2.0/model/cyclonedx-risk-2.0.schema.jsonschema/2.0/model/cyclonedx-standard-2.0.schema.jsonschema/2.0/model/cyclonedx-threat-2.0.schema.jsonschema/2.0/model/cyclonedx-usecase-2.0.schema.jsonschema/2.0/model/cyclonedx-vulnerability-2.0.schema.jsonschema/2.0/model/cyclonedx-weakness-2.0.schema.json