From 2a88599250be4781810e1b21941ca68616bea985 Mon Sep 17 00:00:00 2001 From: Ruslan Gazizov <86663214+ruslangazizov@users.noreply.github.com> Date: Fri, 4 Aug 2023 13:24:03 +0300 Subject: [PATCH] Update Schema.java --- .../main/java/io/swagger/v3/oas/annotations/media/Schema.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java b/modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java index 6d1e9223b6..0ba732c6e5 100644 --- a/modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java +++ b/modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java @@ -237,7 +237,7 @@ boolean writeOnly() default false; /** - * Allows to specify the access mode (AccessMode.READ_ONLY, READ_WRITE) + * Allows to specify the access mode (AccessMode.READ_ONLY, WRITE_ONLY, READ_WRITE) * * AccessMode.READ_ONLY: value will not be written to during a request but may be returned during a response. * AccessMode.WRITE_ONLY: value will only be written to during a request but not returned during a response. @@ -246,7 +246,7 @@ * @return the accessMode for this schema (property) * */ - AccessMode accessMode() default AccessMode.AUTO; + AccessMode accessMode() default AccessMode.AUTO; /** * Provides an example of the schema. When associated with a specific media type, the example string shall be parsed by the consumer to be treated as an object or an array.