(v any)
| 358 | } |
| 359 | |
| 360 | func cloneJSON(v any) any { |
| 361 | data, err := json.Marshal(v) |
| 362 | if err != nil { |
| 363 | return v |
| 364 | } |
| 365 | var copied any |
| 366 | if err := json.Unmarshal(data, &copied); err != nil { |
| 367 | return v |
| 368 | } |
| 369 | return copied |
| 370 | } |
| 371 | |
| 372 | func alternatives(s *openapi3.Schema) openapi3.SchemaRefs { |
| 373 | return append(append(openapi3.SchemaRefs{}, s.OneOf...), s.AnyOf...) |
no outgoing calls
no test coverage detected