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
However, when validating the request and response all we need to do is get the type of the associate variable/argument and make sure its type is in line with the schema type in the OAS.
We envision the ballerina client as below way to validate.
typePersonrecord {
int age;
string name;
};
publicfunction main() returnserror? {
http:Clientc=checknew ("http://localhost:9090");
int id;
// 01. With string templatejson response =checkc->post(string`/user/${id}`,
{
age:18,
name:"Harry"
});
// 02 With string valuejson response =checkc2->post(“/user/1”,
{
age:18,
name:"Harry"
});
}
Therefore we need to finalize our approach before starting our implementation
Description:
This issue is created to track the subtask of openAPI client generator implementation.
Describe your task(s)
Related Issues (optional):
Core issue: #5388
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: