File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/openapi-ts/src/plugins/@hey-api/sdk/shared/__tests__ Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ const createOperation = (requestBodyRequired: boolean): any => ({
77 required : requestBodyRequired ,
88 schema : {
99 properties : {
10- contact_list : { type : 'string' } ,
11- owner : { type : 'string' } ,
10+ bar : { type : 'string' } ,
11+ foo : { type : 'string' } ,
1212 } ,
13- required : [ 'owner ' ] ,
13+ required : [ 'foo ' ] ,
1414 type : 'object' ,
1515 } ,
1616 } ,
@@ -23,8 +23,8 @@ describe('getSignatureParameters', () => {
2323 plugin : { } as any ,
2424 } ) ;
2525
26- expect ( signature ?. parameters . owner ?. isRequired ) . toBe ( true ) ;
27- expect ( signature ?. parameters . contact_list ?. isRequired ) . toBe ( false ) ;
26+ expect ( signature ?. parameters . foo ?. isRequired ) . toBe ( true ) ;
27+ expect ( signature ?. parameters . bar ?. isRequired ) . toBe ( false ) ;
2828 } ) ;
2929
3030 it ( 'keeps body properties optional when request body is optional' , ( ) => {
@@ -33,7 +33,7 @@ describe('getSignatureParameters', () => {
3333 plugin : { } as any ,
3434 } ) ;
3535
36- expect ( signature ?. parameters . owner ?. isRequired ) . toBe ( false ) ;
37- expect ( signature ?. parameters . contact_list ?. isRequired ) . toBe ( false ) ;
36+ expect ( signature ?. parameters . foo ?. isRequired ) . toBe ( false ) ;
37+ expect ( signature ?. parameters . bar ?. isRequired ) . toBe ( false ) ;
3838 } ) ;
3939} ) ;
You can’t perform that action at this time.
0 commit comments