parser

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: EUPL-1.2 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseSchema

func ParseSchema(jsonSchema string) (types.Generic, error)

ParseSchema accepts an Avro schema as a JSON string, parses it and returns back the resulting root object, or an error if any occurs.

Types

type Tree

type Tree struct {
	TopNode      types.Generic
	ComplexTypes []types.Generic
}

Tree holds the top node of the parse tree for a given schema and the list of the complex types found during parse. This list includes the top node as well.

func GetParseTree

func GetParseTree(jsonSchema string) (tree Tree, err error)

GetParseTree accepts an Avro schema as a JSON string, parses it and returns back the resulting Tree object, or an error if any occurs.

Jump to

Keyboard shortcuts

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