MCPcopy Create free account
hub / github.com/apache/dubbo-go / externalDocsToMap

Method externalDocsToMap

protocol/triple/openapi/encoder.go:250–259  ·  view source on GitHub ↗
(docs *model.ExternalDocs)

Source from the content-addressed store, hash-verified

248}
249
250func (e *Encoder) externalDocsToMap(docs *model.ExternalDocs) map[string]any {
251 m := make(map[string]any)
252 if docs.Description != "" {
253 m["description"] = docs.Description
254 }
255 if docs.URL != "" {
256 m["url"] = docs.URL
257 }
258 return m
259}
260
261func (e *Encoder) componentsToMap(c *model.Components) map[string]any {
262 m := make(map[string]any)

Callers 1

toMapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected