Skip to content

Commit 79339b3

Browse files
committed
fix: fix javadocs for Schema.requiredMode
1 parent b1729fc commit 79339b3

File tree

1 file changed

+3
-2
lines changed
  • modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media

1 file changed

+3
-2
lines changed

modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@
164164
/**
165165
* Mandates that the annotated item is required or not.
166166
*
167-
* @deprecated As of 2.3.1, replaced by {@link #requiredMode()}
167+
* @deprecated since 2.2.5, replaced by {@link #requiredMode()}
168168
*
169-
* @return whether or not this schema is required
169+
* @return whether this schema is required
170170
**/
171171
@Deprecated
172172
boolean required() default false;
@@ -178,6 +178,7 @@
178178
* RequiredMode.REQUIRED: will force the item to be considered as required regardless of heuristics.
179179
* RequiredMode.NOT_REQUIRED: will force the item to be considered as not required regardless of heuristics.
180180
*
181+
* @since 2.2.5
181182
* @return the requiredMode for this schema (property)
182183
*
183184
*/

0 commit comments

Comments
 (0)