Fix issue 73 in forked repository #1
Closed
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.
Summary
This PR fixes an issue where boolean values in OpenAPI specification examples were incorrectly converted to strings when uploaded to WSO2.
This PR fixes/implements the following bugs/features
Explain the motivation for making this change. What existing problem does the pull request solve?
The existing method of uploading OpenAPI definitions to WSO2 used
multipart/form-dataencoding, which caused boolean values (e.g.,true,false) within OpenAPI examples to be incorrectly converted to strings (e.g.,"true","false").This change modifies the upload process to first attempt sending the OpenAPI document as
application/json, which correctly preserves data types. A fallback to the originalmultipart/form-datamethod is included to ensure backward compatibility with WSO2 instances that might not support direct JSON upload for this endpoint.Breaking changes
Closing issues
Learn more about Cursor Agents