Removed nullable value as null values are not sent via JSON

This commit is contained in:
2020-07-11 22:17:34 +02:00
parent 7e62fb8c9c
commit b08c8cc9c3
14 changed files with 175 additions and 175 deletions

View File

@ -35,61 +35,61 @@ public class Paper {
@Schema(required = true, description = "Date and time of the last update of the object")
private final ZonedDateTime modified;
@Schema(description = "URL to the license", nullable = true)
@Schema(description = "URL to the license")
private String license;
@Schema(description = "Categorization of the object", nullable = true)
@Schema(description = "Categorization of the object")
private String keyword;
@Schema(description = "URL of a website that presents the object in the browser", nullable = true)
@Schema(description = "URL of a website that presents the object in the browser")
private String web;
@Schema(description = "True, if the object was deleted")
private final boolean deleted;
@Schema(description = "URL to the body this paper belongs to", nullable = true)
@Schema(description = "URL to the body this paper belongs to")
private final String body;
@Schema(description = "name of this paper", nullable = true)
@Schema(description = "name of this paper")
private final String name;
@Schema(description = "official identifier to uniquely identify this paper", nullable = true)
@Schema(description = "official identifier to uniquely identify this paper")
private final String reference;
@JsonFormat(shape = JsonFormat.Shape.STRING)
@Schema(description = "date which is used, for example, as a reference for deadlines", nullable = true)
@Schema(description = "date which is used, for example, as a reference for deadlines")
private final LocalDate date;
@Schema(description = "type of this paper", nullable = true, example = "Beantwortung einer Anfrage")
@Schema(description = "type of this paper", example = "Beantwortung einer Anfrage")
private final String paperType;
@Schema(description = "List of URLs to related papers", nullable = true)
@Schema(description = "List of URLs to related papers")
private final List<String> relatedPaper;
@Schema(description = "List of URLs to superordinate papers", nullable = true)
@Schema(description = "List of URLs to superordinate papers")
private final List<String> superordinatedPaper;
@Schema(description = "List of URLs to subordinate papers", nullable = true)
@Schema(description = "List of URLs to subordinate papers")
private final List<String> subordinatedPapers;
@Schema(description = "main file for this paper", nullable = true)
@Schema(description = "main file for this paper")
private final File mainFile;
@Schema(description = "additional files for this paper with exception of mainFile", nullable = true)
@Schema(description = "additional files for this paper with exception of mainFile")
private final List<File> auxiliaryFile;
@Schema(description = "List of locations related to this paper", nullable = true)
@Schema(description = "List of locations related to this paper")
private final List<Location> location;
@Schema(description = "List of URLs to authors of this paper", nullable = true)
@Schema(description = "List of URLs to authors of this paper")
private final List<String> originatorPerson;
@Schema(description = "List of URLs to organizations that authored this paper", nullable = true)
@Schema(description = "List of URLs to organizations that authored this paper")
private final List<String> originatorOrganization;
@Schema(description = "List of URLs to organizations responsible for content of or response to this paper", nullable = true)
@Schema(description = "List of URLs to organizations responsible for content of or response to this paper")
private final List<String> underDirectionOf;
@Schema(description = "List of consultations for this paper", nullable = true)
@Schema(description = "List of consultations for this paper")
private final List<Consultation> consultation;
}