@@ -72,17 +72,21 @@ describe('SchemaObject', () => {
7272 format : constant ( none ) ,
7373 deprecated : constant ( none ) ,
7474 nullable : constant ( none ) ,
75+ minItems : constant ( none ) ,
76+ maxItems : constant ( none ) ,
7577 } ) ,
7678 format : constant ( none ) ,
7779 deprecated : constant ( none ) ,
7880 nullable : constant ( none ) ,
81+ minItems : constant ( none ) ,
82+ maxItems : constant ( none ) ,
7983 } ) ;
8084 assert (
8185 property ( $refArbitrary , schema , string ( ) , ( from , schema , name ) => {
8286 const expected = pipe (
8387 schema . items ,
8488 serializeSchemaObject ( from , name ) ,
85- either . map ( getSerializedArrayType ( name ) ) ,
89+ either . map ( getSerializedArrayType ( none , name ) ) ,
8690 ) ;
8791 const serialized = pipe ( schema , serializeSchemaObject ( from , name ) ) ;
8892 expect ( serialized ) . toEqual ( expected ) ;
@@ -98,7 +102,11 @@ describe('SchemaObject', () => {
98102 $ref : $refArbitrary . $ref ,
99103 } ,
100104 } ) ;
101- const expected = pipe ( $refArbitrary , getSerializedRefType ( from ) , getSerializedArrayType ( name ) ) ;
105+ const expected = pipe (
106+ $refArbitrary ,
107+ getSerializedRefType ( from ) ,
108+ getSerializedArrayType ( none , name ) ,
109+ ) ;
102110 expect ( pipe ( schema , reportIfFailed , either . chain ( serializeSchemaObject ( from , name ) ) ) ) . toEqual (
103111 right ( expected ) ,
104112 ) ;
@@ -125,7 +133,7 @@ describe('SchemaObject', () => {
125133 const expected = pipe (
126134 ref ,
127135 getSerializedRefType ( ref ) ,
128- getSerializedArrayType ( undefined ) ,
136+ getSerializedArrayType ( none , undefined ) ,
129137 getSerializedOptionPropertyType ( 'children' , true ) ,
130138 getSerializedObjectType ( undefined ) ,
131139 getSerializedRecursiveType ( ref , true ) ,
0 commit comments