Added schema description to Greeting
This commit is contained in:
@ -1,5 +1,6 @@
|
|||||||
package de.twomartens.templateservice.entity;
|
package de.twomartens.templateservice.entity;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
import lombok.*;
|
import lombok.*;
|
||||||
|
|
||||||
@Builder
|
@Builder
|
||||||
@ -11,6 +12,7 @@ import lombok.*;
|
|||||||
public class Greeting {
|
public class Greeting {
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
@Schema(description = "This message is displayed")
|
||||||
private final String message;
|
private final String message;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user