@@ -570,7 +570,9 @@ const getNamespacePath = (path: string, paths: OpenapiPaths): string | null => {
570
570
571
571
// An endpoint is a route that ends without further paths. i.e., ends in
572
572
// a letter (not slash).
573
- const endpoints = pathKeys . filter ( ( key ) => new RegExp ( `^/${ [ ...namespace , part ] . join ( '/' ) } /\\w+$` ) . test ( key ) )
573
+ const endpoints = pathKeys . filter ( ( key ) =>
574
+ new RegExp ( `^/${ [ ...namespace , part ] . join ( '/' ) } /\\w+$` ) . test ( key ) ,
575
+ )
574
576
575
577
if ( endpoints . length === 0 ) {
576
578
namespace . push ( part )
@@ -855,7 +857,7 @@ const createRequestBody = (
855
857
return [ ]
856
858
}
857
859
858
- const { requestBody} = operation
860
+ const { requestBody } = operation
859
861
const jsonSchema = requestBody . content ?. [ 'application/json' ] ?. schema
860
862
if ( jsonSchema == null ) return [ ]
861
863
@@ -875,7 +877,8 @@ const createParameters = (
875
877
properties : Record < string , OpenapiSchema > ,
876
878
path : string ,
877
879
requiredParameters : string [ ] = [ ] ,
878
- ) : Parameter [ ] => Object . entries ( properties )
880
+ ) : Parameter [ ] =>
881
+ Object . entries ( properties )
879
882
. map ( ( [ name , property ] ) => {
880
883
// Don't flatten discriminated arrays as they are handled separately in createParameter
881
884
if (
@@ -1319,7 +1322,7 @@ const createResponse = (
1319
1322
typeof schema . properties === 'object' &&
1320
1323
schema . properties !== null
1321
1324
) {
1322
- const { properties} = schema
1325
+ const { properties } = schema
1323
1326
1324
1327
if ( ! ( responseKey in properties ) ) {
1325
1328
throw new Error (
@@ -1402,7 +1405,8 @@ export const createProperties = (
1402
1405
properties : Record < string , OpenapiSchema > ,
1403
1406
parentPaths : string [ ] ,
1404
1407
propertyGroups : PropertyGroup [ ] ,
1405
- ) : Property [ ] => Object . entries ( properties )
1408
+ ) : Property [ ] =>
1409
+ Object . entries ( properties )
1406
1410
. map ( ( [ name , property ] ) => {
1407
1411
// Don't flatten discriminated arrays as they are handled separately in createProperty
1408
1412
if (
0 commit comments