File tree Expand file tree Collapse file tree 4 files changed +6
-15
lines changed
dot-path-params/__snapshots__
sortTypes-false/__snapshots__ Expand file tree Collapse file tree 4 files changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ const {
1010 RESERVED_PATH_ARG_NAMES ,
1111 RESERVED_QUERY_ARG_NAMES ,
1212} = require ( "../constants.js" ) ;
13- const { camelCase } = require ( "lodash" ) ;
1413
1514const CONTENT_KIND = {
1615 JSON : "JSON" ,
@@ -543,21 +542,13 @@ class SchemaRoutes {
543542 ( objectSchema , schemaPart ) => {
544543 if ( ! schemaPart || ! schemaPart . name ) return objectSchema ;
545544
546- let usageName = `${ schemaPart . name } ` ;
547-
548- if ( usageName . includes ( "." ) ) {
549- usageName = camelCase ( usageName ) ;
550- }
551-
552545 return {
553546 ...objectSchema ,
554547 properties : {
555548 ...objectSchema . properties ,
556- [ usageName ] : {
549+ [ schemaPart . name ] : {
557550 ...schemaPart ,
558551 ...( schemaPart . schema || { } ) ,
559- $origName : schemaPart . name ,
560- name : usageName ,
561552 } ,
562553 } ,
563554 } ;
Original file line number Diff line number Diff line change @@ -240,7 +240,7 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
240240 reproFunc: (
241241 truckId : string ,
242242 query : {
243- queryId : string ;
243+ " query.id " : string ;
244244 },
245245 params : RequestParams = {},
246246 ) =>
Original file line number Diff line number Diff line change @@ -1995,10 +1995,10 @@ export class Api<SecurityDataType extends unknown> extends HttpClient<SecurityDa
19951995 someOp1: (
19961996 data: Events,
19971997 query?: {
1998+ "foo.bar.baz"?: number;
1999+ "query.param.bar.3"?: number;
19982000 queryParam1?: number;
1999- fooBarBaz?: number;
20002001 queryParam2?: number;
2001- queryParamBar3?: number;
20022002 queryParam3?: string[];
20032003 },
20042004 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
19951995 someOp1: (
19961996 data: Events,
19971997 query?: {
1998+ "foo.bar.baz"?: number;
1999+ "query.param.bar.3"?: number;
19982000 queryParam1?: number;
19992001 queryParam2?: number;
20002002 queryParam3?: string[];
2001- queryParamBar3?: number;
2002- fooBarBaz?: number;
20032003 },
20042004 params: RequestParams = {},
20052005 ) =>
You can’t perform that action at this time.
0 commit comments