errorIsJSONFormat checks if the error is a JSON format error.
(err error)
| 614 | |
| 615 | // errorIsJSONFormat checks if the error is a JSON format error. |
| 616 | func errorIsJSONFormat(err error) error { |
| 617 | var invalidJSONTypeError jsonschema.InvalidJSONTypeError |
| 618 | if errors.As(err, &invalidJSONTypeError) { |
| 619 | return ErrInvalidJSONPayload |
| 620 | } |
| 621 | return nil |
| 622 | } |
no outgoing calls
no test coverage detected