Fix hardcoded type in metadata json serializer

See gh-1186
This commit is contained in:
Veneckiy
2021-02-25 17:30:21 +03:00
committed by Stephane Nicoll
parent 776a2810fd
commit e5af320b2f

View File

@@ -126,7 +126,7 @@ public class InitializrMetadataV2JsonMapper implements InitializrMetadataJsonMap
protected void type(ObjectNode parent, TypeCapability capability) {
ObjectNode type = nodeFactory.objectNode();
type.put("type", "action");
type.put("type", capability.getType().getName());
Type defaultType = capability.getDefault();
if (defaultType != null) {
type.put("default", defaultType.getId());