RepreZen / KaiZen-OpenAPI-Editor

Eclipse Editor for the Swagger-OpenAPI Description Language
Eclipse Public License 1.0
114 stars 11 forks source link

Skip empty strings in formatter (customizable) #501

Open rshadow opened 5 years ago

rshadow commented 5 years ago

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'