Skip to main content

Crate sentry_options_validation

Crate sentry_options_validation 

Source
Expand description

Schema validation library for sentry-options

This library provides schema loading and validation for sentry-options. Schemas are loaded once and stored in Arc for efficient sharing. Values are validated against schemas as complete objects.

Structs§

NamespaceSchema
Schema for a namespace, containing validator and option metadata
OptionMetadata
Metadata for a single option in a namespace schema
SchemaRegistry
Registry for loading and storing schemas
ValuesWatcher
Watches the values directory for changes, reloading if there are any. If the directory does not exist we do not panic

Enums§

ValidationError
Errors that can occur during schema and value validation

Constants§

LOCAL_OPTIONS_DIR
Local fallback path for development
OPTIONS_DIR_ENV
Environment variable to override options directory
PRODUCTION_OPTIONS_DIR
Production path where options are deployed via config map

Functions§

resolve_options_dir
Resolve options directory using fallback chain:
validate_k8s_name_component
Validate a name component is valid for K8s (lowercase alphanumeric, ‘-’, ‘.’)

Type Aliases§

ValidationResult
Result type for validation operations
ValuesByNamespace
A map of option values keyed by their namespace