netlink: add schemas for YAML specs
authorJakub Kicinski <kuba@kernel.org>
Fri, 20 Jan 2023 17:50:35 +0000 (09:50 -0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 24 Jan 2023 09:58:11 +0000 (10:58 +0100)
commite616c07ca51817ebdb1423807d52cac72d1c22fa
tree1b79f4a24a54054f88e00759d7c7675ba6d1d10f
parent9d6a65079c98f55fa2249c50e517d133d137c251
netlink: add schemas for YAML specs

Add schemas for Netlink spec files. As described in the docs
we have 4 "protocols" or compatibility levels, and each one
comes with its own schema, but the more general / legacy
schemas are superset of more modern ones: genetlink is
the smallest followed by genetlink-c and genetlink-legacy.
There is no schema for raw netlink, yet, I haven't found the time..

I don't know enough jsonschema to do inheritance or something
but the repetition is not too bad. I hope.

Acked-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Documentation/netlink/genetlink-c.yaml [new file with mode: 0644]
Documentation/netlink/genetlink-legacy.yaml [new file with mode: 0644]
Documentation/netlink/genetlink.yaml [new file with mode: 0644]