Versions in this module Expand all Collapse all v0 v0.0.1 Oct 16, 2023 Changes in this version + type Generator interface + Generate func(*GeneratorOptions) interface{} + type GeneratorOptions struct + BypassCyclicReferenceCheck bool + DefaultArrayMaxItems int + DefaultArrayMinItems int + DefaultNumberMaximum int + DefaultNumberMinimum int + DefaultObjectMaxProperties int + DefaultObjectMinProperties int + DefaultStringMaxLength int + DefaultStringMinLength int + MaximumReferenceDepth int + Rand *rand.RandUtil + ReferenceResolver referenceResolver + SuppressFallbackValues bool + type ParserOptions struct + RegexPatternPropertyOptions *regen.GeneratorArgs + RegexStringOptions *regen.GeneratorArgs + type RootGenerator struct + Definitions map[string]Generator + Defs map[string]Generator + Generator Generator + Metadata *parserMetadata + func ParseSchema(schema []byte, opts *ParserOptions) (RootGenerator, error) + func ParseSchemaFile(path string, opts *ParserOptions) (RootGenerator, error) + func ParseSchemaFileWithDefaults(path string) (RootGenerator, error) + func ParseSchemaString(schema string, opts *ParserOptions) (RootGenerator, error) + func ParseSchemaStringWithDefaults(schema string) (RootGenerator, error) + func ParseSchemaWithDefaults(schema []byte) (RootGenerator, error) + func (g RootGenerator) Generate(opts *GeneratorOptions) interface{} + func (g RootGenerator) GenerateWithDefaults() interface{} + func (g RootGenerator) String() string