KaiZen-OpenAPI-Editor icon indicating copy to clipboard operation
KaiZen-OpenAPI-Editor copied to clipboard

Skip empty strings in formatter (customizable)

Open rshadow opened this issue 6 years ago • 0 comments

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'

rshadow avatar May 13 '19 10:05 rshadow