Documentation
¶
Overview ¶
Package dart generates a Dart client package from an API specification.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGenerator ¶
func NewGenerator() generators.LanguageGenerator
NewGenerator creates the Dart generator.
func ReservedIdentifiers ¶
ReservedIdentifiers returns the type names a schema must not take in a generated Dart package: its own declarations, forge_client's exports and the core types its code names. StripPrefix leaves a schema prefixed rather than strip it onto one of these, and the model registry renames a schema that already has one by adding Model.
Types ¶
type Generator ¶
type Generator struct{}
Generator generates Dart packages over package:forge_client.
func (*Generator) Generate ¶
func (g *Generator) Generate(_ context.Context, specIface generators.APISpec, configIface generators.GeneratorConfig) (*generators.GeneratedClient, error)
Generate produces the package.
func (*Generator) SupportedFeatures ¶
SupportedFeatures returns the features the Dart generator emits.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.