MCPcopy Create free account
hub / github.com/compozy/agh / validateOptionalIdentifierField

Function validateOptionalIdentifierField

internal/network/validate.go:469–474  ·  view source on GitHub ↗
(value *string, field string)

Source from the content-addressed store, hash-verified

467}
468
469func 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
476func validateEnvelopeBodyAndFreshness(env Envelope, opts ValidateOptions) error {
477 if _, err := validateJSONObject("body", env.Body); err != nil {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected