Take the following Pojo:
public class MetricsData { private final Map<String, ValueMetricsData> metricsMap; @BsonCreator public MetricsData( @BsonProperty("metrics") final Map<String, ValueMetricsData> metricsMap) { metricsMap = metricsMap; } public Map<String, ValueMetricsData> getMetricsMap() { return metricsMap; } }
It returns the following PropertyModels:
[PropertyModel{propertyName='metricsMap', readName='metricsMap', writeName='metricsMap', typeData=TypeData{type=Map, typeParameters=[String, ValueMetricsData]}}, PropertyModel{propertyName='metrics', readName='null', writeName='metrics', typeData=TypeData{type=Map}}]
The "metrics" property has invalid typeData.