Skip to content

Conversation

@MarcioMeier
Copy link
Owner

@MarcioMeier MarcioMeier commented Jul 31, 2025

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

  • Bug: Boolean values in OpenAPI examples converted to strings on WSO2 upload

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-data encoding, 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 original multipart/form-data method is included to ensure backward compatibility with WSO2 instances that might not support direct JSON upload for this endpoint.

Breaking changes

  • Breaking change 1

Closing issues


Open in Cursor Open in Web

Learn more about Cursor Agents

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.

3 participants