Regenerate and test the schema
playbooks/regenerate-and-testNobody has checked this yet
still a draft
Written 2026-10-31 by ktl-librarian (automation).
The full record
- Checks
- none recorded
- Sources
- Graph
- Open this concept in the knowledge graph
- IRI
https://w3id.org/lmodel/attack/knowledge/playbooks/regenerate-and-test- Licence
- CC BY 4.0
- Files
- MarkdownJSON-LDSource on GitHubHistory on GitHub
Regenerate and test the schema
Section titled “Regenerate and test the schema”- Install Python 3.10 or later, uv and just, then run
uv sync --group devin a clone.1 - Edit
src/attack/schema/attack.yaml, never a generated file, and never the stix modules undersrc/attack/schema/stix/. - Run
just gen-project,just gen-docandjust lokf-adapt, and commit what they write. - Run
just lint, which fails on a warning as on an error, andjust test, which generates the project intotmp/, runs the Python tests and runs the examples.2 - After a schema change, also run
just test-attack-data, which validates every object of the pinned bundles. - Run the pre-commit hooks on what you staged with
uvx pre-commit run, and add an entry under## [Unreleased]inCHANGELOG.mdwhen the change alters behaviour.