fix(wizard): drop data field from create_edge ops
EA2 server rejects data on create_edge with extra_forbidden despite the OpenAPI schema marking it optional. flow_key is implicit from the node refs.
This commit is contained in:
@@ -130,14 +130,14 @@ export const wizardApi = {
|
||||
data: { _key, flow_key: flowKey, ...rest },
|
||||
};
|
||||
},
|
||||
createEdge(flowKey: string, fromKey: string, toKey: string, role = "next"): CreateEdgeOp {
|
||||
createEdge(_flowKey: string, fromKey: string, toKey: string, role = "next"): CreateEdgeOp {
|
||||
// EA2 server rejects `data` on create_edge despite the OpenAPI schema marking it optional.
|
||||
return {
|
||||
op: "create_edge",
|
||||
edge_coll: "ea2_edge",
|
||||
from: `ea2_node/${fromKey}`,
|
||||
to: `ea2_node/${toKey}`,
|
||||
role,
|
||||
data: { flow_key: flowKey },
|
||||
};
|
||||
},
|
||||
publishFlow(flowKey: string): UpdateOp {
|
||||
|
||||
Reference in New Issue
Block a user