Skip to content

Commit

Permalink
engine: Fix in ComponentConf serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tobifalk committed May 3, 2021
1 parent 340065c commit 0ab2bc2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions engine/src/stack.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,15 @@ struct ComponentConf : public Confable {
};
// clang-format on
}

void to_json(Json& j) const override {
j = Json{
{"binding", binding},
{"name", name},
{"from", from},
{"args", args},
};
}
};

class ComponentSchema : public FactoryPlugin<ComponentConf, ComponentFactory> {
Expand Down

0 comments on commit 0ab2bc2

Please sign in to comment.