Skip to content

Commit

Permalink
Merge pull request #1709 from lnash94/fixes
Browse files Browse the repository at this point in the history
[master] Remove quoted from version field in openapi annotation
  • Loading branch information
lnash94 authored May 6, 2024
2 parents 7de72f3 + 2d9cf20 commit c05a37c
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ public String toString() {
public static final String SLASH = "/";
public static final String HYPHEN = "-";
public static final String CONTRACT = "contract";
public static final String VERSION = "'version";
public static final String VERSION = "version";
public static final String TITLE = "title";
public static final String OPENAPI_ANNOTATION = "openapi:ServiceInfo";

Expand Down
2 changes: 1 addition & 1 deletion module-ballerina-openapi/annotation.bal
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public type ServiceInformation record {|
boolean failOnErrors = true;
boolean embed = false;
string title?;
string 'version?;
string version?;
|};

// # Client configurations code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ballerina/http;
import ballerina/openapi;

@openapi:ServiceInfo {
'version: "2.0.0",
version: "2.0.0",
title: "Mock Yaml"
}
service / on new http:Listener(9090) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ballerina/openapi;

@openapi:ServiceInfo {
contract: "hello_openapi.yaml",
'version: "3.0.0"
version: "3.0.0"
}
service /greeting on new http:Listener(9090) {
resource function get greeting() returns string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ballerina/openapi;

@openapi:ServiceInfo {
contract: "hello_openapi.yaml",
'version: ""
version: ""
}
service /blankVersion on new http:Listener(9090) {
resource function get greeting() returns string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ballerina/http;
import ballerina/openapi;

@openapi:ServiceInfo {
'version: "",
version: "",
title: ""
}
service /bothBlank on new http:Listener(9090) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ballerina/openapi;

@openapi:ServiceInfo {
contract: "hello_openapi.yaml",
'version: "",
version: "",
title: ""
}
service /mTitle01 on new http:Listener(9090) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import ballerina/http;
import ballerina/openapi;

@openapi:ServiceInfo {
'version: "4.0.0"
version: "4.0.0"
}
service /versionBase on new http:Listener(9090) {
resource function get title() returns string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ballerina/openapi;

@openapi:ServiceInfo {
contract: "hello_openapi.yaml",
'version: "3.0.0"
version: "3.0.0"
}
service /greeting on new http:Listener(9090) {
resource function get greeting() returns string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ballerina/graphql;

@openapi:ServiceInfo {
contract: "hello_openapi.yaml",
'version: "3.0.0"
version: "3.0.0"
}
service /greeting on new http:Listener(9090) {
resource function get greeting() returns string {
Expand Down

0 comments on commit c05a37c

Please sign in to comment.