lint

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package lint implements the default OpenAPI linter plugin.

Index

Constants

View Source
const PluginID = "openapi-lint@v2"

PluginID identifies this plugin and its output contract.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin struct{}

Plugin is the default OpenAPI linter. It lints with LintInput.Ruleset, or the recommended spectral:oas rules when no ruleset is given.

func (Plugin) ID

func (Plugin) ID() string

ID returns the plugin identifier.

func (Plugin) Lint

Lint analyzes an OpenAPI document and returns structured findings, the ifc7 score and raw text rendered from the findings.

Jump to

Keyboard shortcuts

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