checker

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRecursion

func CheckRecursion(rootTypeName string, rootSchema *ischema.ISchema) error

CheckRecursion checks that given schema doesn't have invalid recursions.

Examples of invalid recursions:

TYPE @foo
{
  "foo": @foo
}

Examples of valid recursions:

TYPE @foo
{
  "foo": @foo // {optional: true}
}

TYPE @foo
{
  "foo": [@foo]
}

func CheckRootSchema

func CheckRootSchema(rootSchema *ischema.ISchema)

func ValidateLiteralValue

func ValidateLiteralValue(node ischema.Node, jsonValue bytes.Bytes)

Types

This section is empty.

Jump to

Keyboard shortcuts

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