[WIP] Add PHP client#14
Conversation
|
First idea: you should merge This is what I did locally to review your code. |
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
| public abstract class AbstractPhpCodegen extends DefaultCodegenConfig { |
There was a problem hiding this comment.
DefaultCodegenConfig is not imported. add following line:
import io.swagger.codegen.languages.DefaultCodegenConfig;
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
| public class PhpClientCodegen extends DefaultCodegenConfig { |
There was a problem hiding this comment.
Same here: DefaultCodegenConfig is not imported.
| @@ -0,0 +1,731 @@ | |||
| package io.swagger.codegen.languages; | |||
There was a problem hiding this comment.
Package should be: io.swagger.codegen.languages.php
| @@ -0,0 +1,667 @@ | |||
| package io.swagger.codegen.languages; | |||
There was a problem hiding this comment.
Package should be: io.swagger.codegen.languages.php
|
|
||
| if (example == null) { | ||
| example = "NULL"; | ||
| } else if (Boolean.TRUE.equals(p.isListContainer)) { |
There was a problem hiding this comment.
This produces a compile error by p.isListContainer.
Where did you get this file? AbstractPhpCodegen on the 3.0.0 branch in the swagger-codegen has no copile error. You should have took this as base.
|
|
||
| if (example == null) { | ||
| example = "NULL"; | ||
| } else if (Boolean.TRUE.equals(p.isListContainer)) { |
There was a problem hiding this comment.
This produces a compile error by p.isListContainer.
Where did you get this file? PhpClientCodegen on the 3.0.0 branch in the swagger-codegen has no copile error. You should have took this as base.
|
I hope you will manage to remove the compile errors. Do not hesitate to ask if you need something. |
|
In order to help you, I have started a wiki page: |
|
@ackintosh do you mind if we merge your fork with a different branch, in order to help with |
|
Sorry for late reply 💦 |
|
I have automated a lot of the work that is requested to migrate the generators, this is no problem for me to migrate the PHP generator. But I will not be able to evaluate the generated code and to confirm that it works as expected. How do you want to proceed? Should I start something and you will test it? |
|
thanks @ackintosh |
|
I have fetched the What is the idea? I can also fetch @HugoMario: I would appreciate if you could review and merge my existing pull requests for the There is a lot important stuff going on in order to improve Swagger v3. |
|
@jmini i already merge this PR against |
With reference to java, work in progress now. 👀
TODO