MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Check

Method Check

ai-provider/model-runtime/loader.go:31–41  ·  view source on GitHub ↗
(cfg string)

Source from the content-addressed store, hash-verified

29}
30
31func (c *Config) Check(cfg string) error {
32 data := make(map[string]interface{})
33 err := json.Unmarshal([]byte(cfg), &data)
34 if err != nil {
35 return err
36 }
37 if c.validator != nil {
38 return c.validator.Valid(data)
39 }
40 return nil
41}
42
43func (c *Config) GenConfig(target string, origin string) (string, error) {
44 if target == "" {

Callers

nothing calls this directly

Calls 1

ValidMethod · 0.65

Tested by

no test coverage detected