[Bug]: JsonSchema fails with JSON round-trip
Author: Mattias-SehlstedtCreated Aug 11, 2026Updated Aug 13, 2026
LabelsBugbacklog
Description of the problem/issue
JsonSchema type field is asymmetric since there is a custom serializer that does not have a matching deserializer. This leads to a JSON round-trip failing when a single type is set.
Affected Version
2.2.53
Steps to Reproduce
- Create an instance of
JsonSchemawhere there is a singletypedefined - Serialize it
- Deserialize it, and see that it fails with reading
type: Xintotypes
Expected Behavior
Deserialization should work.
Actual Behavior
Deserialization does not work.
Logs / Stack Traces
Additional Context
Checklist
- I have searched the existing issues and this is not a duplicate.
- I have provided sufficient information for maintainers to reproduce the issue.
Source: swagger-api/swagger-core