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:
Stephane Nicoll
2021-02-25 15:51:15 +01:00

View File

@@ -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());