diff --git a/encoding.go b/encoding.go index e28a62d..b21f9d2 100644 --- a/encoding.go +++ b/encoding.go @@ -64,7 +64,7 @@ type Encoding struct { // For all other styles, the default value is false. // This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded or multipart/form-data. // If a value is explicitly defined, then the value of contentType (implicit or explicit) SHALL be ignored. - Explode bool `json:"explode,omitempty" yaml:"explode,omitempty"` + Explode *bool `json:"explode,omitempty" yaml:"explode,omitempty"` // Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] // :/?#[]@!$&'()*+,;= // to be included without percent-encoding. @@ -138,7 +138,7 @@ func (b *EncodingBuilder) Style(v string) *EncodingBuilder { } func (b *EncodingBuilder) Explode(v bool) *EncodingBuilder { - b.spec.Spec.Explode = v + b.spec.Spec.Explode = &v return b } diff --git a/header.go b/header.go index 9b3426c..13b6d52 100644 --- a/header.go +++ b/header.go @@ -29,7 +29,7 @@ type Header struct { // For other types of parameters this property has no effect. // When style is form, the default value is true. // For all other styles, the default value is false. - Explode bool `json:"explode,omitempty" yaml:"explode,omitempty"` + Explode *bool `json:"explode,omitempty" yaml:"explode,omitempty"` // Determines whether this header is mandatory. // The property MAY be included and its default value is false. Required bool `json:"required,omitempty" yaml:"required,omitempty"` @@ -118,7 +118,7 @@ func (b *HeaderBuilder) Style(v string) *HeaderBuilder { } func (b *HeaderBuilder) Explode(v bool) *HeaderBuilder { - b.spec.Spec.Spec.Explode = v + b.spec.Spec.Spec.Explode = &v return b } diff --git a/parameter.go b/parameter.go index 20f1552..bb7c50c 100644 --- a/parameter.go +++ b/parameter.go @@ -155,7 +155,7 @@ type Parameter struct { // For other types of parameters this property has no effect. // When style is form, the default value is true. // For all other styles, the default value is false. - Explode bool `json:"explode,omitempty" yaml:"explode,omitempty"` + Explode *bool `json:"explode,omitempty" yaml:"explode,omitempty"` // Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] // :/?#[]@!$&'()*+,;= // to be included without percent-encoding. @@ -370,7 +370,7 @@ func (b *ParameterBuilder) Name(v string) *ParameterBuilder { } func (b *ParameterBuilder) Explode(v bool) *ParameterBuilder { - b.spec.Spec.Spec.Explode = v + b.spec.Spec.Spec.Explode = &v return b }