Documentation
¶
Overview ¶
Package openapi validates the OpenAPI schemas a package ships under openapi/. Only the top level of the directory is read, because that is where the runtime looks a package's schemas up. Its rules encode schema contracts rather than preferences, so the linter carries no .pkglint.yaml settings and its rules always report at their built-in severity.
Index ¶
Constants ¶
View Source
const LinterID = "openapi"
LinterID is the stable identifier used to reference this linter in diagnostics.
Variables ¶
View Source
var Scopes = lint.EveryType(lint.AllScopes...)
Scopes lists the verification targets this linter is processed in. openapi/ is packaged into both images, so the schemas are checked everywhere they ship.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Path string
}
Config holds the path required to construct a Linter.
Click to show internal directories.
Click to hide internal directories.