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§
- Namespace
Schema - Schema for a namespace, containing validator and option metadata
- Option
Metadata - Metadata for a single option in a namespace schema
- Schema
Registry - Registry for loading and storing schemas
- Values
Watcher - Watches the values directory for changes, reloading if there are any. If the directory does not exist we do not panic
Enums§
- Validation
Error - 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§
- Validation
Result - Result type for validation operations
- Values
ByNamespace - A map of option values keyed by their namespace