File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,13 @@ def create_schema(root_id):
246
246
'title' : UNICODE_TEST_STRING ,
247
247
'type' : 'string' ,
248
248
},
249
+ 'testSA' : {
250
+ 'title' : 'SA title' ,
251
+ 'type' : 'array' ,
252
+ 'items' : {
253
+ 'type' : 'string'
254
+ }
255
+ }
249
256
}
250
257
}
251
258
if root_id :
@@ -447,7 +454,32 @@ def create_schema(root_id):
447
454
[{
448
455
'ROOT_ID' : 1
449
456
}]
450
- )
457
+ ),
458
+ # Test arrays of strings
459
+ (
460
+ [{
461
+ 'ROOT_ID_TITLE' : 1 ,
462
+ 'Identifier' : 2 ,
463
+ 'SA title' : 'a' ,
464
+ }],
465
+ [{
466
+ 'ROOT_ID' : 1 ,
467
+ 'id' : 2 ,
468
+ 'testSA' : [ 'a' ],
469
+ }]
470
+ ),
471
+ (
472
+ [{
473
+ 'ROOT_ID_TITLE' : 1 ,
474
+ 'Identifier' : 2 ,
475
+ 'SA title' : 'a;b' ,
476
+ }],
477
+ [{
478
+ 'ROOT_ID' : 1 ,
479
+ 'id' : 2 ,
480
+ 'testSA' : [ 'a' , 'b' ],
481
+ }]
482
+ ),
451
483
]
452
484
453
485
ROOT_ID_PARAMS = [
You can’t perform that action at this time.
0 commit comments