Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver interface {
// Resolve resolves the given type into a schema.
Resolve(typeName string, opts ...options.SchemaOption) (*openapi.RefOrSpec[openapi.Schema], error)
// From returns a new resolver re-positioned to the given file.
From(file *ast.File, from string) Resolver
}
Resolves types into a schema.
func NewResolver ¶
func NewResolver( validatorRegistry validator.Registry, typeDefCache cache.TypeDefCache, definitionsCache cache.DefinitionsCache, builderFactory SchemaBuilderFactory, file *ast.File, from string, ) Resolver
NewResolver creates a new resolver.
type SchemaBuilder ¶
type SchemaBuilder interface {
Build(expr ast.Expr, opts ...options.SchemaOption) (*openapi.RefOrSpec[openapi.Schema], error)
}
func NewSchemaBuilder ¶
type SchemaBuilderFactory ¶
Click to show internal directories.
Click to hide internal directories.