schema

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: Apache-2.0 Imports: 5 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKnownSchema

func GetKnownSchema(fileName string) (string, error)

func IsJSONValidAgainstSchema

func IsJSONValidAgainstSchema(json, schema string) error

IsJSONValidAgainstSchema validates a piece of JSON against a schema, returning an error if it is not valid

func IsValidJSON

func IsValidJSON(maybeJSON string) bool

IsValidJSON checks if a string is valid json https://stackoverflow.com/a/36922225

func IsValidJSONSchema

func IsValidJSONSchema(maybeSchema string) error

IsValidJSONSchema returns an error if the schema is not a valid JSON Schema, nil otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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