/swagger-json-preview

Used to preview swagger json file content to HTML when browse in gitlab

Primary LanguageJavaScriptMIT LicenseMIT

swagger-json-preview (For Chrome)

preview swagger json when browse on web

feature

  • Only available for gitlab for now
  • The extention will work on web pages where the url is ended with .swagger.json
    • A 'Preview Swagger' Button will be shown on file actions row, click the button and the content will be replaced with formatted docs

refer

how to use

  • Download zip file: https://github.com/isword123/swagger-json-preview/archive/master.zip
  • Unzip the zip to a folder
  • Go to Chrome: 'More tools' -> 'Extensions'
    • Enable developer mode
    • Click 'Load unpacked', choose the folder location unzipped
    • The extension is loaded
  • If you want the preview work automatically, please go to extention options page, and toggle on the 'auto preview' switch

Changes

  • 增加 properties 有以下字段的处理
   additionalProperties: {
     type: number,
     format: double
   }
  • add 'comment' for object comment to show in json

README.md
Created On: 2019-02-13 15:05:52