This is an automated email from the ASF dual-hosted git repository.

astefanutti pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git

commit 7468fb566dbb248f1eff29faa4b77168a3c94300
Author: Antonin Stefanutti <anto...@stefanutti.fr>
AuthorDate: Thu Dec 3 15:32:11 2020 +0100

    fix(crd): Type json.RawMessage fields as byte-formatted string in OpenAPI 
schema
---
 pkg/apis/camel/v1/common_types.go                | 4 ++--
 pkg/apis/camel/v1alpha1/kamelet_binding_types.go | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pkg/apis/camel/v1/common_types.go 
b/pkg/apis/camel/v1/common_types.go
index 25eff32..343f6b7 100644
--- a/pkg/apis/camel/v1/common_types.go
+++ b/pkg/apis/camel/v1/common_types.go
@@ -58,7 +58,7 @@ type TraitSpec struct {
        Configuration TraitConfiguration `json:"configuration"`
 }
 
-// +kubebuilder:validation:Type=object
+// +kubebuilder:validation:Type=string
 // TraitConfiguration --
 type TraitConfiguration struct {
        json.RawMessage `json:",inline"`
@@ -146,7 +146,7 @@ type ResourceCondition interface {
 }
 
 // Flow is an unstructured object representing a Camel Flow in YAML/JSON DSL
-// +kubebuilder:validation:Type=object
+// +kubebuilder:validation:Type=string
 type Flow struct {
        json.RawMessage `json:",inline"`
 }
diff --git a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go 
b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
index b1cc853..124c3ab 100644
--- a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
+++ b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go
@@ -53,7 +53,7 @@ const (
 )
 
 // EndpointProperties is a key/value struct represented as JSON raw to allow 
numeric/boolean values
-// +kubebuilder:validation:Type=object
+// +kubebuilder:validation:Type=string
 type EndpointProperties struct {
        json.RawMessage `json:",inline"`
 }

Reply via email to