swagger-core
swagger-core copied to clipboard
If a property has no annotation, but only a getter, it should be read-only.
If a property has no annotation, but only a getter, it should be read-only.
For example.
public class Cap {
public String getBrand() {
return "no brand";
}
}
A Cap's property "brand" should be read-only. Because there's no way to write "brand".