File tree 4 files changed +6
-15
lines changed
dot-path-params/__snapshots__
sortTypes-false/__snapshots__
4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const {
10
10
RESERVED_PATH_ARG_NAMES ,
11
11
RESERVED_QUERY_ARG_NAMES ,
12
12
} = require ( "../constants.js" ) ;
13
- const { camelCase } = require ( "lodash" ) ;
14
13
15
14
const CONTENT_KIND = {
16
15
JSON : "JSON" ,
@@ -543,21 +542,13 @@ class SchemaRoutes {
543
542
( objectSchema , schemaPart ) => {
544
543
if ( ! schemaPart || ! schemaPart . name ) return objectSchema ;
545
544
546
- let usageName = `${ schemaPart . name } ` ;
547
-
548
- if ( usageName . includes ( "." ) ) {
549
- usageName = camelCase ( usageName ) ;
550
- }
551
-
552
545
return {
553
546
...objectSchema ,
554
547
properties : {
555
548
...objectSchema . properties ,
556
- [ usageName ] : {
549
+ [ schemaPart . name ] : {
557
550
...schemaPart ,
558
551
...( schemaPart . schema || { } ) ,
559
- $origName : schemaPart . name ,
560
- name : usageName ,
561
552
} ,
562
553
} ,
563
554
} ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
240
240
reproFunc: (
241
241
truckId : string ,
242
242
query : {
243
- queryId : string ;
243
+ " query.id " : string ;
244
244
},
245
245
params : RequestParams = {},
246
246
) =>
Original file line number Diff line number Diff line change @@ -1995,10 +1995,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1995
1995
someOp1: (
1996
1996
data: Events,
1997
1997
query?: {
1998
+ "foo.bar.baz"?: number;
1999
+ "query.param.bar.3"?: number;
1998
2000
queryParam1?: number;
1999
- fooBarBaz?: number;
2000
2001
queryParam2?: number;
2001
- queryParamBar3?: number;
2002
2002
queryParam3?: string[];
2003
2003
},
2004
2004
params: RequestParams = {},
Original file line number Diff line number Diff line change @@ -1995,11 +1995,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
1995
1995
someOp1: (
1996
1996
data: Events,
1997
1997
query?: {
1998
+ "foo.bar.baz"?: number;
1999
+ "query.param.bar.3"?: number;
1998
2000
queryParam1?: number;
1999
2001
queryParam2?: number;
2000
2002
queryParam3?: string[];
2001
- queryParamBar3?: number;
2002
- fooBarBaz?: number;
2003
2003
},
2004
2004
params: RequestParams = {},
2005
2005
) =>
You can’t perform that action at this time.
0 commit comments