()
| 62 | } |
| 63 | |
| 64 | func (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 | |
| 75 | func (d *DocLoader) APICount() int64 { |
| 76 | if d.openAPI3Doc == nil || d.openAPI3Doc.Paths == nil { |