openapi

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spec

func Spec(config Config, routes []Route) map[string]any

Types

type Config

type Config struct {
	Title           string
	Version         string
	SecuritySchemes []SecurityScheme
}

type Operation

type Operation struct {
	OperationID string
	Summary     string
	Description string
	Tags        []string
	Status      int
	Security    []string
}

type Route

type Route struct {
	Method    string
	Path      string
	Operation Operation
	Input     reflect.Type
	Output    reflect.Type
}

type SecurityScheme

type SecurityScheme struct {
	Name   string
	Type   string
	Scheme string
	In     string
}

Jump to

Keyboard shortcuts

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