Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift4: Add additional initializer for initializing model object with *only* required properties #8852

Open
nashish opened this issue Oct 24, 2018 · 0 comments

Comments

@nashish
Copy link

nashish commented Oct 24, 2018

Description

In a previous feature, you added init() methods that include all properties declared in the schema. My request is to provide an option for an init() method with only the required properties from the schema.

Swagger-codegen version

3.0.2

Swagger declaration file content or url
Foo:
      required:
      - id
      properties:
        id:  # the init() function would only have this property 
          type: string
        color:
          type: string
Related issues/PRs

#6641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant