MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / ValidateCreateLedger

Method ValidateCreateLedger

api/model/model.go:65–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65func (l *CreateLedger) ValidateCreateLedger() error {
66 return validation.ValidateStruct(l,
67 validation.Field(&l.Name, validation.Required),
68 )
69}
70
71func (l *UpdateLedger) ValidateUpdateLedger() error {
72 return validation.ValidateStruct(l,

Callers 2

CreateLedgerMethod · 0.95
TestValidateCreateLedgerFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestValidateCreateLedgerFunction · 0.64