Skip to content

Fix for #4904 - Invalid cast of JsonSchema to ComposedSchema #4948

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

Closed
wants to merge 1 commit into from

Conversation

EmhyrVarEmreis
Copy link

@EmhyrVarEmreis EmhyrVarEmreis commented Aug 1, 2025

Description

This solves issue #4904. After introduction of JsonSchema the composed schema part stopped working.

Fixes: #4904

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor (non-breaking change)
  • 🧪 Tests
  • 📝 Documentation
  • 🧹 Chore (build or tooling)

Checklist

  • I have added/updated tests as needed
  • I have added/updated documentation where applicable (not needed in this case)
  • The PR title is descriptive
  • The code builds and passes tests locally
  • I have linked related issues (if any)

@EmhyrVarEmreis
Copy link
Author

@djankows Could you look at this, please?

@EmhyrVarEmreis EmhyrVarEmreis force-pushed the master branch 2 times, most recently from a9a2aa2 to e40161a Compare August 1, 2025 08:31
@ewaostrowska
Copy link
Contributor

@EmhyrVarEmreis thank you for finding the fix for the issue. Based on your PR I have created fix: Fix ClassCastException on resolving JsonSchema. This solves issu… by ewaostrowska · Pull Request #4950 · swagger-api/swagger-core with some additional tests to make sure that the fix won't cause any regression. I will close this PR.

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.

java.lang.ClassCastException: class io.swagger.v3.oas.models.media.JsonSchema cannot be cast to class io.swagger.v3.oas.models.media.ComposedSchema
3 participants