linters/

directory
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: Apache-2.0

README

Linters

This directory contains linters that can be used to check Gnostic models.

Linters are plugins that generate no files but instead return messages in their responses. Each message can include a level, an identifier, text, and a key path in an API description associated with that message. Messages are collected by gnostic and written to a common output file, allowing multiple linter plugins to be invoked in a single gnostic run.

The following invocation runs the gnostic-lint-paths and gnostic-lint-descriptions plugins and writes their messages to a file named lint.pb.

% gnostic examples/v2.0/yaml/petstore.yaml --lint-paths --lint-descriptions --messages-out=lint.pb

Message files can be displayed using the report-messages tool in the apps directory.

Directories

Path Synopsis
go
gnostic-lint-descriptions
gnostic_lint is a tool for analyzing OpenAPI descriptions.
gnostic_lint is a tool for analyzing OpenAPI descriptions.
gnostic-lint-paths
gnostic-lint-paths is a tool for analyzing paths in OpenAPI descriptions.
gnostic-lint-paths is a tool for analyzing paths in OpenAPI descriptions.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL