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

Struct MediaType

http/codegen/openapi/v3/openapi.go:153–159  ·  view source on GitHub ↗

MediaType represents an OpenAPI Media Type object as defined in https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#mediaTypeObject

Source from the content-addressed store, hash-verified

151 // MediaType represents an OpenAPI Media Type object as defined in
152 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#mediaTypeObject
153 MediaType struct {
154 Schema *openapi.Schema `json:"schema,omitempty" yaml:"schema,omitempty"`
155 Example any `json:"example,omitempty" yaml:"example,omitempty"`
156 Examples map[string]*ExampleRef `json:"examples,omitempty" yaml:"examples,omitempty"`
157 Encoding map[string]*Encoding `json:"encoding,omitempty" yaml:"encoding,omitempty"`
158 Extensions map[string]any `json:"-" yaml:"-"`
159 }
160
161 // Encoding represents an OpenAPI Encoding object as defined in
162 // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.3.md#encodingObject

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected