MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Valid

Method Valid

service/api-doc/service.go:64–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (d *DocLoader) Valid() error {
65 if d.openAPI3Doc == nil {
66 return fmt.Errorf("openAPI3Doc is nil")
67 }
68
69 if d.openAPI3Doc.Paths == nil {
70 return fmt.Errorf("openAPI3Doc.Paths is nil")
71 }
72 return nil
73}
74
75func (d *DocLoader) APICount() int64 {
76 if d.openAPI3Doc == nil || d.openAPI3Doc.Paths == nil {

Callers 2

UpdateDocMethod · 0.95
CommitDocMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected