On Wed, May 22, 2019 at 06:14:52PM +0200, Phil Sutter wrote: > 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 <phil@xxxxxx> > --- > Changes since v2: > - Replace file() as that is not supported by python3, instead use open() > and that fancy 'with' statement. > --- Thanks Phil! Acked-by: Eric Garver <eric@xxxxxxxxxxx>