diff --git a/models/http_error_rule.go b/models/http_error_rule.go index 6c69c731..f84dedd9 100644 --- a/models/http_error_rule.go +++ b/models/http_error_rule.go @@ -50,7 +50,7 @@ type HTTPErrorRule struct { ReturnContent string `json:"return_content,omitempty"` // return content format - // Enum: [default-errorfile errorfile errorfiles file lf-file string lf-string] + // Enum: [default-errorfiles errorfile errorfiles file lf-file string lf-string] ReturnContentFormat string `json:"return_content_format,omitempty"` // return content type @@ -136,7 +136,7 @@ var httpErrorRuleTypeReturnContentFormatPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["default-errorfile","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["default-errorfiles","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -146,8 +146,8 @@ func init() { const ( - // HTTPErrorRuleReturnContentFormatDefaultDashErrorfile captures enum value "default-errorfile" - HTTPErrorRuleReturnContentFormatDefaultDashErrorfile string = "default-errorfile" + // HTTPErrorRuleReturnContentFormatDefaultDashErrorfiles captures enum value "default-errorfiles" + HTTPErrorRuleReturnContentFormatDefaultDashErrorfiles string = "default-errorfiles" // HTTPErrorRuleReturnContentFormatErrorfile captures enum value "errorfile" HTTPErrorRuleReturnContentFormatErrorfile string = "errorfile" diff --git a/models/http_request_rule.go b/models/http_request_rule.go index cadcbb01..988da4c3 100644 --- a/models/http_request_rule.go +++ b/models/http_request_rule.go @@ -199,7 +199,7 @@ type HTTPRequestRule struct { ReturnContent string `json:"return_content,omitempty"` // return content format - // Enum: [default-errorfile errorfile errorfiles file lf-file string lf-string] + // Enum: [default-errorfiles errorfile errorfiles file lf-file string lf-string] ReturnContentFormat string `json:"return_content_format,omitempty"` // return content type @@ -1027,7 +1027,7 @@ var httpRequestRuleTypeReturnContentFormatPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["default-errorfile","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["default-errorfiles","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -1037,8 +1037,8 @@ func init() { const ( - // HTTPRequestRuleReturnContentFormatDefaultDashErrorfile captures enum value "default-errorfile" - HTTPRequestRuleReturnContentFormatDefaultDashErrorfile string = "default-errorfile" + // HTTPRequestRuleReturnContentFormatDefaultDashErrorfiles captures enum value "default-errorfiles" + HTTPRequestRuleReturnContentFormatDefaultDashErrorfiles string = "default-errorfiles" // HTTPRequestRuleReturnContentFormatErrorfile captures enum value "errorfile" HTTPRequestRuleReturnContentFormatErrorfile string = "errorfile" diff --git a/models/http_response_rule.go b/models/http_response_rule.go index 87c93f6a..7b9ec52f 100644 --- a/models/http_response_rule.go +++ b/models/http_response_rule.go @@ -149,7 +149,7 @@ type HTTPResponseRule struct { ReturnContent string `json:"return_content,omitempty"` // return content format - // Enum: [default-errorfile errorfile errorfiles file lf-file string lf-string] + // Enum: [default-errorfiles errorfile errorfiles file lf-file string lf-string] ReturnContentFormat string `json:"return_content_format,omitempty"` // return content type @@ -763,7 +763,7 @@ var httpResponseRuleTypeReturnContentFormatPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["default-errorfile","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["default-errorfiles","errorfile","errorfiles","file","lf-file","string","lf-string"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -773,8 +773,8 @@ func init() { const ( - // HTTPResponseRuleReturnContentFormatDefaultDashErrorfile captures enum value "default-errorfile" - HTTPResponseRuleReturnContentFormatDefaultDashErrorfile string = "default-errorfile" + // HTTPResponseRuleReturnContentFormatDefaultDashErrorfiles captures enum value "default-errorfiles" + HTTPResponseRuleReturnContentFormatDefaultDashErrorfiles string = "default-errorfiles" // HTTPResponseRuleReturnContentFormatErrorfile captures enum value "errorfile" HTTPResponseRuleReturnContentFormatErrorfile string = "errorfile" diff --git a/specification/build/haproxy_spec.yaml b/specification/build/haproxy_spec.yaml index f174a8c4..ae7d89b7 100644 --- a/specification/build/haproxy_spec.yaml +++ b/specification/build/haproxy_spec.yaml @@ -3865,7 +3865,7 @@ definitions: - lf-string return_content_format: enum: - - default-errorfile + - default-errorfiles - errorfile - errorfiles - file @@ -4432,7 +4432,7 @@ definitions: - lf-string return_content_format: enum: - - default-errorfile + - default-errorfiles - errorfile - errorfiles - file @@ -4856,7 +4856,7 @@ definitions: - lf-string return_content_format: enum: - - default-errorfile + - default-errorfiles - errorfile - errorfiles - file diff --git a/specification/models/configuration/http/error.yaml b/specification/models/configuration/http/error.yaml index ae6fc4cc..cb14fc88 100644 --- a/specification/models/configuration/http/error.yaml +++ b/specification/models/configuration/http/error.yaml @@ -33,7 +33,7 @@ http_error_rule: x-nullable: true return_content_format: type: string - enum: [default-errorfile, errorfile, errorfiles, file, lf-file, string, lf-string] + enum: [default-errorfiles, errorfile, errorfiles, file, lf-file, string, lf-string] x-dependency: type: value: status diff --git a/specification/models/configuration/http/request.yaml b/specification/models/configuration/http/request.yaml index 48cf2c27..471aee37 100644 --- a/specification/models/configuration/http/request.yaml +++ b/specification/models/configuration/http/request.yaml @@ -523,7 +523,7 @@ http_request_rule: x-nullable: true return_content_format: type: string - enum: [default-errorfile, errorfile, errorfiles, file, lf-file, string, lf-string] + enum: [default-errorfiles, errorfile, errorfiles, file, lf-file, string, lf-string] x-dependency: type: value: [deny, tarpit, return] diff --git a/specification/models/configuration/http/response.yaml b/specification/models/configuration/http/response.yaml index 7b91dae9..1c049a96 100644 --- a/specification/models/configuration/http/response.yaml +++ b/specification/models/configuration/http/response.yaml @@ -369,7 +369,7 @@ http_response_rule: x-nullable: true return_content_format: type: string - enum: [default-errorfile, errorfile, errorfiles, file, lf-file, string, lf-string] + enum: [default-errorfiles, errorfile, errorfiles, file, lf-file, string, lf-string] x-dependency: type: value: [deny, return]