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

Function NewDocLoader

service/api-doc/service.go:56–62  ·  view source on GitHub ↗
(content string)

Source from the content-addressed store, hash-verified

54}
55
56func NewDocLoader(content string) (*DocLoader, error) {
57 doc, err := openapi3Loader.LoadFromData([]byte(content))
58 if err != nil {
59 return nil, fmt.Errorf("load openAPI3Doc error:%v", err)
60 }
61 return &DocLoader{openAPI3Doc: doc}, nil
62}
63
64func (d *DocLoader) Valid() error {
65 if d.openAPI3Doc == nil {

Callers 2

UpdateDocMethod · 0.85
CommitDocMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected