diff --git a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go index c39c34dfb6..b032f25741 100644 --- a/pkg/apis/camel/v1alpha1/kamelet_binding_types.go +++ b/pkg/apis/camel/v1alpha1/kamelet_binding_types.go @@ -42,6 +42,8 @@ type Endpoint struct { URI *string `json:"uri,omitempty"` // Properties are a key value representation of endpoint properties Properties EndpointProperties `json:"properties,omitempty"` + // Types defines the schema of the data produced/consumed by the endpoint + Types map[EventSlot]EventTypeSpec `json:"types,omitempty"` } type EndpointType string diff --git a/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go b/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go index 627e6806d8..b3d69897de 100644 --- a/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go +++ b/pkg/apis/camel/v1alpha1/zz_generated.deepcopy.go @@ -40,6 +40,13 @@ func (in *Endpoint) DeepCopyInto(out *Endpoint) { **out = **in } in.Properties.DeepCopyInto(&out.Properties) + if in.Types != nil { + in, out := &in.Types, &out.Types + *out = make(map[EventSlot]EventTypeSpec, len(*in)) + for key, val := range *in { + (*out)[key] = *val.DeepCopy() + } + } } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.