severity

package
v1.9.10 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package severity provides severity level constants and utilities for issues reported by validator and converter packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Severity

type Severity int

Severity indicates the severity level of an issue during validation or conversion.

const (
	// SeverityError indicates a spec violation that makes the document invalid (validation only)
	SeverityError Severity = iota
	// SeverityWarning indicates lossy conversions, best-practice violations, or recommendations
	SeverityWarning
	// SeverityInfo indicates informational messages about conversion choices
	SeverityInfo
	// SeverityCritical indicates features that cannot be converted (data loss)
	SeverityCritical
)

func (Severity) String

func (s Severity) String() string

String returns the string representation of the severity level.

Jump to

Keyboard shortcuts

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