0

I work on a spring boot project. And I create a class to represent the request body for another service. Before I use this class I want to check first, if the structure is correct. So I create a simple controller to return an object from this class.

here my LocationConstraint class:

public class LocationConstraint {
    boolean isRequired;
    boolean suggestLocation;
    List<Location> locations;
}

and this is the response when I check using Postman response on postman

As you can see, attribute name change from isRequired to be required. Why did this happen?

0 Answers0