@@ -117,7 +117,7 @@ type AuthProperties interface {
117117
118118// BaseAuthProperties ...
119119type BaseAuthProperties struct {
120- Common
120+ Common `json:",inline"`
121121 // Secret Expression referencing a workflow secret that contains all needed auth info
122122 Secret string `json:"secret,omitempty"`
123123}
@@ -157,7 +157,7 @@ func (b *BasicAuthProperties) DeepCopyAuthProperties() AuthProperties {
157157
158158// BasicAuthProperties Basic Auth Info
159159type BasicAuthProperties struct {
160- BaseAuthProperties
160+ BaseAuthProperties `json:",inline"`
161161 // Username String or a workflow expression. Contains the username
162162 Username string `json:"username" validate:"required"`
163163 // Password String or a workflow expression. Contains the user password
@@ -188,7 +188,7 @@ func (b *BasicAuthProperties) UnmarshalJSON(data []byte) error {
188188
189189// BearerAuthProperties Bearer auth information
190190type BearerAuthProperties struct {
191- BaseAuthProperties
191+ BaseAuthProperties `json:",inline"`
192192 // Token String or a workflow expression. Contains the token
193193 Token string `json:"token" validate:"required"`
194194}
@@ -218,7 +218,7 @@ func (b *BearerAuthProperties) UnmarshalJSON(data []byte) error {
218218
219219// OAuth2AuthProperties OAuth2 information
220220type OAuth2AuthProperties struct {
221- BaseAuthProperties
221+ BaseAuthProperties `json:",inline"`
222222 // Authority String or a workflow expression. Contains the authority information
223223 Authority string `json:"authority,omitempty" validate:"omitempty,min=1"`
224224 // GrantType Defines the grant type
0 commit comments