Support for custom fields in Swagger UI

739 views
Skip to first unread message

jim...@ghostcrabworkshop.com

unread,
Mar 26, 2013, 5:25:30 PM3/26/13
to swagger-sw...@googlegroups.com
Hi, I was wondering if there were any plans to support custom fields in Swagger UI?

For example, the JSON spec could look like this:

"apis": [
        {
            "path": "/program/{program}",
            "description": "Get an Program",
            "customHeaderNotes": "The following header fields are required...",
            [...]

And the UI could show customHeaderNotes at the same level as notes. Or is this somehow already supported, and I just didn't notice?


tony tam

unread,
Mar 28, 2013, 3:28:56 PM3/28/13
to swagger-sw...@googlegroups.com
Hi, custom fields would be great, and many people are adding them on their own.  The UI doesn't show them by default, though, but is easy to add.

There's a ticket to show headers in the response on github, i think under swagger-core

jim...@ghostcrabworkshop.com

unread,
Apr 2, 2013, 5:37:05 PM4/2/13
to swagger-sw...@googlegroups.com
Thanks. You're right – it didn't seem too hard to add. I did it on the swagger-node-express side (I made a pull request in case you want it https://github.com/wordnik/swagger-node-express/pull/47) and will try to make some corresponding changes in the UI.
Reply all
Reply to author
Forward
0 new messages