schemanoopimpl

package module
v0.0.0-...-1e93a8c Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 2 Imported by: ? modules, 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 schemanoopimpl implements a schema component that never reports any violation. It's used by binaries that don't validate their configuration, so they don't link the JSON schema library and the embedded schemas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provides

type Provides struct {
	Comp schema.Component
}

Provides defines the output of the noop schema component

func NewComponent

func NewComponent() Provides

NewComponent returns the noop schema component

type SchemaNoop

type SchemaNoop struct{}

SchemaNoop is a schema component that never reports any violation. It's exported for the code loading a configuration outside of Fx.

func (*SchemaNoop) GetViolations

func (*SchemaNoop) GetViolations(model.SchemaID) []*model.Violation

GetViolations never reports any violation

func (*SchemaNoop) ValidateConfig

func (*SchemaNoop) ValidateConfig(model.Reader) ([]*model.Violation, error)

ValidateConfig never reports any violation

func (*SchemaNoop) ValidateYAML

func (*SchemaNoop) ValidateYAML([]byte, model.SchemaID) ([]*model.Violation, error)

ValidateYAML never reports any violation

Jump to

Keyboard shortcuts

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