update version
This commit is contained in:
@@ -7,6 +7,7 @@ import type {
|
|||||||
} from "n8n-workflow";
|
} from "n8n-workflow";
|
||||||
|
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
import _ from "lodash";
|
||||||
|
|
||||||
interface OpenAPISpec {
|
interface OpenAPISpec {
|
||||||
paths: Record<string, any>;
|
paths: Record<string, any>;
|
||||||
@@ -195,11 +196,15 @@ export class OpenApiNode implements INodeType {
|
|||||||
const description = op.description || "No description provided.";
|
const description = op.description || "No description provided.";
|
||||||
|
|
||||||
ops.push({
|
ops.push({
|
||||||
name: `[${methodLabel}] ${path} — ${summary}`,
|
name: `[${methodLabel}] ${_.kebabCase(summary).replace(/-/g, " ")}`,
|
||||||
value: opId,
|
value: opId,
|
||||||
description: `${summary}\n\n${description}\n\nTags: ${
|
description: `${_.kebabCase(summary).replace(/-/g, " ")}\n\n${description}
|
||||||
|
\nTags: ${
|
||||||
op.tags ? op.tags.join(", ") : "None"
|
op.tags ? op.tags.join(", ") : "None"
|
||||||
}\nOperation ID: ${opId}\nMethod: ${methodLabel}\nPath: ${path}`,
|
}
|
||||||
|
\nOperation ID: ${opId}
|
||||||
|
\nMethod: ${methodLabel}
|
||||||
|
\nPath: ${path}`,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "n8n-nodes-openapi-node",
|
"name": "n8n-nodes-openapi-node",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"n8n",
|
"n8n",
|
||||||
"n8n-nodes"
|
"n8n-nodes"
|
||||||
|
|||||||
Reference in New Issue
Block a user