Skip to content

Commit 1eecd60

Browse files
authored
Export OpenVEX VEX document (#442)
Signed-off-by: tdruez <[email protected]>
1 parent bd917ac commit 1eecd60

File tree

19 files changed

+1205
-46
lines changed

19 files changed

+1205
-46
lines changed

dejacode_toolkit/csaf/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ datamodel-codegen \
1616
--output-model-type pydantic_v2.BaseModel \
1717
--input-file-type jsonschema \
1818
--target-python-version $TARGET_PYTHON_VERSION \
19-
--custom-file-header-path dejacode_toolkit/csaf/HEADER \
19+
--custom-file-header-path dejacode_toolkit/HEADER \
2020
--use-schema-description \
2121
--use-default-kwarg
2222

dejacode_toolkit/openvex/README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
OpenVEX Models
2+
==============
3+
4+
Install the code generator
5+
--------------------------
6+
7+
$ pip install 'datamodel-code-generator'
8+
9+
Generate the models
10+
-------------------
11+
12+
$ datamodel-codegen \
13+
--input dejacode_toolkit/openvex/openvex_json_schema_0.2.0.json \
14+
--output dejacode_toolkit/openvex/__init__.py \
15+
--output-model-type msgspec.Struct \
16+
--input-file-type jsonschema \
17+
--target-python-version 3.13 \
18+
--custom-file-header-path dejacode_toolkit/HEADER \
19+
--wrap-string-literal \
20+
--use-double-quotes \
21+
--disable-future-imports

0 commit comments

Comments
 (0)