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
  • Issues
  • #2426
Closed
Open
Issue created Mar 16, 2019 by Administrator@rootContributor5 of 6 checklist items completed5/6 checklist items

[BUG] [haskell] oneOF is not handled correctly

Created by: dcolle

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

Trying to create server stubs in haskell for 5G core functions. When the yaml file uses oneOf for a object property, the created haskell code in the corresponding Types.hs file cannot be parsed by GHC. For example for yaml file https://github.com/jdegre/5GC_APIs/blob/master/TS29509_Nausf_UEAuthentication.yaml line 170 results in: , uEAuthenticationCtx5gAuthData :: OneOf<Av5gAka,string> -- ^

openapi-generator version

$ docker run --rm openapitools/openapi-generator-cli version 4.0.0-SNAPSHOT

OpenAPI declaration file content or url

https://github.com/jdegre/5GC_APIs/blob/master/TS29509_Nausf_UEAuthentication.yaml

Command line used for generation

docker run --rm -v $PWD:/local openapitools/openapi-generator-cli generate -i /local/5GC_APIs/TS29509_Nausf_UEAuthentication.yaml -g haskell -o /local/haskell/genapi/ausf_auth/

Steps to reproduce

$ grep -rni oneof haskell/genapi/ausf_auth/ haskell/genapi/ausf_auth/lib/AUSF/Types.hs:279: , uEAuthenticationCtx5gAuthData :: OneOf<Av5gAka,string> -- ^

Related issues/PRs

#15 ???

Suggest a fix
Assignee
Assign to
Time tracking