doc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

OpenAPI documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDescription

func GetDescription(typ reflect.Type) *string

Utility: get the description from a HasDescription.

func GetSummary

func GetSummary(typ reflect.Type) *string

Utility: get the summary from a HasSummary.

Types

type External

type External struct {
	Description string `json:"description"`
	Url         string `json:"url"`
}

https://spec.openapis.org/oas/v3.0.1.html#external-documentation-object

func GetExternalDocs

func GetExternalDocs(typ reflect.Type) *External

Utility: get the description from a HasDescription.

type HasDescription

type HasDescription interface {
	Description() string
}

Implement this on a type to add a description.

type HasExternalDocs

type HasExternalDocs interface {
	Docs() External
}

Implement this on a type to add external docs.

type HasSummary

type HasSummary interface {
	Summary() string
}

Implement this on a type to add a summary.

Jump to

Keyboard shortcuts

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