-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve support @constraint:String {}
annotation mapping to OpenAPI Spec
#1546
Improve support @constraint:String {}
annotation mapping to OpenAPI Spec
#1546
Conversation
… Spec - Add support for mapping Ballerina String constraints to the OpenAPI specification. - Modify the unit tests to ensure the accuracy & reliability of `@constraint:String {}` mapping to OpenAPI spec. - This ensures that String constraints in Ballerina are accurately reflected in OpenAPI spec. Resolves: [#4813](ballerina-platform/ballerina-library#4813) See also: [#4788](ballerina-platform/ballerina-library#4788)
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## constraint_support #1546 +/- ##
========================================================
+ Coverage 79.92% 79.98% +0.06%
- Complexity 1825 1841 +16
========================================================
Files 125 125
Lines 10265 10301 +36
Branches 1698 1699 +1
========================================================
+ Hits 8204 8239 +35
- Misses 1469 1475 +6
+ Partials 592 587 -5
☔ View full report in Codecov by Sentry. |
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/string.bal
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/string.bal
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/string.bal
Show resolved
Hide resolved
...bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/string.bal
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/string.bal
Show resolved
Hide resolved
...bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/decimalRec.bal
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/floatRec.bal
Outdated
Show resolved
Hide resolved
…/decimalRec.bal Co-authored-by: Sumudu Nissanka <lnash94@users.noreply.github.com>
…/floatRec.bal Co-authored-by: Sumudu Nissanka <lnash94@users.noreply.github.com>
…napi-tools into constraint_s_s
openapi-bal-service/src/main/java/io/ballerina/openapi/converter/Constants.java
Outdated
Show resolved
Hide resolved
openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/NegativeConstraintTests.java
Outdated
Show resolved
Hide resolved
…api/NegativeConstraintTests.java Co-authored-by: Ayesh Almeida <77491511+ayeshLK@users.noreply.github.com>
openapi-bal-service/src/main/java/io/ballerina/openapi/converter/Constants.java
Show resolved
Hide resolved
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/arrayRec.bal
Outdated
Show resolved
Hide resolved
...api-cli/src/test/resources/ballerina-to-openapi/constraint/negative_patternInterpolation.bal
Outdated
Show resolved
Hide resolved
...bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
Outdated
Show resolved
Hide resolved
…/arrayRec.bal Co-authored-by: Sumudu Nissanka <lnash94@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
b4c4c6a
into
ballerina-platform:constraint_support
@constraint:String {}
mapping to OpenAPI spec.Resolves: #4813
See also: #4788