Skip to content

Update swift samples#738

Merged
wing328 merged 4 commits intoOpenAPITools:masterfrom
d-date:update-swift-samples
Aug 21, 2018
Merged

Update swift samples#738
wing328 merged 4 commits intoOpenAPITools:masterfrom
d-date:update-swift-samples

Conversation

@d-date
Copy link
Copy Markdown

@d-date d-date commented Aug 5, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: master, 4.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

(details of the change, additional tests that have been done, reference to the issue for tracking, etc)

Update swift3 / swift4 samples to pass CI.

Before merge this PR, we should fix codegen to adopt Swift method syntax. This violation cause compile error.

  • Swift method should be started with lower case or under score, not started with number literal.

@d-date
Copy link
Copy Markdown
Author

d-date commented Aug 5, 2018

@wing328 Could you check my comment first and try to fix it?

Swift method should be started with lower case or under score, not started with number literal.

@wing328
Copy link
Copy Markdown
Member

wing328 commented Aug 5, 2018

@wing328 Could you check my comment first and try to fix it?

Sure let me look into that

@wing328
Copy link
Copy Markdown
Member

wing328 commented Aug 5, 2018

@d-date I've pushed 265a2b8 to address that. Please take a look.

@d-date d-date changed the title [WIP] Update swift samples Update swift samples Aug 8, 2018
@d-date
Copy link
Copy Markdown
Author

d-date commented Aug 8, 2018

@wing328 You can merge it after passing CI

@wing328
Copy link
Copy Markdown
Member

wing328 commented Aug 8, 2018

@d-date thanks. I'll take another look tomorrow.

@wing328 wing328 modified the milestones: 3.2.1, 3.2.2 Aug 8, 2018
@wing328 wing328 merged commit fcfd8ea into OpenAPITools:master Aug 21, 2018
A-Joshi pushed a commit to ihsmarkitoss/openapi-generator that referenced this pull request Feb 27, 2019
* update all swift samples

* fix method name starting with number literal

* better handling of operationId starting with number

* update swift 4 samples
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants