Skip to content

Conversation

@ePaul
Copy link
Contributor

@ePaul ePaul commented Mar 13, 2017

PR checklist

  • Read the contribution guidelines.
  • Ran the shell/batch 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)
  • Filed the PR against the correct branch: master for non-breaking changes and 2.3.0 branch for breaking (non-backward compatible) changes.

Description of the PR

This merges the 2.3.0 branch into @wing328's sync_master_230 branch, solving some more conflicts on the way (as 2.3.0 did progress a bit more since the initial merge).

I just updated the swift3 + nodejs-server samples (which had conflicts), I guess updating some more should be done after merged.

fehguy and others added 5 commits March 6, 2017 01:10
* read directly from templates

* refactor nodejs structure

* dont inject into global scope

* move to 2 spaces consistently
* [Swift3] fix format warnings

* [Swift3] null enumerations should not cause failure

success or failure on numm enumerations should be decided by users

* update petstore

* handle type mismatch and null respectively
(except clojure + scalatra, because those are broken, will fixed with later master merge.)
@ePaul
Copy link
Contributor Author

ePaul commented Mar 13, 2017

Looks like Sonatype's snapshot maven repository doesn't have the earlier-than-latest snapshots of swagger-parser anymore, and therefore AppVeyor build breaks. Possibly we can change to a release version, or to the latest snapshot (1.1.0-SNAPSHOT)?

@fehguy
Copy link
Contributor

fehguy commented Mar 13, 2017

Use swagger-parser-1.0.28

@ePaul ePaul mentioned this pull request Mar 13, 2017
3 tasks
@ePaul
Copy link
Contributor Author

ePaul commented Mar 14, 2017

@fehguy done ... though this seems to break at least BashClientCodegen.
op.vendorExtensions.get("x-code-samples") (line 578) now seems to return a List of LinkedHashMap instead of a list of ObjectNode, throwing an exception in line 581, which makes BashTest.petstoreOperationTest fail (at least in this branch).

I'll try the effects of just the update in master and 2.3.0 branch.

@ePaul
Copy link
Contributor Author

ePaul commented Mar 14, 2017

Okay, no problem in master (which actually already is on 1.0.28), and not on 2.3.0 (which is on 1.0.25 currently – though that one doesn't have BashClientCodegen), but already on the current sync_master_230. I'll try to identify the origin of the problem.

@ePaul
Copy link
Contributor Author

ePaul commented Mar 14, 2017

Aha, master has an if-block here. I guess I'll cherry-pick that commit for this branch too.

@ePaul ePaul mentioned this pull request Mar 14, 2017
3 tasks
@ePaul
Copy link
Contributor Author

ePaul commented Mar 14, 2017

I applied the fixes on the branch for #5054, then merged into this one.

@wing328 wing328 merged commit e363b43 into swagger-api:sync_master_230 Mar 15, 2017
@wing328 wing328 added this to the v2.3.0 milestone Mar 15, 2017
@ePaul ePaul deleted the merge-2.3.0 branch March 15, 2017 10:44
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.

4 participants