Skip to content

JSON schema for nftables.py

Phil Sutter netfilter-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyIn review
  2. v32 patches 6 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Drop "id" property in schema.json for now.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2py: Implement JSON validation in nftables modulepy/Makefile.am py/nftables.py py/schema.json +1 more+47 -10 replies
2/2tests/py: Support JSON validationtests/py/nft-test.py+24 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [nft PATCH v4 0/2] JSON schema for nftables.py

Round four of JSON validation enhancement.

Changes since v3:
- Drop "id" property in schema.json for now.

Changes since v2:
- Make enhancement to nftables module Python3 compliant.
- Complain in nft-test.py if --schema was given without --json.

Changes since v1:
- Fix patch 2 commit message, thanks to Jones Desougi who reported the inconsistency.

Changes since RFC:
- Import builtin traceback module unconditionally.

Phil Sutter (2):
py: Implement JSON validation in nftables module tests/py: Support JSON validation

 py/Makefile.am       |  2 +-
 py/nftables.py       | 29 +++++++++++++++++++++++++++++
 py/schema.json       | 16 ++++++++++++++++
 py/setup.py          |  1 +
 tests/py/nft-test.py | 25 ++++++++++++++++++++++++-
 5 files changed, 71 insertions(+), 2 deletions(-)
 create mode 100644 py/schema.json
Signature · 1 line
2.21.0