sdaschner / jaxrs-analyzer

Creates REST documentation for JAX-RS projects
Apache License 2.0
319 stars 101 forks source link

byte arrays are not supported #154

Open rmannibucau opened 6 years ago

rmannibucau commented 6 years ago

byte arrays ([B) are not supported and lead to "[" in type definition.

It should be type=string,format=binary in swagger

matfur92 commented 6 years ago

For byte[] I had replaced "$ref":"#/definitions/[" with "type":"string", "format":"byte" This in order to have a correct code generation with swagger codegen (https://github.com/swagger-api/swagger-codegen v. 2.3.0) from the swagger.json created with the analyzer. Note: byte and not binary. Only byte works correctly for me.

rmannibucau commented 6 years ago

would work for me as well