@@ -5,14 +5,14 @@ import type { ParameterObject } from "@omer-x/openapi-types/parameter";
55
66describe ( "resolveParams" , ( ) => {
77 it ( "should return an empty array if source is not provided" , ( ) => {
8- const result = resolveParams ( "query" , "none" , undefined ) ;
8+ const result = resolveParams ( "query" , undefined ) ;
99 expect ( result ) . toEqual ( [ ] ) ;
1010 } ) ;
1111
1212 it ( "should throw an error if the schema does not have properties" , ( ) => {
1313 const zodSchema = z . string ( ) ;
1414
15- expect ( ( ) => resolveParams ( "query" , "none" , zodSchema ) ) . toThrow ( "Invalid object schema" ) ;
15+ expect ( ( ) => resolveParams ( "query" , zodSchema ) ) . toThrow ( "Invalid object schema" ) ;
1616 } ) ;
1717
1818 it ( "should resolve parameters for a valid Zod object schema" , ( ) => {
@@ -21,7 +21,7 @@ describe("resolveParams", () => {
2121 includeDetails : z . boolean ( ) . optional ( ) . describe ( "Whether to include user details" ) ,
2222 } ) ;
2323
24- const result = resolveParams ( "query" , "none" , zodSchema ) ;
24+ const result = resolveParams ( "query" , zodSchema ) ;
2525
2626 const expectedParams : ParameterObject [ ] = [
2727 {
@@ -55,7 +55,7 @@ describe("resolveParams", () => {
5555 includeDetails : z . boolean ( ) . optional ( ) . describe ( "Whether to include user details" ) ,
5656 } ) ;
5757
58- const result = resolveParams ( "query" , "none" , zodSchema ) ;
58+ const result = resolveParams ( "query" , zodSchema ) ;
5959
6060 const expectedParams : ParameterObject [ ] = [
6161 {
0 commit comments