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
JsonSchema where there is a single type defined
- Serialize it
- Deserialize it, and see that it fails with reading
type: X into types
Expected Behavior
Deserialization should work.
Actual Behavior
Deserialization does not work.
Logs / Stack Traces
Additional Context
Checklist
Description of the problem/issue
JsonSchematypefield 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 singletypeis set.Affected Version
2.2.53
Steps to Reproduce
JsonSchemawhere there is a singletypedefinedtype: XintotypesExpected Behavior
Deserialization should work.
Actual Behavior
Deserialization does not work.
Logs / Stack Traces
Additional Context
Checklist