@@ -6,6 +6,9 @@ $schema: https://json-schema.org/draft-07/schema
66
77# Common defines
88$defs :
9+ name :
10+ type : string
11+ pattern : ^[0-9a-z-]+$
912 uint :
1013 type : integer
1114 minimum : 0
@@ -76,7 +79,7 @@ properties:
7679 additionalProperties : False
7780 properties :
7881 name :
79- type : string
82+ $ref : ' #/$defs/name '
8083 header :
8184 description : For C-compatible languages, header which already defines this value.
8285 type : string
@@ -103,7 +106,7 @@ properties:
103106 additionalProperties : False
104107 properties :
105108 name :
106- type : string
109+ $ref : ' #/$defs/name '
107110 value :
108111 type : integer
109112 doc :
@@ -132,7 +135,7 @@ properties:
132135 additionalProperties : False
133136 properties :
134137 name :
135- type : string
138+ $ref : ' #/$defs/name '
136139 type :
137140 description : The netlink attribute type
138141 enum : [ u8, u16, u32, u64, s8, s16, s32, s64, string, binary ]
@@ -152,6 +155,9 @@ properties:
152155 the right formatting mechanism when displaying values of this
153156 type.
154157 enum : [ hex, mac, fddi, ipv4, ipv6, uuid ]
158+ struct :
159+ description : Name of the nested struct type.
160+ type : string
155161 # End genetlink-legacy
156162
157163 attribute-sets :
@@ -166,7 +172,7 @@ properties:
166172 name :
167173 description : |
168174 Name used when referring to this space in other definitions, not used outside of the spec.
169- type : string
175+ $ref : ' #/$defs/name '
170176 name-prefix :
171177 description : |
172178 Prefix for the C enum name of the attributes. Default family[name]-set[name]-a-
@@ -190,6 +196,9 @@ properties:
190196 attr-max-name :
191197 description : The explicit name for last member of attribute enum.
192198 type : string
199+ header :
200+ description : For C-compatible languages, header which already defines this attribute set.
201+ type : string
193202 # End genetlink-c
194203 attributes :
195204 description : List of attributes in the space.
@@ -200,11 +209,11 @@ properties:
200209 additionalProperties : False
201210 properties :
202211 name :
203- type : string
212+ $ref : ' #/$defs/name '
204213 type : &attr-type
205214 description : The netlink attribute type
206215 enum : [ unused, pad, flag, binary, bitfield32,
207- uint, sint, u8, u16, u32, u64, s32, s64,
216+ uint, sint, u8, u16, u32, u64, s8, s16, s32, s64,
208217 string, nest, indexed-array, nest-type-value ]
209218 doc :
210219 description : Documentation of the attribute.
@@ -342,7 +351,7 @@ properties:
342351 properties :
343352 name :
344353 description : Name of the operation, also defining its C enum value in uAPI.
345- type : string
354+ $ref : ' #/$defs/name '
346355 doc :
347356 description : Documentation for the command.
348357 type : string
0 commit comments