MCPcopy Create free account
hub / github.com/goadesign/goa / Validate

Method Validate

expr/http_service.go:207–226  ·  view source on GitHub ↗

Validate makes sure the service is valid.

()

Source from the content-addressed store, hash-verified

205
206// Validate makes sure the service is valid.
207func (svc *HTTPServiceExpr) Validate() error {
208 verr := new(eval.ValidationErrors)
209
210 // Validate attributes
211 svc.validateAttributes(verr)
212
213 // Validate parent service
214 svc.validateParent(verr)
215
216 // Validate canonical endpoint
217 svc.validateCanonicalEndpoint(verr)
218
219 // Validate errors
220 svc.validateErrors(verr)
221
222 // Validate transport compatibility
223 svc.validateTransports(verr)
224
225 return verr
226}
227
228// validateAttributes validates service parameters and headers
229func (svc *HTTPServiceExpr) validateAttributes(verr *eval.ValidationErrors) {

Callers

nothing calls this directly

Calls 5

validateAttributesMethod · 0.95
validateParentMethod · 0.95
validateErrorsMethod · 0.95
validateTransportsMethod · 0.95

Tested by

no test coverage detected