parameter

package
v0.0.0-...-fff57cb Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	Summary       string           `json:"summary" yaml:"summary,omitempty"`
	Description   string           `json:"description" yaml:"description,omitempty"`
	Value         *json.RawMessage `json:"value,omitempty" yaml:"value,omitempty"`
	ExternalValue string           `json:"externalValue,omitempty" yaml:"externalValue,omitempty"`
}

type MediaType

type MediaType struct {
	Schema   *json.RawMessage       `json:"schema,omitempty" yaml:"schema,omitempty"`
	Example  map[string]interface{} `json:"example,omitempty" yaml:"example,omitempty"`
	Examples map[string]Example     `json:"examples,omitempty" yaml:"examples,omitempty"`
}

type Parameter

type Parameter struct {
	Name            string `json:"name,omitempty" yaml:"name,omitempty"`
	In              string `json:"in,omitempty" yaml:"in,omitempty"`
	Description     string `json:"description,omitempty" yaml:"description,omitempty"`
	Required        bool   `json:"required,omitempty" yaml:"required,omitempty"`
	Deprecated      bool   `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
	AllowEmptyValue bool   `json:"allowEmptyValue,omitempty" yaml:"allowEmptyValue,omitempty"`

	Style         string             `json:"style,omitempty" yaml:"style,omitempty"`
	Explode       bool               `json:"explode,omitempty" yaml:"explode,omitempty"`
	AllowReserved bool               `json:"allowReserved,omitempty" yaml:"allowReserved,omitempty"`
	Schema        *json.RawMessage   `json:"schema,omitempty" yaml:"schema,omitempty"`
	Example       *json.RawMessage   `json:"example,omitempty" yaml:"example,omitempty"`
	Examples      map[string]Example `json:"examples,omitempty" yaml:"examples,omitempty"`

	Content map[string]MediaType `json:"content,omitempty" yaml:"content,omitempty"`
}

func GetParameters

func GetParameters(p string) []Parameter

Jump to

Keyboard shortcuts

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