MCPcopy Create free account
hub / github.com/pocketbase/pocketbase / validate

Method validate

apis/batch.go:84–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (brs batchRequestsForm) validate() error {
85 return validation.ValidateStruct(&brs,
86 validation.Field(&brs.Requests, validation.Required, validation.Length(0, brs.max)),
87 )
88}
89
90// NB! When the request is submitted as multipart/form-data,
91// the regular fields data is expected to be submitted as serialized

Callers 1

batchTransactionFunction · 0.95

Calls 1

LengthMethod · 0.45

Tested by

no test coverage detected