dart

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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

func ReservedIdentifiers() map[string]bool

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

Generate produces the package.

func (*Generator) Name

func (g *Generator) Name() string

Name returns the generator name.

func (*Generator) SupportedFeatures

func (g *Generator) SupportedFeatures() []string

SupportedFeatures returns the features the Dart generator emits.

func (*Generator) Validate

func (g *Generator) Validate(specIface generators.APISpec) error

Validate checks the spec can be generated.

Directories

Path Synopsis
Package portgen builds the Dart generator's copies of the TypeScript generator's language-neutral helpers.
Package portgen builds the Dart generator's copies of the TypeScript generator's language-neutral helpers.

Jump to

Keyboard shortcuts

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