Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | py: move package source into src directory | Jeremy Sowden | 2023-08-03 | 1 | -16/+0 |
| | | | | | | | | | Separate the actual package source from the build files. In addition to being a bit tidier, this will prevent setup.py being erroneously installed when we introduce PEP-517 support in a later commit. Signed-off-by: Jeremy Sowden <jeremy@azazel.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> | ||||
* | py: Implement JSON validation in nftables module | Phil Sutter | 2019-05-31 | 1 | -0/+16 |
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@nwl.cc> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> |