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
When array_use_braces is set to true, array parameters are omitted when they are body parameters but don't explicitly specify documentation: { param_type: "body" }.
Example:
# with add_swagger_documentation(array_use_braces: true)paramsdorequires:param1,type: Array[String]requires:param2,type: Array[Integer],documentation: {param_type: "body"}endpost:foodo{declared_params: declared(params)end
It is particularly annoying if one wants to share some params between GET and POST/PUT/PATCH endpoints and rely on the implicit behavior to have the params be query params or body params as appropriate.
The text was updated successfully, but these errors were encountered:
When
array_use_braces
is set totrue
, array parameters are omitted when they are body parameters but don't explicitly specifydocumentation: { param_type: "body" }
.Example:
The spec will look like:
It is particularly annoying if one wants to share some params between GET and POST/PUT/PATCH endpoints and rely on the implicit behavior to have the params be query params or body params as appropriate.
The text was updated successfully, but these errors were encountered: