Documentation
¶
Overview ¶
Package validation provides runtime validation of events against schemas.
The Validator checks that incoming event payloads match the schema definition before they are published to Redpanda. This prevents invalid data from entering the system.
Validation includes:
- Required field presence
- Field type correctness
- Enum value constraints
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator validates events against a schema
func NewValidator ¶
NewValidator creates a validator from a schema file
func NewValidatorFromBytes ¶
NewValidatorFromBytes creates a validator from schema YAML bytes
func (*Validator) EventTypeExists ¶
EventTypeExists checks if an event type is defined in the schema
func (*Validator) GetEventTypes ¶
GetEventTypes returns all event types defined in the schema
Click to show internal directories.
Click to hide internal directories.