Documentation
¶
Overview ¶
Package scala provides plain Scala case class schema translation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Translator ¶
type Translator struct{}
Translator translates JSON schemas to Scala case class definitions.
func (*Translator) FileExtension ¶
func (t *Translator) FileExtension() string
FileExtension returns the file extension for Scala files.
func (*Translator) Translate ¶
func (t *Translator) Translate(portName string, schema *jsonschema.Schema, outputDir string) ([]byte, error)
Translate converts a JSON schema to Scala case class definitions.