Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

RAML containing multipart form data does not generate compileable code #334

@cpkr

Description

@cpkr

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:

/theMultiparts:
    post:
        body:
            multipart/form-data:
                type:
                    properties:
                        appBundle:
                            type: file

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:

  @POST
  @Consumes("multipart/form-data")
  PostTheMultipartsResponse postTheMultiparts(TheMultipartsPostMultipartFormData entity);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions