validators

package
v0.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExactlyOneAttributeValidator added in v0.18.2

type ExactlyOneAttributeValidator struct{}

func (ExactlyOneAttributeValidator) Description added in v0.18.2

func (ExactlyOneAttributeValidator) MarkdownDescription added in v0.18.2

func (v ExactlyOneAttributeValidator) MarkdownDescription(ctx context.Context) string

func (ExactlyOneAttributeValidator) ValidateObject added in v0.18.2

type SupportedPlatforms

type SupportedPlatforms struct{}

func (SupportedPlatforms) Description

func (v SupportedPlatforms) Description(ctx context.Context) string

func (SupportedPlatforms) MarkdownDescription

func (v SupportedPlatforms) MarkdownDescription(ctx context.Context) string

func (SupportedPlatforms) ValidateSet

type SymbolSize added in v0.20.2

type SymbolSize struct{}

SymbolSize validates the format and size of a building block definition symbol.

The value must be either:

  • an http:// or https:// URL, or
  • a data URI with one of the allowed image prefixes (png, jpeg, jpg, gif, webp, svg+xml).

For data URIs, the base64 payload must be valid and the decoded size must not exceed 100 KiB.

func (SymbolSize) Description added in v0.20.2

func (v SymbolSize) Description(_ context.Context) string

func (SymbolSize) MarkdownDescription added in v0.20.2

func (v SymbolSize) MarkdownDescription(ctx context.Context) string

func (SymbolSize) ValidateString added in v0.20.2

func (v SymbolSize) ValidateString(_ context.Context, req validator.StringRequest, resp *validator.StringResponse)

Jump to

Keyboard shortcuts

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