@@ -2,28 +2,28 @@ import {t} from '../../..';
22
33test ( 'can use convenience methods to define type schema fields' , ( ) => {
44 const binary = t . bin ;
5- expect ( binary . getSchema ( ) ) . toEqual ( { kind : 'bin' , value : { kind : 'any' } } ) ;
5+ expect ( binary . getSchema ( ) ) . toEqual ( { kind : 'bin' , type : { kind : 'any' } } ) ;
66 binary . title ( 'My Binary' ) ;
7- expect ( binary . getSchema ( ) ) . toEqual ( { kind : 'bin' , value : { kind : 'any' } , title : 'My Binary' } ) ;
7+ expect ( binary . getSchema ( ) ) . toEqual ( { kind : 'bin' , type : { kind : 'any' } , title : 'My Binary' } ) ;
88 binary . intro ( 'This is a binary type' ) ;
99 expect ( binary . getSchema ( ) ) . toEqual ( {
1010 kind : 'bin' ,
11- value : { kind : 'any' } ,
11+ type : { kind : 'any' } ,
1212 title : 'My Binary' ,
1313 intro : 'This is a binary type' ,
1414 } ) ;
1515 binary . description ( 'A detailed description of the binary type' ) ;
1616 expect ( binary . getSchema ( ) ) . toEqual ( {
1717 kind : 'bin' ,
18- value : { kind : 'any' } ,
18+ type : { kind : 'any' } ,
1919 title : 'My Binary' ,
2020 intro : 'This is a binary type' ,
2121 description : 'A detailed description of the binary type' ,
2222 } ) ;
2323 binary . format ( 'json' ) ;
2424 expect ( binary . getSchema ( ) ) . toEqual ( {
2525 kind : 'bin' ,
26- value : { kind : 'any' } ,
26+ type : { kind : 'any' } ,
2727 title : 'My Binary' ,
2828 intro : 'This is a binary type' ,
2929 description : 'A detailed description of the binary type' ,
@@ -32,7 +32,7 @@ test('can use convenience methods to define type schema fields', () => {
3232 binary . min ( 5 ) ;
3333 expect ( binary . getSchema ( ) ) . toEqual ( {
3434 kind : 'bin' ,
35- value : { kind : 'any' } ,
35+ type : { kind : 'any' } ,
3636 title : 'My Binary' ,
3737 intro : 'This is a binary type' ,
3838 description : 'A detailed description of the binary type' ,
@@ -42,7 +42,7 @@ test('can use convenience methods to define type schema fields', () => {
4242 binary . max ( 10 ) ;
4343 expect ( binary . getSchema ( ) ) . toEqual ( {
4444 kind : 'bin' ,
45- value : { kind : 'any' } ,
45+ type : { kind : 'any' } ,
4646 title : 'My Binary' ,
4747 intro : 'This is a binary type' ,
4848 description : 'A detailed description of the binary type' ,
@@ -53,7 +53,7 @@ test('can use convenience methods to define type schema fields', () => {
5353 binary . default ( new Uint8Array ( [ 1 , 2 , 3 ] ) ) ;
5454 expect ( binary . getSchema ( ) ) . toEqual ( {
5555 kind : 'bin' ,
56- value : { kind : 'any' } ,
56+ type : { kind : 'any' } ,
5757 title : 'My Binary' ,
5858 intro : 'This is a binary type' ,
5959 description : 'A detailed description of the binary type' ,
@@ -65,7 +65,7 @@ test('can use convenience methods to define type schema fields', () => {
6565 binary . example ( new Uint8Array ( [ 4 , 5 , 6 ] ) , 'Example Binary' , { description : 'An example binary value' } ) ;
6666 expect ( binary . getSchema ( ) ) . toEqual ( {
6767 kind : 'bin' ,
68- value : { kind : 'any' } ,
68+ type : { kind : 'any' } ,
6969 title : 'My Binary' ,
7070 intro : 'This is a binary type' ,
7171 description : 'A detailed description of the binary type' ,
0 commit comments