Repository navigation
[swift3] empty model with only additional properties - #6273
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? |
|
Michael Kaye (@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 |
|
William Cheng (@wing328) What's the status with the github rate limit on the typescript thing? |
Jason Gavris (@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) |
|
Michael Kaye (@wuf810) thanks for the PR, which has been merged into master. When you've time, I wonder if you can make the same enhancement to Swift4 generator. |
|
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. |
|
William Cheng (@wing328) Eric Hyche (@ehyche) My apologies but I've not had time to apply the same enhancement to the Swift4 generator. I'm currently recovering from surgery so not sure when I am able to look. Could one of you do this for me? Or do you want to wait on me? |
|
Michael Kaye (@wuf810) : No worries. I am working on adding this functionality to the swift4 generator. PR should be up shortly. |
|
Michael Kaye (@wuf810) William Cheng (@wing328) : I implemented this functionality for swift4 in this PR I just filed: #6492 |
|
Brilliant. Thank you. |
|
Michael Kaye (@wuf810) can you please help test the PR when you've time? |
|
Michael Kaye (@wuf810) the enhancement has been merged into master. Please pull the latest to give it a try. |
|
William Cheng (@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 Daniel Woodel (@dwoodel)