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:
Create swagger yaml from service bal file. Then created services bal file from that swagger file are not equal.
Steps to reproduce: hellow_world_service.bal
import ballerina/http;
import ballerina/log;
// By default, Ballerina exposes a service via HTTP/1.1.
service hello on new http:Listener(9091) {
// Invoke all resources with arguments of server connector and request.
resource function sayHello(http:Caller caller, http:Request req) {
http:Response res = new;
// Use a util method to set a string payload.
res.setPayload("Hello, World!");
// Send the response back to the caller.
var result = caller->respond(res);
if (result is error) {
log:printError("Error sending response", err = result);
}
}
}
Created swagger file: hello_world_service.swagger.yaml
Description:
Create swagger yaml from service bal file. Then created services bal file from that swagger file are not equal.
Steps to reproduce:
hellow_world_service.bal
Created swagger file:
hello_world_service.swagger.yaml
bal file created from the swagger yaml (hello.bal):
hellow_world_service.bal service is at GET http://0.0.0.0:9090/hello/sayHello
hello.bal service is at GET http://0.0.0.0:9090/sayHello
Affected Versions:
ballerina-0.983.1-SNAPSHOT or 0.990.0-rc1
OS, DB, other environment details and versions:
Related Issues (optional):
Suggested Labels (optional):
Suggested Assignees (optional):
The text was updated successfully, but these errors were encountered: