license can also be empty, in this case the default one is used
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/grsf-publisher-ws@133163 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
0f69575d5b
commit
9f71232585
|
@ -19,15 +19,13 @@ import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
* Information that both Stock and Fishery must contain
|
* Information that both Stock and Fishery must contain
|
||||||
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
* @author Costantino Perciante at ISTI-CNR (costantino.perciante@isti.cnr.it)
|
||||||
*/
|
*/
|
||||||
@JsonIgnoreProperties(value = {"author", "author_contact", "authorContact"}, ignoreUnknown = true) // ignore in serialization/deserialization
|
@JsonIgnoreProperties(value = {"author", "author_contact"}, ignoreUnknown = true) // ignore in serialization/deserialization
|
||||||
public class Common {
|
public class Common {
|
||||||
|
|
||||||
@JsonProperty("description")
|
@JsonProperty("description")
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
@JsonProperty("license_id")
|
@JsonProperty("license_id")
|
||||||
@NotNull(message="license_id cannot be null")
|
|
||||||
@Size(min=2, message="license_id cannot be empty")
|
|
||||||
private String license;
|
private String license;
|
||||||
|
|
||||||
// filled automatically by the service
|
// filled automatically by the service
|
||||||
|
|
Loading…
Reference in New Issue