python

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFormatMappings = map[ir.IRFormat]generators.FormatTypeMapping{
	ir.IRFormatByte:     {Type: "bytes"},
	ir.IRFormatDateTime: {Type: "datetime", Import: "datetime"},
	ir.IRFormatDate:     {Type: "date", Import: "datetime"},
	ir.IRFormatUUID:     {Type: "UUID", Import: "uuid"},
	ir.IRFormatEmail:    {Type: "EmailStr", Import: "pydantic"},
	ir.IRFormatURI:      {Type: "AnyUrl", Import: "pydantic"},
}

DefaultFormatMappings provides sensible defaults for JSON Schema formats in Python

Functions

This section is empty.

Types

type Generator

type Generator struct{}

func (*Generator) Generate

type Option

type Option struct {
	// contains filtered or unexported fields
}

Option is a Python-specific generator option

func (Option) OptionValue

func (Option) OptionValue() string

OptionValue implements generators.GeneratorOption

Jump to

Keyboard shortcuts

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