Documentation ¶
Index ¶
Constants ¶
View Source
const ( No UseExamplesEnum = 0 IfPresent = 1 Exclusively = 2 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrGenerationFailed ¶
func (*ErrGenerationFailed) Error ¶
func (err *ErrGenerationFailed) Error() string
func (*ErrGenerationFailed) Unwrap ¶
func (err *ErrGenerationFailed) Unwrap() error
type MediaGenerator ¶
type MediaGenerator interface {
GenerateData(ctx context.Context, mediaType *openapi3.MediaType) (Data, error)
}
func New ¶
func New(options Options) MediaGenerator
type MockjsGenerator ¶
type MockjsGenerator struct { Random randomGenerator Expression string }
func (*MockjsGenerator) GenerateByMockJsExpression ¶
func (g *MockjsGenerator) GenerateByMockJsExpression(expr string, schemaType string) (ret interface{}, err error)
func (*MockjsGenerator) GenerateDataBySchema ¶
type UseExamplesEnum ¶
type UseExamplesEnum int
func (UseExamplesEnum) String ¶
func (enum UseExamplesEnum) String() string
Source Files ¶
- Data.go
- MediaGenerator.go
- Options.go
- arrayGenerationDelegator.go
- arrayLengthGenerator.go
- base64Generator.go
- booleanGenerator.go
- combinedSchemaGenerator.go
- const.go
- coordinatingMediaGenerator.go
- coordinatingSchemaGenerator.go
- errorSuppressor.go
- errors.go
- exampleSchemaGenerator.go
- formattedStringGenerators.go
- freeFormGenerator.go
- hashMapGenerator.go
- htmlGenerator.go
- integerGenerator.go
- keyGenerator.go
- mockjsGenerator.go
- nullGenerator.go
- numberGenerator.go
- objectGenerationDelegator.go
- objectGenerator.go
- oneOfGenerator.go
- randomGenerator.go
- rangedTextGenerator.go
- recursionBreaker.go
- recursiveGenerator.go
- regularArrayGenerator.go
- schemaGenerator.go
- schemaMerger.go
- stringGenerator.go
- textGenerator.go
- uniqueArrayGenerator.go
- uniqueValueGenerator.go
Click to show internal directories.
Click to hide internal directories.