From d499bc5d5076c7b24183a79e7691e5b486c9c26c Mon Sep 17 00:00:00 2001 From: gitlawr Date: Sun, 17 Feb 2019 22:32:44 +0800 Subject: [PATCH] Fix norman type in UpdateMultiClusterAppTargetsInput answers Problem: The answers field is marked as reference. As a result, The generated field gets a wrong type(https://github.com/rancher/types/blob/304eef54e2a4b5373726ca6970a944f40770856b/client/management/v3/zz_generated_update_multi_cluster_app_targets_input.go#L10) Solution: Remove norman type of answers field --- apis/management.cattle.io/v3/multi_cluster_app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/management.cattle.io/v3/multi_cluster_app.go b/apis/management.cattle.io/v3/multi_cluster_app.go index 15030348..4b064b62 100644 --- a/apis/management.cattle.io/v3/multi_cluster_app.go +++ b/apis/management.cattle.io/v3/multi_cluster_app.go @@ -85,5 +85,5 @@ type MultiClusterAppRollbackInput struct { type UpdateMultiClusterAppTargetsInput struct { Projects []string `json:"projects" norman:"type=array[reference[project]],required"` - Answers []Answer `json:"answers" norman:"type=array[reference[answer]]"` + Answers []Answer `json:"answers"` }