@@ -12,3 +12,39 @@ repos:
1212 - id : check-merge-conflict
1313 args : ["--assume-in-merge"]
1414 exclude : \.adoc$ # sections titles Level 6 "=======" get flagged otherwise
15+
16+ - repo : https://github.com/rbubley/mirrors-prettier
17+ rev : v3.3.3
18+ hooks :
19+ - id : prettier
20+ files : \.json$
21+ exclude : schemas/json-schema-draft-07.json
22+
23+ - repo : https://github.com/python-jsonschema/check-jsonschema
24+ rev : 0.29.4
25+ hooks :
26+ - id : check-jsonschema
27+ alias : check-jsonschema-inst
28+ files : ^arch/inst/.*\.(yaml|yml)$
29+ args : ["--schemafile", "schemas/inst_schema.json"]
30+ - id : check-jsonschema
31+ alias : check-jsonschema-csr
32+ files : ^arch/csr/.*\.(yaml|yml)$
33+ args : ["--schemafile", "schemas/csr_schema.json"]
34+ - id : check-jsonschema
35+ alias : check-jsonschema-ext
36+ files : ^arch/ext/.*\.(yaml|yml)$
37+ args : ["--schemafile", "schemas/ext_schema.json"]
38+ - id : check-jsonschema
39+ alias : check-jsonschema-cert-model
40+ files : ^arch/certificate_model/.*\.(yaml|yml)$
41+ args : ["--schemafile", "schemas/cert_model_schema.json"]
42+ - id : check-jsonschema
43+ alias : check-jsonschema-cert-class
44+ files : ^arch/certificate_class/.*\.(yaml|yml)$
45+ args : ["--schemafile", "schemas/cert_class_schema.json"]
46+ # Commenting because throwing errors and not sure this is complete yet
47+ # - id: check-jsonschema
48+ # alias: check-jsonschema-manual-version
49+ # files: ^arch/manual/.*\.(yaml|yml)$
50+ # args: ["--schemafile", "schemas/manual_version_schema.json"]
0 commit comments