Skip to content
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 107 commits into from
Oct 24, 2023
Merged

Sync master with constraint support #1558

merged 107 commits into from
Oct 24, 2023

Conversation

lnash94
Copy link
Member

@lnash94 lnash94 commented Oct 18, 2023

Purpose

$Subject

lnash94 and others added 30 commits July 25, 2022 09:06
…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]>
…/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
…er/service/OpenAPIComponentMapper.java

Co-authored-by: Dilan Sachintha Nayanajith <[email protected]>
@lnash94 lnash94 marked this pull request as ready for review October 20, 2023 04:14
…i-tools into constraint_support

# Conflicts:
#	openapi-bal-service/src/main/java/io/ballerina/openapi/converter/service/OpenAPIRequestBodyMapper.java
@lnash94 lnash94 force-pushed the constraint_support branch from adbdc1e to bf1cdbc Compare October 20, 2023 11:18
SachinAkash01 and others added 3 commits October 23, 2023 10:44
…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
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lnash94 lnash94 merged commit 17a9b7c into master Oct 24, 2023
1 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants