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
  • #1571
Closed
Open
Issue created Nov 29, 2018 by Administrator@rootContributor

[SWIFT4] Objective C compatibility

Created by: Sal0g

Currently the generator (v3.3.3) produces Swift 4.2 code that is not directly useable in Mixed Swift/Objective C projects even though the config files contains:

"objcCompatible":"true",

  • Currently the generator produces Struct objects which are not accessible in Objective C. It would instead produces @objc public class CLASSNAME: NSObject, Codable { ... }
  • everywhere where public is produced, it would be necessary to have @objc public as in Swift 4, such automatic @objc inference is deprecated and disabled by default
Assignee
Assign to
Time tracking