validate

package
v0.0.0-...-b66c160 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package validate contains functions to validate JSON strings

which come with mutation operations (e.g., create or update)
before such data are persisted into underlying storage.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateFeatureBundle

ValidateFeatureBundle is used to validate whether the input JSON data is in correct format. It takes a JSON string *data*, and returns a pointer to FeatureBundle if *data* is in correct format. Otherwise, the fucntion returns an error explaining why validation fails.

func ValidateModule

ValidateModule is used to validate whether the input JSON data is in correct format. It takes a JSON string *data*, and returns a pointer to Module if *data* is in correct format. Otherwise, the function returns an error explaining why validation fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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