Commit 80eb725 1 parent d0469df commit 80eb725 Copy full SHA for 80eb725
File tree 1 file changed +6
-1
lines changed
primer-service/test/Tests
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -160,8 +160,13 @@ genPaginatedMeta = do
160
160
tasty_PaginatedMeta :: Property
161
161
tasty_PaginatedMeta = testToJSON genPaginatedMeta
162
162
163
+ -- this fails for G.alphaNum, i.e. for strings, as have special not-just-a-list handling!
164
+ -- cf toschema for polymorphic things issue
165
+ -- BUT, we want a polymorphic instance, as we may well paginate other things than lists in the future
166
+ -- TODO: any polymorphic thing should be checked at a few types (especially String, as that has special serialisation)!
167
+ -- cf https://github.com/biocad/openapi3/pull/19/files -- the old polymorphic solution is no more
163
168
tasty_Paginated :: Property
164
- tasty_Paginated = testToJSON $ Paginated <$> genPaginatedMeta <*> G. list (R. linear 0 10 ) genSession
169
+ tasty_Paginated = testToJSON $ Paginated <$> genPaginatedMeta <*> G. list (R. linear 0 10 ) genSession -- G.alphaNum
165
170
166
171
tasty_Paginated2 :: Property
167
172
tasty_Paginated2 = testToJSON $ Paginated <$> genPaginatedMeta <*> G. list (R. linear 0 10 ) (G. string (R. linear 0 10 ) G. unicode)
You can’t perform that action at this time.
0 commit comments