respec

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package builder contains the source for the user-facing respec library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder holds the metadata provided by the developer through the fluent API.

func Group

func Group(groupRegistration interface{}) *Builder

func NewBuilder

func NewBuilder() *Builder

func Route

func Route(routeRegistration interface{}) *Builder

func (*Builder) Description

func (b *Builder) Description(d string) *Builder

func (*Builder) GetDescription

func (b *Builder) GetDescription() string

func (*Builder) GetParamModifiers

func (b *Builder) GetParamModifiers() map[string]ParamModifier

func (*Builder) GetSecurity

func (b *Builder) GetSecurity() []string

func (*Builder) GetSummary

func (b *Builder) GetSummary() string

Getters for the assembler to read the final values

func (*Builder) GetTags

func (b *Builder) GetTags() []string

func (*Builder) OverrideParam

func (b *Builder) OverrideParam(name string, modifier ParamModifier) *Builder

func (*Builder) Security

func (b *Builder) Security(schemeName string) *Builder

func (*Builder) Summary

func (b *Builder) Summary(s string) *Builder

func (*Builder) Tag

func (b *Builder) Tag(tags ...string) *Builder

type ParamModifier

type ParamModifier func(p *openapi3.Parameter)

Modifier functions for granular control.

type ResponseModifier

type ResponseModifier func(r *openapi3.Response)

Jump to

Keyboard shortcuts

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