Method
externalDocsToMap
(docs *model.ExternalDocs)
Source from the content-addressed store, hash-verified
| 248 | } |
| 249 | |
| 250 | func (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 | |
| 261 | func (e *Encoder) componentsToMap(c *model.Components) map[string]any { |
| 262 | m := make(map[string]any) |
Tested by
no test coverage detected