(into, from map[TKey]TValue)
| 168 | } |
| 169 | |
| 170 | func mergeMap[TKey comparable, TValue any](into, from map[TKey]TValue) { |
| 171 | for kf, vf := range from { |
| 172 | _, ok := into[kf] |
| 173 | if !ok { |
| 174 | into[kf] = vf |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | // Spec creates an OpenAPI 3.0 specification document for the API. |
| 180 | func (api *API) Spec() (spec *openapi3.T, err error) { |