Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Merge requests
  • !3639

Fix imports and property name when using anyof/oneof in services

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/smasala/smasala/anyof-oneof-fix-services into master Aug 14, 2019
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

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)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/smasala/smasala/anyof-oneof-fix-services