netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Eric Garver <eric@garver.life>
To: Phil Sutter <phil@nwl.cc>
Cc: Pablo Neira Ayuso <pablo@netfilter.org>,
	netfilter-devel@vger.kernel.org,
	Jones Desougi <jones.desougi+netfilter@gmail.com>
Subject: Re: [nft PATCH v3 1/2] py: Implement JSON validation in nftables module
Date: Wed, 22 May 2019 13:38:05 -0400	[thread overview]
Message-ID: <20190522173805.k2shblya27cntlg3@egarver.localdomain> (raw)
In-Reply-To: <20190522161453.23096-2-phil@nwl.cc>

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@nwl.cc>
> ---
> 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@garver.life>

  reply	other threads:[~2019-05-22 17:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22 16:14 [nft PATCH v3 0/2] JSON schema for nftables.py Phil Sutter
2019-05-22 16:14 ` [nft PATCH v3 1/2] py: Implement JSON validation in nftables module Phil Sutter
2019-05-22 17:38   ` Eric Garver [this message]
2019-05-22 16:14 ` [nft PATCH v3 2/2] tests/py: Support JSON validation Phil Sutter
2019-05-22 17:39   ` Eric Garver
2019-05-24 20:45 ` [nft PATCH v3 0/2] JSON schema for nftables.py Pablo Neira Ayuso
2019-05-27  9:57   ` Phil Sutter
2019-05-27 10:02     ` Pablo Neira Ayuso
2019-05-27 10:51       ` Phil Sutter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190522173805.k2shblya27cntlg3@egarver.localdomain \
    --to=eric@garver.life \
    --cc=jones.desougi+netfilter@gmail.com \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=phil@nwl.cc \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).