Skip to content

[html2] Add missing enums to parameters#4204

Merged
wing328 merged 1 commit intoswagger-api:masterfrom
bshamblen:master
Nov 17, 2016
Merged

[html2] Add missing enums to parameters#4204
wing328 merged 1 commit intoswagger-api:masterfrom
bshamblen:master

Conversation

@bshamblen
Copy link
Copy Markdown
Contributor

enum values were not being displayed in the Parameters section. Enums are now displayed next to the Enums: label, as a comma separated list.

I also cleaned up the HTML formatting if the index.mustache page, to make it easier to read and debug.

Lastly, I hid the Schema block below the response code, if no schema was defined. For example, when a 401 error is defined, if there's no schema specified, the empty schema tab and panel body below that header are no longer rendered. It was taking up a lot of vertical space having a bunch of empty schema blocks for each endpoint.

@wing328 wing328 closed this Nov 17, 2016
@wing328 wing328 reopened this Nov 17, 2016
@wing328 wing328 merged commit d6e8fb0 into swagger-api:master Nov 17, 2016
@wing328
Copy link
Copy Markdown
Contributor

wing328 commented Nov 17, 2016

@bshamblen thanks for the PR, which has been merged into the master.

@wing328 wing328 added this to the v2.2.2 milestone Nov 17, 2016
davidgri pushed a commit to davidgri/swagger-codegen that referenced this pull request May 11, 2017
[html2] Add missing enums to parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants