I have written a custom Jackson JsonSerializer to serialise my Money POJOs to something like:
{
"amountMinorUnits": 123,
"currency": "USD",
}
However in the Swagger when a Response POJO references a Money pojo, the Swagger sees the original Money POJO and makes out the API uses that, and not the customer serialised version.
so if I have
class Person {
Money salary;
...
}
How do I make clear what the Money JSON is?
Thanks