Search code examples
yamlmarkdownswaggerswagger-2.0swagger-editor

How to specify columns in Swagger


How to specify 3 columns in a swagger editor so the output should look like:

a            b            c
x            y            z

swagger: '2.0'
info:
  description: >
    This is a sample server Petstore server.



    [Learn about Swagger](http://swagger.io) or join the IRC channel `#swagger`
    on irc.freenode.net.



    For this sample, you can use the api key `special-key` to test the
    authorization filters

    **Here I want to specify 3 columns** 


Solution

  • This is essentially a Markdown question. To make a table in Markdown use a tool like this or following syntax:

    | One | Two | Three |
    |-----|-----|-------|
    | a   | b   | c     |