mirror of
https://gitee.com/dcren/initializr.git
synced 2025-12-20 03:49:58 +08:00
Merge pull request #1186 from Veneckiy
* pr/1186: Fix copyright year of changed file Fix hardcoded type in metadata json serializer Closes gh-1186
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
* Copyright 2012-2021 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -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