@@ -167,6 +167,7 @@ class A:
167167 three : defs .list [defs .boolean ]
168168 four : defs .list [defs .optional [defs .string ]]
169169 five : defs .predicate
170+ six : defs .set [defs .string ]
170171
171172 assert data .classes == {
172173 'A' : schema .Class ('A' , properties = [
@@ -175,6 +176,7 @@ class A:
175176 schema .RepeatedProperty ('three' , 'boolean' ),
176177 schema .RepeatedOptionalProperty ('four' , 'string' ),
177178 schema .PredicateProperty ('five' ),
179+ schema .RepeatedUnorderedProperty ('six' , 'string' ),
178180 ]),
179181 }
180182
@@ -193,6 +195,7 @@ class B(A):
193195 two : defs .optional [A ]
194196 three : defs .list [A ]
195197 four : defs .list [defs .optional [A ]]
198+ five : defs .set [A ]
196199
197200 assert data .classes == {
198201 'A' : schema .Class ('A' , derived = {'B' }),
@@ -201,6 +204,7 @@ class B(A):
201204 schema .OptionalProperty ('two' , 'A' ),
202205 schema .RepeatedProperty ('three' , 'A' ),
203206 schema .RepeatedOptionalProperty ('four' , 'A' ),
207+ schema .RepeatedUnorderedProperty ('five' , 'A' ),
204208 ]),
205209 }
206210
@@ -213,13 +217,15 @@ class A:
213217 two : defs .optional ["A" ]
214218 three : defs .list ["A" ]
215219 four : defs .list [defs .optional ["A" ]]
220+ five : defs .set ["A" ]
216221
217222 assert data .classes == {
218223 'A' : schema .Class ('A' , properties = [
219224 schema .SingleProperty ('one' , 'A' ),
220225 schema .OptionalProperty ('two' , 'A' ),
221226 schema .RepeatedProperty ('three' , 'A' ),
222227 schema .RepeatedOptionalProperty ('four' , 'A' ),
228+ schema .RepeatedUnorderedProperty ('five' , 'A' ),
223229 ]),
224230 }
225231
0 commit comments