From ef2ff133007855707f978f75ac638af3d5c06fbe Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Mon, 27 May 2019 13:36:41 +0200 Subject: py: Implement JSON validation in nftables module Using jsonschema it is possible to validate any JSON input to make sure it formally conforms with libnftables JSON API requirements. Implement a simple validator class for use within a new Nftables class method 'json_validate' and ship a minimal schema definition along with the package. Signed-off-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- py/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'py/Makefile.am') diff --git a/py/Makefile.am b/py/Makefile.am index 0963535d..9fce7c9e 100644 --- a/py/Makefile.am +++ b/py/Makefile.am @@ -1,4 +1,4 @@ -EXTRA_DIST = setup.py __init__.py nftables.py +EXTRA_DIST = setup.py __init__.py nftables.py schema.json if HAVE_PYTHON -- cgit v1.2.3