Swagger2Markup / swagger2markup

A Swagger to AsciiDoc or Markdown converter to simplify the generation of an up-to-date RESTful API documentation by combining documentation that’s been hand-written with auto-generated API documentation.
Apache License 2.0
2.5k stars 382 forks source link

When generating .html/.pdf, the char '+' before [ \"] in a String is missing #360

Open ChaselX opened 5 years ago

ChaselX commented 5 years ago

Swagger2Markup version: 1.2.0

Problem description: I use the swagger's annotaion @ApiImplicitParam, and fill its property value with

"Sign rule: md5(abcd)+ \"efgh\" +md5(ijk)"

like

@ApiImplicitParam(name = "Sign", value = "Sign rule: md5(abcd)+ \"efgh\" +md5(ijk)", paramType = "Header", required = true),

The result of .pdf/.html is shown as "Sign rule: md5(abcd)"efgh" +md5(ijk)"

The char + from the left is missed

Even if I replace \" to "'", it still doesn't work

RobWin commented 4 years ago

That must be a problem of Springfox and not Swagger2Markup. Did you have a look at the generated Swagger JSON/YAML?