swagger

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewContentWithJSONSchema

func NewContentWithJSONSchema(schemaRef *openapi3.SchemaRef) openapi3.Content

NewContentWithJSONSchema creates a Content map for a JSON schema

func NewSchemaRefForValue

func NewSchemaRefForValue(t reflect.Type) *openapi3.SchemaRef

NewSchemaRefForValue converts a Go struct to OpenAPI schema

Types

type SwaggerProvider

type SwaggerProvider struct{}

func NewSwaggerProvider

func NewSwaggerProvider() *SwaggerProvider

func (*SwaggerProvider) Generate

func (s *SwaggerProvider) Generate(engine http.HTTPEngine) *openapi3.T

func (*SwaggerProvider) RegisterRoutes

func (s *SwaggerProvider) RegisterRoutes(engine http.HTTPEngine)

Jump to

Keyboard shortcuts

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