@ApiObjectField(description="The population of the location")privateIntegerpopulation;

@ApiObjectField(description="The square km of the location")privateIntegersquarekm;

}

Notes:

The object is annotated with show = false, indicating that this object will take part to the documentation build process, but it will not be shown as a stadalone object in the resulting documentation

Hibernate validator intergration

If JSONDoc finds Hibernate validator libraries on the classpath, it will trigger the scan for its annotations put on objects' fields. It will then extract data from them and use them to display validation rules in the JSONDoc UI. Currently JSONDoc supports these Hibernate validator annotations: