Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct {
Name string `yaml:"name"`
Code string `yaml:"code"`
Key string `yaml:"key"`
HTTP int `yaml:"http"`
Args []string `yaml:"args"`
Messages map[string]string `yaml:"messages"`
}
Error defines a single error entry in the schema.
type GenOptions ¶
GenOptions holds the options passed to a Generator.
type Generator ¶
type Generator interface {
// Lang returns the language identifier, e.g. "go", "typescript".
Lang() string
// Generate produces output files from the parsed schema.
Generate(schema Schema, opts GenOptions) error
}
Generator is the interface implemented by each language backend. Adding support for a new language means implementing this interface.
Click to show internal directories.
Click to hide internal directories.