Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGoLoader ¶
func NewGoLoader(source interface{}) gojsonschema.JSONLoader
Types ¶
type JsonSchemaValidator ¶
type JsonSchemaValidator[T any] struct { // contains filtered or unexported fields }
func (*JsonSchemaValidator[T]) IsValid ¶
func (v *JsonSchemaValidator[T]) IsValid(object *T) error
type TagValidator ¶
type TagValidator[T any] struct { // contains filtered or unexported fields }
func NewTagValidator ¶
func NewTagValidator[T any]() *TagValidator[T]
func (*TagValidator[T]) IsValid ¶
func (v *TagValidator[T]) IsValid(object *T) error
func (*TagValidator[T]) SetValidationFunc ¶
func (v *TagValidator[T]) SetValidationFunc(name string, callback validator.ValidationFunc) error
Click to show internal directories.
Click to hide internal directories.