Documentation
¶
Index ¶
- Constants
- func As(err error, target any) bool
- func GetCircularReferenceString(visited []string) string
- func Is(err error, target error) bool
- func IsUnsupported(err error) bool
- func IsValidationErr(err error) bool
- func Join(errs ...error) error
- func New(message string) error
- func NewCircularReferenceError(visited []string) error
- type Error
- type PanicError
- type Severity
- type SkippedEntity
- type SkippedError
- type UnsupportedError
- type ValidationError
- func GetValidationErr(err error) *ValidationError
- func NewResolveError(err error, node *yaml.Node) *ValidationError
- func NewValidationError(msg string, node *yaml.Node, err error) *ValidationError
- func NewValidationHint(msg string, node *yaml.Node, err error) *ValidationError
- func NewValidationWarning(msg string, node *yaml.Node, err error) *ValidationError
Constants ¶
View Source
const ( ErrGeneration = Error("failed to generate output") ErrOpenAPIV2 = Error("openapi v2 is not supported") )
Variables ¶
This section is empty.
Functions ¶
func IsUnsupported ¶
func IsValidationErr ¶
Types ¶
type PanicError ¶
func NewPanicError ¶
func NewPanicError(cause error) *PanicError
func (PanicError) Error ¶
func (e PanicError) Error() string
func (PanicError) Is ¶
func (e PanicError) Is(target error) bool
func (PanicError) Unwrap ¶
func (e PanicError) Unwrap() error
type SkippedEntity ¶
type SkippedError ¶
type SkippedError struct {
SkippedEntity SkippedEntity
*UnsupportedError
}
func NewSkippedError ¶
func NewSkippedError(skippedEntity SkippedEntity, uErr *UnsupportedError) *SkippedError
func (SkippedError) Error ¶
func (e SkippedError) Error() string
type UnsupportedError ¶
func GetUnsupportedErr ¶
func GetUnsupportedErr(err error) *UnsupportedError
func NewUnsupportedError ¶
func NewUnsupportedError(msg string, node *yaml.Node) *UnsupportedError
func (UnsupportedError) Error ¶
func (e UnsupportedError) Error() string
func (UnsupportedError) GetColumnNumber ¶
func (e UnsupportedError) GetColumnNumber() int
func (UnsupportedError) GetLineNumber ¶
func (e UnsupportedError) GetLineNumber() int
func (UnsupportedError) Is ¶
func (e UnsupportedError) Is(target error) bool
type ValidationError ¶
type ValidationError struct {
Message string
Node *yaml.Node
Cause error
Severity Severity
Rule string
}
func GetValidationErr ¶
func GetValidationErr(err error) *ValidationError
func NewResolveError ¶
func NewResolveError(err error, node *yaml.Node) *ValidationError
func NewValidationError ¶
func NewValidationError(msg string, node *yaml.Node, err error) *ValidationError
func NewValidationHint ¶
func NewValidationHint(msg string, node *yaml.Node, err error) *ValidationError
func NewValidationWarning ¶
func NewValidationWarning(msg string, node *yaml.Node, err error) *ValidationError
func (ValidationError) Error ¶
func (e ValidationError) Error() string
func (*ValidationError) GetColumnNumber ¶
func (e *ValidationError) GetColumnNumber() int
GetColumnNumber returns the column number from the Node, or -1 if not available
func (*ValidationError) GetLineNumber ¶
func (e *ValidationError) GetLineNumber() int
GetLineNumber returns the line number from the Node, or -1 if not available
func (ValidationError) GetResult ¶
func (e ValidationError) GetResult() *validation.Error
func (ValidationError) Is ¶
func (e ValidationError) Is(target error) bool
func (ValidationError) Unwrap ¶
func (e ValidationError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.