-
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
Sync master with constraint support #1562
Merged
lnash94
merged 108 commits into
ballerina-platform:master
from
lnash94:contraint_support_test_fix
Oct 24, 2023
Merged
Sync master with constraint support #1562
lnash94
merged 108 commits into
ballerina-platform:master
from
lnash94:contraint_support_test_fix
Oct 24, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…i-tools into constraint_b_o # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/diagnostic/DiagnosticMessages.java # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java # openapi-cli/src/test/resources/testng.xml
* Add support for mapping Ballerina constraints (Int, Float, Number) to the OpenAPI specification. * Add unit tests to ensure the accuracy & reliability of @constraint mapping to OpenAPI spec. * This ensures that Int, Float & Number constraints in Ballerina are accurately reflected in OpenAPI spec. Resolves: #4796 See also: #4788
* Add support for mapping Ballerina constraints (Int, Float, Number) to the OpenAPI specification. * Add unit tests to ensure the accuracy & reliability of @constraint mapping to OpenAPI spec. * This ensures that Int, Float & Number constraints in Ballerina are accurately reflected in OpenAPI spec. Resolves: #4796 See also: #4788
…en/constraint/decimalMax.yaml Co-authored-by: Ayesh Almeida <[email protected]>
…APIComponentMapper.java
…onstraintValuesToSchema()
…/openapi-tools into constraint_support # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/decimalMax.bal # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/decimalMin.bal # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/floatMax.bal # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/floatMin.bal # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/integerMax.bal # openapi-cli/src/test/resources/ballerina-to-openapi/constraint/integerMin.bal # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/decimalMax.yaml # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/decimalMin.yaml # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/floatMax.yaml # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/floatMin.yaml # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/integerMax.yaml # openapi-cli/src/test/resources/ballerina-to-openapi/expected_gen/constraint/integerMin.yaml
…onstraintValuesToSchema()
…er/service/OpenAPIComponentMapper.java Co-authored-by: Dilan Sachintha Nayanajith <[email protected]>
…api/NegativeConstraintTests.java Co-authored-by: Ayesh Almeida <[email protected]>
…/arrayRec.bal Co-authored-by: Sumudu Nissanka <[email protected]>
Co-authored-by: Ayesh Almeida <[email protected]>
…i-tools into constraint_support # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIRequestBodyMapper.java
…tform/openapi-tools into constraint_s # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
…int_s [constraint_support] Add negative tests for constraint support
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #1562 +/- ##
============================================
+ Coverage 79.69% 80.10% +0.40%
- Complexity 1778 1854 +76
============================================
Files 124 125 +1
Lines 10096 10323 +227
Branches 1675 1704 +29
============================================
+ Hits 8046 8269 +223
Misses 1464 1464
- Partials 586 590 +4
☔ View full report in Codecov by Sentry. |
dilanSachi
approved these changes
Oct 24, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Purpose