mirror of
https://gitee.com/dcren/initializr.git
synced 2026-02-25 21:22: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) {
|
protected void type(ObjectNode parent, TypeCapability capability) {
|
||||||
ObjectNode type = nodeFactory.objectNode();
|
ObjectNode type = nodeFactory.objectNode();
|
||||||
type.put("type", "action");
|
type.put("type", capability.getType().getName());
|
||||||
Type defaultType = capability.getDefault();
|
Type defaultType = capability.getDefault();
|
||||||
if (defaultType != null) {
|
if (defaultType != null) {
|
||||||
type.put("default", defaultType.getId());
|
type.put("default", defaultType.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user