question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Swagger removing html attributes from description

See original GitHub issue

Swagger version:3.0.14

The new Swagger version is removing the html attributes from the description. Original in the index.json file:

"info": {
    "title": "Documentation",
    "description": "<table><tr><td colspan=\"3\"><span class=\"method\">PUT</span></td></tr></table>",
    "contact": ""
  },

Cleared version:

"info": {
    "title": "Documentation",
    "description": "<table><tr><td><span>PUT</span></td></tr></table>",
    "contact": ""
  },

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
shockeycommented, Feb 8, 2018

This specific use case is fixed in #4194 🎉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Swagger UI's removes inline style, class in asp net core xml
Swagger UI's removes inline style, class in asp net core xml ... UI's HTML sanitizer removes inline style, class, and data-* attributes.
Read more >
Swagger UI configuration
When enabled, sanitizer will leave style , class and data-* attributes untouched on all HTML Elements declared inside markdown strings. This parameter is ......
Read more >
Describing Parameters
In Swagger, API operation parameters are defined under the parameters section in the operation definition. Each parameter has name , value type (for ......
Read more >
Swagger RESTful API Documentation Specification
Swagger ™ is a project used to describe and document RESTful APIs. The Swagger specification defines a set of files required to describe...
Read more >
OpenAPI Specification - Version 3.0.3
If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found