Improved documentation of enum fields

This commit is contained in:
Jim Martens 2020-07-10 23:02:03 +02:00
parent 6774035fcd
commit cdba815c32
2 changed files with 4 additions and 3 deletions

View File

@ -49,7 +49,8 @@ public class Meeting {
@Schema(description = "name of the meeting")
private final String name;
@Schema(description = "current status of the meeting", allowableValues = "terminiert, eingeladen, durchgeführt", nullable = true)
@Schema(type = "string", description = "current status of the meeting",
allowableValues = "terminiert | eingeladen | durchgeführt", nullable = true)
private final MeetingState meetingState;
@Schema(description = "True if this meeting was cancelled")

View File

@ -71,8 +71,8 @@ public class Organization {
@Schema(description = "URL to a parent organization", nullable = true)
private final String subOrganizationOf;
@Schema(description = "rough categorization of the organization", nullable = true,
allowableValues = "Gremium, Partei, Fraktion, Verwaltungsbereich, externes Gremium, Institution, Sonstiges")
@Schema(type = "string", description = "rough categorization of the organization", nullable = true,
allowableValues = "Gremium | Partei | Fraktion | Verwaltungsbereich | externes Gremium | Institution | Sonstiges")
private final OrganizationType organizationType;
@Schema(description = "type of organization", nullable = true)