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
Description
I have a situation where I need to use both @Body and @field together. However, in my specific case, parameters marked with @field are not used in the generated file. Am I doing something wrong ideologically, or should I use another approach?
Actual request body
Data: {
"BODY_PARAM_1": "123",
"BODY_PARAM_2": "321",
}
The text was updated successfully, but these errors were encountered:
Ridje
changed the title
@Body in params override @Field
Parameter marked with @Body in Retrofit methods fully replace other parameters marked with @Field.
Apr 30, 2024
Hello there.
Description
I have a situation where I need to use both @Body and @field together. However, in my specific case, parameters marked with @field are not used in the generated file. Am I doing something wrong ideologically, or should I use another approach?
Code
Expected request body
Data: {
"SERVICE_CODE: "myCode",
"ACTION": "ONLINE_CHECK",
"BODY_PARAM_1": "123",
"BODY_PARAM_2": "321",
}
Actual request body
Data: {
"BODY_PARAM_1": "123",
"BODY_PARAM_2": "321",
}
The text was updated successfully, but these errors were encountered: