parameter

package
v0.0.0-...-c71d033 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildParameters

func BuildParameters(comments in.SwagifyComment) map[string]Parameter

Types

type Parameter

type Parameter struct {
	Name        string              `json:"name" yaml:"name"`
	In          string              `json:"in" yaml:"in"`
	Description string              `json:"description,omitempty" yaml:"description,omitempty"`
	Required    bool                `json:"required,omitempty" yaml:"required,omitempty"`
	Schema      *sch.SchemaProperty `json:"schema,omitempty" yaml:"schema,omitempty"`
}

func (*Parameter) ValidateIn

func (p *Parameter) ValidateIn()

type ParameterRef

type ParameterRef struct {
	Ref string `json:"$ref" yaml:"$ref"`
}

Jump to

Keyboard shortcuts

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