dependabot[bot] 3c159eb7ca chore(deps-dev): bump webpack from 5.73.0 to 5.76.0 (#1025)
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.76.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.76.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-20 10:47:23 +01:00
2023-03-13 10:49:54 +02:00
2022-08-18 13:22:31 +02:00
2022-09-19 11:39:31 +03:00
2020-06-24 17:10:05 +03:00
2019-10-17 17:27:27 +03:00

Redocly CLI toolset

Redocly CLI (fka OpenAPI CLI) toolbox with rich validation and bundling features.

build and test npm (scoped) NPM

OpenAPI 3 CLI toolset

Features

Currently, @redocly/cli supports these features:

  • Multi-file 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 multi-file definition into a single file.
  • Decorators to modify a validated definition during bundling.
  • Preview docs for local development.
  • Support for OpenAPI 2 (fka Swagger) and OpenAPI 3.0.
  • Basic support for OpenAPI 3.1

What makes this tool different

  • 💨 It's faster (uses a type tree similar to how linters for programming languages work)
  • 🎯 It's more accurate (working with types is more accurate than working with JSON path)
  • ⚙️ It's highly configurable (comes with a lot of commands and rules)
  • 🛠️ It's more extensible (architected for custom plugins and types)

Usage

Node

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

Alternatively, install it globally with npm:

npm install @redocly/cli -g

Then you can use it as redocly [command] [options], for example:

redocly lint path-to-root-file.yaml

Docker

To give the Docker container access to the OpenAPI definition files, you need to mount the containing directory as a volume. Assuming the OAS definition is rooted in the current working directory, you need the following command:

docker run --rm -v $PWD:/spec redocly/cli lint path-to-root-file.yaml

To build and run with a local image, run the following from the project root:

docker build -t redocly/cli .
docker run --rm -v $PWD:/spec redocly/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.

Development

See CONTRIBUTING.md

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