-
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 #1558
Merged
Merged
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]>
Co-authored-by: Ayesh Almeida <[email protected]>
ayeshLK
reviewed
Oct 20, 2023
...pi-bal-service/src/main/java/io/ballerina/openapi/converter/service/ModuleMemberVisitor.java
Outdated
Show resolved
Hide resolved
ayeshLK
reviewed
Oct 20, 2023
...pi-bal-service/src/main/java/io/ballerina/openapi/converter/service/ModuleMemberVisitor.java
Outdated
Show resolved
Hide resolved
ayeshLK
reviewed
Oct 20, 2023
...pi-bal-service/src/main/java/io/ballerina/openapi/converter/service/ModuleMemberVisitor.java
Outdated
Show resolved
Hide resolved
dilanSachi
reviewed
Oct 20, 2023
...-bal-service/src/main/java/io/ballerina/openapi/converter/diagnostic/DiagnosticMessages.java
Outdated
Show resolved
Hide resolved
dilanSachi
reviewed
Oct 20, 2023
...i-bal-service/src/main/java/io/ballerina/openapi/converter/service/ConstraintAnnotation.java
Outdated
Show resolved
Hide resolved
dilanSachi
reviewed
Oct 20, 2023
openapi-cli/src/test/resources/ballerina-to-openapi/constraint/array.bal
Outdated
Show resolved
Hide resolved
dilanSachi
reviewed
Oct 20, 2023
openapi-cli/src/test/java/io/ballerina/openapi/generators/openapi/ConstraintTests.java
Outdated
Show resolved
Hide resolved
…i-tools into constraint_support # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIRequestBodyMapper.java
lnash94
force-pushed
the
constraint_support
branch
from
October 20, 2023 11:18
adbdc1e
to
bf1cdbc
Compare
…tform/openapi-tools into constraint_s # Conflicts: # openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIComponentMapper.java
[constraint_support] Add negative tests for constraint support
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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