Reflection-like type-checking in the generated OpenAPI Client
The Spring backend that I use uses Jackson to deserialize the JSON into Java objects. In order to do it, it requires that some kind of a @class
field to be present at every level of a nested JSON object in the request, which are added by JsonTypeInfo
.
TypeScript: Reflection-like type-checking in the generated OpenAPI Client
The Spring backend that I use uses Jackson to deserialize the JSON into Java objects. In order to do it, it requires that some kind of a @class
field to be present at every level of a nested JSON object in the request, which are added by JsonTypeInfo
.