@@ -97,7 +97,7 @@ export const unwrapSchema = (
9797 return schema . toJSONSchema ?.( ) ?? schema ?. toJsonSchema ?.( )
9898}
9999
100- const convertEnumToOpenAPI = ( schema : any ) : any => {
100+ const convertEnumToOpenApi = ( schema : any ) : any => {
101101 if ( ! schema || typeof schema !== 'object' ) return schema
102102
103103 if (
@@ -121,7 +121,7 @@ const convertEnumToOpenAPI = (schema: any): any => {
121121 if ( schema . type === 'object' && schema . properties ) {
122122 const convertedProperties : any = { }
123123 for ( const [ key , value ] of Object . entries ( schema . properties ) ) {
124- convertedProperties [ key ] = convertEnumToOpenAPI ( value )
124+ convertedProperties [ key ] = convertEnumToOpenApi ( value )
125125 }
126126 return {
127127 ...schema ,
@@ -132,7 +132,7 @@ const convertEnumToOpenAPI = (schema: any): any => {
132132 if ( schema . type === 'array' && schema . items ) {
133133 return {
134134 ...schema ,
135- items : convertEnumToOpenAPI ( schema . items )
135+ items : convertEnumToOpenApi ( schema . items )
136136 }
137137 }
138138
@@ -260,7 +260,7 @@ export function toOpenAPISchema(
260260 params . properties
261261 ) ) {
262262 convertedProperties [ paramName ] =
263- convertEnumToOpenAPI ( paramSchema )
263+ convertEnumToOpenApi ( paramSchema )
264264 }
265265
266266 for ( const [ paramName , paramSchema ] of Object . entries (
@@ -285,7 +285,7 @@ export function toOpenAPISchema(
285285 query . properties
286286 ) ) {
287287 convertedProperties [ queryName ] =
288- convertEnumToOpenAPI ( querySchema )
288+ convertEnumToOpenApi ( querySchema )
289289 }
290290
291291 const required = query . required || [ ]
@@ -311,7 +311,7 @@ export function toOpenAPISchema(
311311 headers . properties
312312 ) ) {
313313 convertedProperties [ headerName ] =
314- convertEnumToOpenAPI ( headerSchema )
314+ convertEnumToOpenApi ( headerSchema )
315315 }
316316
317317 const required = headers . required || [ ]
@@ -337,7 +337,7 @@ export function toOpenAPISchema(
337337 cookie . properties
338338 ) ) {
339339 convertedProperties [ cookieName ] =
340- convertEnumToOpenAPI ( cookieSchema )
340+ convertEnumToOpenApi ( cookieSchema )
341341 }
342342
343343 const required = cookie . required || [ ]
@@ -361,7 +361,7 @@ export function toOpenAPISchema(
361361 const body = unwrapSchema ( hooks . body , vendors )
362362
363363 if ( body ) {
364- const convertedBody = convertEnumToOpenAPI ( body )
364+ const convertedBody = convertEnumToOpenApi ( body )
365365
366366 // @ts -ignore
367367 const { type : _type , description, ...options } = convertedBody
@@ -452,7 +452,7 @@ export function toOpenAPISchema(
452452
453453 if ( ! response ) continue
454454
455- const convertedResponse = convertEnumToOpenAPI ( response )
455+ const convertedResponse = convertEnumToOpenApi ( response )
456456 // @ts -ignore Must exclude $ref from root options
457457 const { type : _type , description, ...options } = convertedResponse
458458 const type = _type as string | undefined
@@ -486,7 +486,7 @@ export function toOpenAPISchema(
486486 const response = unwrapSchema ( hooks . response as any , vendors )
487487
488488 if ( response ) {
489- const convertedResponse = convertEnumToOpenAPI ( response )
489+ const convertedResponse = convertEnumToOpenApi ( response )
490490
491491 // @ts -ignore
492492 const { type : _type , description, ...options } = convertedResponse
0 commit comments