-
Notifications
You must be signed in to change notification settings - Fork 181
RAML containing multipart form data does not generate compileable code #334
Comments
is this on master ? Just to be clear the "TheMultipartsPostMultipartFormData" is not generated ? |
It is on master Snapshot branch |
I've built a plugin to handle this case. The reason I've built a plugin is that form data implementation are server specific (I may be wrong, but all examples I've seen seem to indicate this). Look at the torture test for usage. Tell me if I missed something. (branch release/3.0.0) |
Thanks for the update. Unfortunately the branch release/3.0.0 does not compile to me: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project raml-defined-example: Compilation failure: Compilation failure: |
Are you sure you are up to date ? The travis-ci build is passing. |
My fault. I did not do a clean install. I will try tomorrow with the file upload stuff and give you feedback. Thanks for your support. |
Looks fine from the generated code. I will continue with the implementation and reply if also this part works. Thanks for your support. |
I found one issue in new implementation: If you have a uri parameter this is not generated as parameter.
Do you also have a solution for this one? |
Just pushed a quick fix with minimal testing. Could you give it a try ? |
It is working as expected. Many thanks for your support. |
Forgot exception. Not a big deal unless someone if adding them.
We created a raml file containing a post request with mulitpart formdata. The fragment used is equivalent to the one in file jaxrs-to-raml-examples/jaxrs-to-raml-maven-examples/jaxrs-to-raml-multipart/target/generated-sources/raml-jaxrs/jaxrs-to-raml-multipart.raml from the currrent Snapshot:
When generating the java code via maven the resource does contain a class for this parameter which had not been generated
I copied the file from the git repo to my project and generated the class. The same problem does occur. Following is generated for the post method:
The text was updated successfully, but these errors were encountered: