(ctx context.Context, sel *qcode.Select)
| 33 | } |
| 34 | |
| 35 | func (b *openapiBridge) callTopLevel(ctx context.Context, sel *qcode.Select) ([]byte, error) { |
| 36 | if sel == nil { |
| 37 | return nil, fmt.Errorf("openapi: top-level resolve called without a select") |
| 38 | } |
| 39 | if b.op == nil { |
| 40 | return nil, fmt.Errorf("openapi: top-level bridge missing operation metadata") |
| 41 | } |
| 42 | p, err := b.op.ResolveCallParams(sel.ExtraArgs) |
| 43 | if err != nil { |
| 44 | return nil, err |
| 45 | } |
| 46 | return b.caller.Call(ctx, p) |
| 47 | } |
| 48 | |
| 49 | func (gj *graphjinEngine) loadOpenAPIIntegration() error { |
| 50 | res, err := openapi.Load( |
no test coverage detected