Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip empty strings in formatter (customizable) #501

Open
rshadow opened this issue May 13, 2019 · 0 comments
Open

Skip empty strings in formatter (customizable) #501

rshadow opened this issue May 13, 2019 · 0 comments

Comments

@rshadow
Copy link

rshadow commented May 13, 2019

I often have to edit large swagger files. And it is good practice to add blank lines between routes, replies, etc. Please add the ability to save blank lines as a setting.

An example of a human readable file:

swagger: '2.0'
info:
  version: '1.0'
  title: my awesome service
schemes:
- https
produces:
- application/json
consumes:
- application/json


paths:
  /ping:
  ...

  /user/get:
  ...

  /user/save:
  ...


definitions:

  # Basic

  UserId:
    type: integer
    ...

  UserLogin:
    type: string


  # User

  User:
    type: object
     properties:
      user_id:
        $ref: '#/definitions/UserId'
      user_login:
        $ref: '#/definitions/UserLogin'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant