Sha256: f796e50c70c803ab2123ea8e59b4eab774c0eb151cbe6a24eb9d6b2fb6959b9f

Contents?: true

Size: 406 Bytes

Versions: 2

Compression:

Stored size: 406 Bytes

Contents

<%- user_editable -%>
<%- package model_basename -%>

<%-
      import "context"
      import "#{config.go_package}/model"
-%>
<%-   store_name = "#{model.name}Store" -%>
func (s *<%= store_name %>) Validate(ctx context.Context, m *model.<%= model.name %>) error {
	if err := m.Validate(ctx); err != nil {
		return err
	}
	if err := s.ValidateUniqueness(ctx, m); err != nil {
		return err
	}
	return nil
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
goa_model_gen-0.9.2 lib/goa_model_gen/templates/store_validation.go.erb
goa_model_gen-0.9.1 lib/goa_model_gen/templates/store_validation.go.erb