mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-20 03:49:58 +08:00
Fix hardcoded type in metadata json serializer
See gh-1186
This commit is contained in:
committed by
Stephane Nicoll
parent
776a2810fd
commit
e5af320b2f
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user