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

Struct Header

http/codegen/openapi/v3/openapi.go:174–187  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

172 // Header represents an OpenAPI Header object as defined in
173 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#headerObject
174 Header struct {
175 Description string `json:"description,omitempty" yaml:"description,omitempty"`
176 Style string `json:"style,omitempty" yaml:"style,omitempty"`
177 Explode *bool `json:"explode,omitempty" yaml:"explode,omitempty"`
178 AllowEmptyValue bool `json:"allowEmptyValue,omitempty" yaml:"allowEmptyValue,omitempty"`
179 AllowReserved bool `json:"allowReserved,omitempty" yaml:"allowReserved,omitempty"`
180 Deprecated bool `json:"deprecated,omitempty" yaml:"deprecated,omitempty"`
181 Required bool `json:"required,omitempty" yaml:"required,omitempty"`
182 Schema *openapi.Schema `json:"schema,omitempty" yaml:"schema,omitempty"`
183 Example any `json:"example,omitempty" yaml:"example,omitempty"`
184 Examples map[string]*ExampleRef `json:"examples,omitempty" yaml:"examples,omitempty"`
185 Content map[string]*MediaType `json:"content,omitempty" yaml:"content,omitempty"`
186 Extensions map[string]any `json:"-" yaml:"-"`
187 }
188
189 // Link represents an OpenAPI Link object as defined in
190 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#linkObject

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected