Allow default no-args constructor

Jackson will be able to resolve errors if Studio has a name or whole Studio object is passed in. Please see this following post https://stackoverflow.com/questions/53191468/no-creators-like-default-construct-exist-cannot-deserialize-from-object-valu
pull/6/head
Hammy 3 years ago
parent 0b4afb2280
commit 501233ddb3

@ -27,7 +27,8 @@ import java.util.Objects;
@Generated("jsonschema2pojo") @Generated("jsonschema2pojo")
public class Studio { public class Studio {
@JsonCreator Studio() { }
Studio(String name) { Studio(String name) {
this.name = name; this.name = name;
} }

Loading…
Cancel
Save