| 188 | } |
| 189 | |
| 190 | static bool oa_method(const char *k) { |
| 191 | static const char *const methods[] = {"get", "put", "post", "delete", "options", |
| 192 | "head", "patch", "trace", NULL}; |
| 193 | for (int i = 0; methods[i]; i++) { |
| 194 | if (strcmp(k, methods[i]) == 0) { |
| 195 | return true; |
| 196 | } |
| 197 | } |
| 198 | return false; |
| 199 | } |
| 200 | |
| 201 | void cbm_extract_openapi(CBMExtractCtx *ctx) { |
| 202 | if (!ctx || !ctx->result || !ctx->source || ts_node_is_null(ctx->root) || |
no outgoing calls
no test coverage detected