Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Remove HTML tags from generated JSON #6

Closed
lararosekelley opened this issue Jun 1, 2015 · 2 comments
Closed

Remove HTML tags from generated JSON #6

lararosekelley opened this issue Jun 1, 2015 · 2 comments

Comments

@lararosekelley
Copy link

I noticed that in the generated JSON output, there are p tags in sections like description and type, etc. Example:

{
    "type": "get",
    "url": "/assembly/definition/:did/workspace/:wid/element/:eid",
    "title": "Assembly Definition",
    "name": "GetAssemblyDefinition",
    "description": "<p>Get definition of requested assembly</p> ",
    "group": "Model",
    "version": "0.1.0",
    "permission": [
      {
        "name": "auth",
        "title": "Authenticated access only",
        "description": "<p>Must be logged in to access this resource.</p> "
      }
    ]
}

These are simple to get rid of on the front end that I'm feeding the JSON to, but I think it'd be best to not have them be there in the first place, to separate data from markup. Thoughts?

@lararosekelley
Copy link
Author

Closing and opening new issue in spec repo instead, more appropriate.

@MarkHerhold
Copy link

for reference, it was moved here: apidoc/apidoc-spec#2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants