Created by: smasala
PR checklist
-
Read the contribution guidelines. -
Filed the PR against the correct branch: master
,4.1.x
,5.0.x
. Default:master
. -
Copied the technical committee to review the pull request if your PR is targeting a particular programming language.
Description of the PR
Fixes request params when using anyOf / oneOf for api services where the param was gerenated as "UNKNOWN_BASE_TYPE" instead of (in TS) Model1 | Model2
.
Currently:
import { Model1 | Model2} from '../model/model1Model2';
import { UNKNOWN_BASE_TYPE } from '../model/uNKNOWNBASETYPE';
...
public updateRequest(id: string, UNKNOWN_BASE_TYPE: UNKNOWN_BASE_TYPE, observe?: 'body', reportProgress?: boolean): Observable<EnvelopeOfModels>;
Fix:
import { Model1 } from '../model/model1';
import { Model2 } from '../model/model2';
...
public updateRequest(id: string, model1Model2: Model1 | Model2, observe?: 'body', reportProgress?: boolean): Observable<EnvelopeOfModels>;
@TiFu (2017/07) @taxpon (2017/07) @sebastianhaas (2017/07) @kenisteward (2017/07) @Vrolijkx (2017/09) @macjohnny (2018/01) @nicokoenig (2018/09) @topce (2018/10)