model

package
v0.0.0-...-2275712 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseModel

func ParseModel(t reflect.Type, s *openapi3.Schema)

Types

type Model

type Model struct {
	Type    reflect.Type
	Options []ModelOpts
}

func ModelOf

func ModelOf[T any]() Model

ModelOf creates a model of type T.

type ModelOpts

type ModelOpts func(s *openapi3.Schema)

Model is a model used in one or more routes.

func Desc

func Desc(desc string) ModelOpts

func Example

func Example[T any](example T) ModelOpts

Jump to

Keyboard shortcuts

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