matchesSchema reports whether a value passes the same check as responses.
(ref *openapi3.SchemaRef, v any)
| 435 | |
| 436 | // matchesSchema reports whether a value passes the same check as responses. |
| 437 | func matchesSchema(ref *openapi3.SchemaRef, v any) bool { |
| 438 | if ref == nil || ref.Value == nil { |
| 439 | return true |
| 440 | } |
| 441 | return len(restProblems(ref.Value.VisitJSON(v, openapi3.MultiErrors(), openapi3.VisitAsResponse()))) == 0 |
| 442 | } |