(value *string, field string)
| 467 | } |
| 468 | |
| 469 | func validateOptionalIdentifierField(value *string, field string) error { |
| 470 | if value != nil && *value == "" { |
| 471 | return fmt.Errorf("%w: %s", ErrInvalidField, field) |
| 472 | } |
| 473 | return nil |
| 474 | } |
| 475 | |
| 476 | func validateEnvelopeBodyAndFreshness(env Envelope, opts ValidateOptions) error { |
| 477 | if _, err := validateJSONObject("body", env.Body); err != nil { |
no outgoing calls
no test coverage detected