omissis/go-jsonschema

View on GitHub
pkg/generator/config.go

Summary

Maintainability
A
0 mins
Test Coverage
package generator

import "github.com/atombender/go-jsonschema/pkg/schemas"

type Config struct {
    SchemaMappings      []SchemaMapping
    ExtraImports        bool
    Capitalizations     []string
    ResolveExtensions   []string
    YAMLExtensions      []string
    DefaultPackageName  string
    DefaultOutputName   string
    StructNameFromTitle bool
    Warner              func(string)
    Tags                []string
    OnlyModels          bool
    MinSizedInts        bool
    Loader              schemas.Loader
}

type SchemaMapping struct {
    SchemaID    string
    PackageName string
    RootType    string
    OutputName  string
}