Documentation ¶
Index ¶
Constants ¶
View Source
const Ellipsis = "..."
Variables ¶
This section is empty.
Functions ¶
func Compile ¶
func Compile(schemas []InputSchema, objectTypePrefix *string) ([]*v0.NamespaceDefinition, error)
Compile compilers the input schema(s) into a set of namespace definition protos.
Types ¶
type ErrorWithContext ¶
type ErrorWithContext struct { SourceRange input.SourceRange Source input.InputSource // contains filtered or unexported fields }
ErrorWithContext defines an error which contains contextual information.
type InputSchema ¶
type InputSchema struct { // Source is the source of the schema being compiled. Source input.InputSource // Schema is the contents being compiled. SchemaString string }
InputSchema defines the input for a Compile.
Click to show internal directories.
Click to hide internal directories.