Open SKalt opened 4 years ago
Hi there. Just letting you know I am aware of the issues you created. FYI I will try to get the docs updated (the other issue), but I am unlikely to spend time on fixing this bug.
hey, thanks for replying!
I am unlikely to spend time on fixing this bug.
Understandable since (1) this is open source but also (2) since this bug seems isolated. I was able to generate an openapi.yml in the above repo by excluding one API class which used org.glassfish.jersey.media.multipart.FormDataParam
[permalink to that line].
FYI I will try to get the docs updated (the other issue)
No rush. LMK when you start; I'll let you know if I free up and feel like drafting the documentation. I should be busy for the next 3 weeks, so no guarantees.
I am now experiencing this issue also, was excluding the FormDataParam class the recommended way to work around this?
Expected behavior: enunciate-openapi should recognize and encode
formdata
parameters as described in the OpeAPI 3.0.0 spec, "special considerations for multipart content" section.Actual behavior: enunciate-openapi throws an error when it encounters a param of type
formdata
.Debug info
If I run `mvn enunciate:docs` in [this repo](https://github.com/SKalt/OpenTripPlanner/tree/d4006ca5f0d8a90267235d6756ff1363b67649fb), I'll get an error at `Param.java:73` [[link @ master](https://github.com/Jyskebank/enunciate-openapi/blob/master/src/main/java/dk/jyskebank/tools/enunciate/modules/openapi/paths/Param.java#L73)] [[@ 70bd54af](https://github.com/Jyskebank/enunciate-openapi/blob/70bd54afadc281358e40ff1904d124f5a5ae714d/src/main/java/dk/jyskebank/tools/enunciate/modules/openapi/paths/Param.java#L73)]. Here's the relevant part of the stack trace. ``` # ... snip ... Caused by: java.lang.IllegalStateException: Do not know how to pass type formdata at dk.jyskebank.tools.enunciate.modules.openapi.paths.Param.