Sergey Dubovyk 81ade196d2 feat: add bundling opportunity (#177)
* feat: add bundling opportunity

* chore: change flag name for bundle

* feat: add bundle & upload commands to build

* chore: ignore simple-websocket for bundle

* chore: remove net module

* feat: add configurable --profile for aws cli

* chore: remove externals from webpack config

* chore: add websocket comment

* chore: rename bundle uploading script

* chore: add shebang-loader

* chore: null-load fsevents

* chore: remove node-loader
2020-08-13 13:51:12 +03:00
2020-07-06 10:46:49 +03:00
2020-07-09 01:03:51 +03:00
2020-08-13 13:51:12 +03:00
2020-06-24 17:10:05 +03:00
2019-10-17 17:27:27 +03:00

OpenAPI CLI toolset

OpenAPI CLI toolbox with rich validation and bundling features.

Travis (.org) npm (scoped) NPM

OpenAPI 3 CLI toolset

Features

Currently, @redocly/openapi-cli supports these features:

  • Multifile validation. No need to bundle your file before validation.
  • Lightning-fast validation. Lint a 1 Mb file in less than one second.
  • Built-in rules for common validations.
  • Configurable severity levels for each rule.
  • Human-readable error messages with codeframes and stylish format options.
  • Intuitive suggestions for misspelled types or references.
  • Easy to implement custom rules.
  • Bundle a multifile definition into a single file.
  • Decorators to modify a validated definition during bundling.
  • Preview reference docs for local development.
  • Support for OpenAPI 2 (fka Swagger) and OpenAPI 3.0.
  • Support for OpenAPI 3.1 (coming soon).

What makes this tool different

Unlike other OpenAPI linters, @redocly/openapi-cli defines the possible type tree of a valid OpenAPI definition and then traverses it. This approach is very similar to how linters for programming languages work and results in major performance benefits over other approaches. Extend functionality at different points in the lifecycle with preprocessors, rules, and decorators.

TLDR

npx @redocly/openapi-cli lint path-to-root-file.yaml

Read the docs

Credits

Thanks to graphql-js and eslint for inspiration of the definition traversal approach and to Swagger, Spectral, and OAS-Kit for inspiring the ruleset.

Description
No description provided
Readme 26 MiB
Languages
TypeScript 83.5%
JavaScript 16.1%
Shell 0.2%