From 1d3cf57722226beef3c6f03ddfde84b6c7f73026 Mon Sep 17 00:00:00 2001 From: lnash94 Date: Fri, 14 Jun 2024 22:47:40 +0530 Subject: [PATCH] Change openapi annotation in to read only. --- module-ballerina-openapi/Ballerina.toml | 6 +++--- module-ballerina-openapi/CompilerPlugin.toml | 4 ++-- module-ballerina-openapi/annotation.bal | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module-ballerina-openapi/Ballerina.toml b/module-ballerina-openapi/Ballerina.toml index 49e3f3887..6cce2f370 100644 --- a/module-ballerina-openapi/Ballerina.toml +++ b/module-ballerina-openapi/Ballerina.toml @@ -1,10 +1,10 @@ [package] org= "ballerina" name= "openapi" -version= "@toml.version@" +version= "2.1.0" [[platform.java17.dependency]] -path = "../openapi-validator/build/libs/openapi-validator-@project.version@.jar" +path = "../openapi-validator/build/libs/openapi-validator-2.1.0-SNAPSHOT.jar" groupId = "ballerina" artifactId = "openapi" -version = "@project.version@" +version = "2.1.0-SNAPSHOT" diff --git a/module-ballerina-openapi/CompilerPlugin.toml b/module-ballerina-openapi/CompilerPlugin.toml index 04c7cdeb4..521ee69c8 100644 --- a/module-ballerina-openapi/CompilerPlugin.toml +++ b/module-ballerina-openapi/CompilerPlugin.toml @@ -3,7 +3,7 @@ id = "openapi-tools" class = "io.ballerina.openapi.validator.OpenAPIValidatorPlugin" [[dependency]] -path = "../openapi-validator/build/libs/openapi-validator-@project.version@.jar" +path = "../openapi-validator/build/libs/openapi-validator-2.1.0-SNAPSHOT.jar" groupId = "ballerina" artifactId = "openapi" -version = "@project.version@" +version = "2.1.0-SNAPSHOT" diff --git a/module-ballerina-openapi/annotation.bal b/module-ballerina-openapi/annotation.bal index 533128ce9..a661c6ad1 100644 --- a/module-ballerina-openapi/annotation.bal +++ b/module-ballerina-openapi/annotation.bal @@ -95,7 +95,7 @@ public type RequestExamples map; # # + response - Response examples # + requestBody - Request examples -public type Examples record {| +public type Examples readonly & record {| map response?; RequestExamples requestBody?; |};