Skip to content

Commit 28fa8bc

Browse files
committed
rust/config: add a config schema and validation tool
1 parent 6693b69 commit 28fa8bc

8 files changed

Lines changed: 6367 additions & 1 deletion

File tree

rust/Cargo.lock.in

Lines changed: 209 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/config/Cargo.toml.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ name = "suricata-config"
1111

1212
[dependencies]
1313
clap = { version = "4.5.39", default-features = false, features = ["std", "derive", "help", "usage"] }
14+
jsonschema = { version = "0.14.0", default-features = false, features = ["draft202012"] }
1415
saphyr = { version = "0.0.6" }
1516
saphyr-parser = { version = "0.0.6" }
17+
serde_json = { version = "1.0.143", features = ["preserve_order"] }
1618
thiserror = "2.0.12"

rust/config/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
EXTRA_DIST = Cargo.toml
1+
EXTRA_DIST = Cargo.toml \
2+
suricata-yaml.schema.json
23

34
all-local: Cargo.toml

0 commit comments

Comments
 (0)