From 15325f6a4209ee98e207f19db1f0d221e567dc50 Mon Sep 17 00:00:00 2001 From: Ambroise Vincent Date: Fri, 16 Jun 2023 15:47:38 +0200 Subject: [PATCH] ci(pre-commit): add check-jsonschema (#4002) ci(pre-commit): Add check-jsonschema Use it to validate the JSON Schema files against their meta-schema. Issue-Id: SCM-6366 Change-Id: I4b4990972ef7da9b4bfe33dc350fc157a27a47bb Signed-off-by: Ambroise Vincent --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0aed9c0ba2f96..a5ca7b6cf37fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -78,6 +78,12 @@ repos: args: [--quiet] exclude: .cu + - repo: https://github.com/python-jsonschema/check-jsonschema + rev: 0.23.2 + hooks: + - id: check-metaschema + files: ^.+/schema/.*schema\.json$ + - repo: local hooks: - id: prettier-svg