swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

If a property has no annotation, but only a getter, it should be read-only.

Open beyond-seunghyun opened this issue 1 year ago • 0 comments

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".

beyond-seunghyun avatar Apr 25 '24 14:04 beyond-seunghyun