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 ¶
func ValidateFeatureBundle(data string) (*oc.OpenconfigModuleCatalog_Organizations_Organization_FeatureBundles_FeatureBundle, error)
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 ¶
func ValidateModule(data string) (*oc.OpenconfigModuleCatalog_Organizations_Organization_Modules_Module, error)
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.
Click to show internal directories.
Click to hide internal directories.