[swift3] empty model with only additional properties#6273
[swift3] empty model with only additional properties#6273wing328 merged 1 commit intoswagger-api:masterfrom
Conversation
|
Hey is the travis error something we've done or does the test sometimes fail? |
fa43b61 to
70a95e0
Compare
|
My bad, my local master was one behind which maybe why the tests failed. It is now fixed. |
|
OK same question…any idea why the travis job might have failed? |
|
@wuf810 I'll take a look. |
|
Tests with updated Petstore samples (swift, swfit3) passed via https://travis-ci.org/swagger-api/swagger-codegen/builds/263164376?utm_source=email&utm_medium=notification |
|
This is great, I've actually been running this on a private fork for a while. I wasn't sure the implications of it for others so I didn't PR it. |
|
LGTM |
|
@wing328 What's the status with the github rate limit on the typescript thing? |
@jgavris The latest master should have fixed it. |
|
Sorry, which commit though? This PR failed on that. |
Should be fixed by #6178 Let me merge this one into master to see if I could repeat the Github rate limit error (I've not seen this error myself for a while) |
|
UPDATE about the Github rate limit error: it's my oversight and I've commented out the test in Travis for the time being until someone has cycle to replace |
|
Of course, I'll take a look at the Swift4 later in the week. |
|
@wuf810 : No worries. I am working on adding this functionality to the swift4 generator. PR should be up shortly. |
|
Brilliant. Thank you. |
|
@wuf810 can you please help test the PR when you've time? |
|
@wuf810 the enhancement has been merged into master. Please pull the latest to give it a try. |
|
@wing328 Sorry still not fully recovered from surgery. However I have managed to have a quick look at the latest master and generated our client code and so far everything looks good. |
PR checklist
./bin/to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.shand./bin/security/{LANG}-petstore.shif 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\.3.0.0branch for breaking (non-backward compatible) changes.Description of the PR
When a class is defined as having no variables but does have additionalProperties, the class would be created incorrectly as a broken typeAlias.
In addition if a class is defined with no variables and no additionalProperties a broken typeAlias was generated. This is now creates an empty jsonencodable class.
This fixes issue #5535
cc @dwoodel