jsonschemautil

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSchema

func GenerateSchema(v interface{}) (string, error)

GenerateSchema 根据 struct 结构体或 json 字符串生成 json Schema

func Validate

func Validate(schema string, v interface{}) (string, error)

Validate 通过 schema json 字符串校验 struct 结构体或目标 json 字符串

func ValidateFromFile

func ValidateFromFile(schemaFilePath string, v interface{}) (string, error)

ValidateFromFile 通过 schema 文件校验 struct 结构体或目标 json 字符串

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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