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 381 forks source link

Table columns don't resize for long field names #233

Open anon16 opened 7 years ago

anon16 commented 7 years ago

(Using latest version of swagger2markup-gradle-project-template-master)

When the example PDF is created using the Pet Store json, table columns don't resize themselves to the contents of the tables. Note how the text in the left column wraps:

text-wrap-problem

I am running in the same issue in my production code with my JSON request objects. How do I work around / fix this?

RobWin commented 7 years ago

Hi, thx for using Swagger2Markup. If you like it, we would love to get your GitHub star.

I have a look at your issue.

anon18 commented 7 years ago

Hi! Any progress on this? I am unable to publish my API document due to this formatting issue. Everything else works very well!

RobWin commented 7 years ago

Hi, sry atm I don't have much time to work on this.

ottlngr commented 7 years ago

@RobWin Could you share a judgement on how to work around this behaviour or on where this behaviour could be fixed? With some additional information I could dig a bit deeper into this issue.

RobWin commented 7 years ago

@ottlngr I still won't have time to fix it. Too busy at the moment. But I can review a PR and merge it, if you have time to handle this issue.

The size of the column is defined here: https://github.com/Swagger2Markup/swagger2markup/blob/master/src/main/java/io/github/swagger2markup/internal/component/ParameterTableComponent.java#L77