Documentation
¶
Overview ¶
Package lint provides a lint function for OpenAPI Spec 3.
Index ¶
Constants ¶
View Source
const ( LEVEL_ERROR = 0 LEVEL_WARN = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Checks []Check
}
func DefaultConfig ¶
func DefaultConfig() *Config
type Error ¶
type Error struct {
Id string `json:"id,omitempty" yaml:"id,omitempty"`
Text string `json:"text,omitempty" yaml:"text,omitempty"`
Comment string `json:"comment,omitempty" yaml:"comment,omitempty"`
Level int `json:"level" yaml:"level"`
Source string `json:"source,omitempty" yaml:"source,omitempty"`
}
func InfoCheck ¶
InfoCheck based on REQUIRED fields (Version and Info) from swagger docs, see: https://swagger.io/docs/specification/api-general-info/
Click to show internal directories.
Click to hide internal directories.