You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: errors/parameters_howtofix.go
+19-11Lines changed: 19 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12,22 +12,30 @@ const (
12
12
HowToFixParamInvalidBooleanstring="Convert the value '%s' into a true/false value"
13
13
HowToFixParamInvalidEnumstring="Instead of '%s', use one of the allowed values: '%s'"
14
14
HowToFixParamInvalidFormEncodestring="Use a form style encoding for parameter values, for example: '%s'"
15
+
HowToFixInvalidXmlstring="Ensure xml is well-formed and matches schema structure"
16
+
HowToFixXmlPrefixstring="Make sure to prepend the correct prefix '%s' to the declared fields"
17
+
HowToFixXmlNamespacestring="Make sure to declare the 'xmlns:%s' with the correct namespace URI"
18
+
HowToFixFormDataReservedCharactersstring="Make sure to correcly encode specials characters to percent encoding, or set allowReserved to true"
15
19
HowToFixInvalidSchemastring="Ensure that the object being submitted, matches the schema correctly"
20
+
HowToFixInvalidTypeEncodingstring="Ensure that the object being submitted matches the property encoding Content-Type"
16
21
HowToFixParamInvalidSpaceDelimitedObjectExplodestring="When using 'explode' with space delimited parameters, "+
17
22
"they should be separated by spaces. For example: '%s'"
18
23
HowToFixParamInvalidPipeDelimitedObjectExplodestring="When using 'explode' with pipe delimited parameters, "+
19
24
"they should be separated by pipes '|'. For example: '%s'"
20
25
HowToFixParamInvalidDeepObjectMultipleValuesstring="There can only be a single value per property name, "+
21
26
"deepObject parameters should contain the property key in square brackets next to the parameter name. For example: '%s'"
22
-
HowToFixInvalidJSONstring="The JSON submitted is invalid, please check the syntax"
23
-
HowToFixDecodingError="The object can't be decoded, so make sure it's being encoded correctly according to the spec."
24
-
HowToFixInvalidContentType="The content type is invalid, Use one of the %d supported types for this operation: %s"
25
-
HowToFixInvalidResponseCode="The service is responding with a code that is not defined in the spec, fix the service or add the code to the specification"
26
-
HowToFixInvalidEncoding="Ensure the correct encoding has been used on the object"
27
-
HowToFixMissingValue="Ensure the value has been set"
28
-
HowToFixPath="Check the path is correct, and check that the correct HTTP method has been used (e.g. GET, POST, PUT, DELETE)"
29
-
HowToFixPathMethod="Add the missing operation to the contract for the path"
30
-
HowToFixInvalidMaxItems="Reduce the number of items in the array to %d or less"
31
-
HowToFixInvalidMinItems="Increase the number of items in the array to %d or more"
32
-
HowToFixMissingHeader="Make sure the service responding sets the required headers with this response code"
27
+
HowToFixInvalidJSONstring="The JSON submitted is invalid, please check the syntax"
28
+
HowToFixInvalidUrlEncodedstring="Ensure URL Encoded submitted is well-formed and matches schema structure"
29
+
HowToFixDecodingErrorstring="The object can't be decoded, so make sure it's being encoded correctly according to the spec."
30
+
HowToFixInvalidContentTypestring="The content type is invalid, Use one of the %d supported types for this operation: %s"
31
+
HowToFixInvalidResponseCodestring="The service is responding with a code that is not defined in the spec, fix the service or add the code to the specification"
32
+
HowToFixInvalidEncodingstring="Ensure the correct encoding has been used on the object"
33
+
HowToFixMissingValuestring="Ensure the value has been set"
34
+
HowToFixPathstring="Check the path is correct, and check that the correct HTTP method has been used (e.g. GET, POST, PUT, DELETE)"
35
+
HowToFixPathMethodstring="Add the missing operation to the contract for the path"
36
+
HowToFixInvalidMaxItemsstring="Reduce the number of items in the array to %d or less"
37
+
HowToFixInvalidMinItemsstring="Increase the number of items in the array to %d or more"
38
+
HowToFixMissingHeaderstring="Make sure the service responding sets the required headers with this response code"
39
+
HowToFixInvalidRenderedSchemastring="Check the request schema for circular references or invalid structures"
40
+
HowToFixInvalidJsonSchemastring="Check the request schema for invalid JSON Schema syntax, complex regex patterns, or unsupported schema constructs"
0 commit comments