MCPcopy Create free account
hub / github.com/goadesign/goa / Parameter

Struct Parameter

http/codegen/openapi/v3/openapi.go:124–139  ·  view source on GitHub ↗

Parameter represents an OpenAPI Parameter object as defined in https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#parameterObject

Source from the content-addressed store, hash-verified

122 // Parameter represents an OpenAPI Parameter object as defined in
123 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#parameterObject
124 Parameter struct {
125 Name string `json:"name,omitempty" yaml:"name,omitempty"`
126 In string `json:"in,omitempty" yaml:"in,omitempty"`
127 Description string `json:"description,omitempty" yaml:"description,omitempty"`
128 Style string `json:"style,omitempty" yaml:"style,omitempty"`
129 Explode *bool `json:"explode,omitempty" yaml:"explode,omitempty"`
130 AllowEmptyValue bool `json:"allowEmptyValue,omitempty" yaml:"allowEmptyValue,omitempty"`
131 AllowReserved bool `json:"allowReserved,omitempty" yaml:"allowReserved,omitempty"`
132 Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
133 Required bool `json:"required,omitempty" yaml:"required,omitempty"`
134 Schema *openapi.Schema `json:"schema,omitempty" yaml:"schema,omitempty"`
135 Example any `json:"example,omitempty" yaml:"example,omitempty"`
136 Examples map[string]*ExampleRef `json:"examples,omitempty" yaml:"examples,omitempty"`
137 Content map[string]*MediaType `json:"content,omitempty" yaml:"content,omitempty"`
138 Extensions map[string]any `json:"-" yaml:"-"`
139 }
140
141 // Response represents an OpenAPI Response object as defined in
142 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#responseObject

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected