Skip to content

Commit 0ab2bc2

Browse files
committed
engine: Fix in ComponentConf serialization
1 parent 340065c commit 0ab2bc2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

engine/src/stack.hpp

+9
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,15 @@ struct ComponentConf : public Confable {
650650
};
651651
// clang-format on
652652
}
653+
654+
void to_json(Json& j) const override {
655+
j = Json{
656+
{"binding", binding},
657+
{"name", name},
658+
{"from", from},
659+
{"args", args},
660+
};
661+
}
653662
};
654663

655664
class ComponentSchema : public FactoryPlugin<ComponentConf, ComponentFactory> {

0 commit comments

Comments
 (0)