New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

openapi2slate

Package Overview
Dependencies
Maintainers
4
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

openapi2slate

Convert an Open API (i.e. Swagger) specification to Slate Markdown

latest
Source
npmnpm
Version
1.3.1
Version published
Weekly downloads
43
-34.85%
Maintainers
4
Weekly downloads
 
Created
Source

OpenAPI to Slate Markdown

CI

An opinionated and Work in Progress converter from OpenAPI to Slate Markdown.

Created for use by Scrive.

Usage

openapi2slate your_api.json

Outputs resulting Markdown + HTML to standard output.

Command line options:

--validate            Validate the API using Swagger-Parser
--include-internal    By default API paths using an 'Internal' tag will be
                      hidden, this flag includes them too
--search-filter       Include the search filter

Our formatting choices

  • We use it for http://apidocs.scrive.com/
  • Dereferncing is not properly implemented, instead it tries to dereference the file for you and use that. YMMV.
  • API paths are grouped by tags.
  • A list of API paths is generated automatically.
  • The 'Internal' tag acts in a special way and those API paths are not included by default, use --include-internal to include them.
  • You can mark parameters with x-internalOnly to make them "Internal"
  • API Schema works fairly OK, some features may be missing...
  • We render things in Slate Markdown that fits our needs and customisations, so this may not work well for you!

FAQs

Package last updated on 03 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts