File tree Expand file tree Collapse file tree 5 files changed +11
-14
lines changed
dot-path-params/__snapshots__
sortTypes-false/__snapshots__ Expand file tree Collapse file tree 5 files changed +11
-14
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " swagger-typescript-api " : patch
3+ ---
4+
5+ Remove unnecessary camel case conversion for query params.
Original file line number Diff line number Diff line change @@ -512,21 +512,13 @@ export class SchemaRoutes {
512512 ( objectSchema , schemaPart ) => {
513513 if ( ! schemaPart || ! schemaPart . name ) return objectSchema ;
514514
515- let usageName = `${ schemaPart . name } ` ;
516-
517- if ( usageName . includes ( "." ) ) {
518- usageName = lodash . camelCase ( usageName ) ;
519- }
520-
521515 return {
522516 ...objectSchema ,
523517 properties : {
524518 ...objectSchema . properties ,
525- [ usageName ] : {
519+ [ schemaPart . name ] : {
526520 ...schemaPart ,
527521 ...( schemaPart . schema || { } ) ,
528- $origName : schemaPart . name ,
529- name : usageName ,
530522 } ,
531523 } ,
532524 } ;
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
241241 reproFunc: (
242242 truckId : string ,
243243 query : {
244- queryId : string ;
244+ " query.id " : string ;
245245 },
246246 params : RequestParams = {},
247247 ) =>
Original file line number Diff line number Diff line change @@ -1997,9 +1997,9 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
19971997 data: Events,
19981998 query?: {
19991999 queryParam1?: number;
2000- fooBarBaz ?: number;
2000+ "foo.bar.baz" ?: number;
20012001 queryParam2?: number;
2002- queryParamBar3 ?: number;
2002+ "query.param.bar.3" ?: number;
20032003 queryParam3?: string[];
20042004 },
20052005 params: RequestParams = {},
Original file line number Diff line number Diff line change @@ -1996,11 +1996,11 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
19961996 someOp1: (
19971997 data: Events,
19981998 query?: {
1999+ "foo.bar.baz"?: number;
2000+ "query.param.bar.3"?: number;
19992001 queryParam1?: number;
20002002 queryParam2?: number;
20012003 queryParam3?: string[];
2002- queryParamBar3?: number;
2003- fooBarBaz?: number;
20042004 },
20052005 params: RequestParams = {},
20062006 ) =>
You can’t perform that action at this time.
0 commit comments