You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/swagger-annotations/src/main/java/io/swagger/v3/oas/annotations/media/Schema.java
+23-2
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,7 @@
237
237
booleanwriteOnly() defaultfalse;
238
238
239
239
/**
240
-
* Allows to specify the access mode (AccessMode.READ_ONLY, READ_WRITE)
240
+
* Allows to specify the access mode (AccessMode.READ_ONLY, WRITE_ONLY, READ_WRITE)
241
241
*
242
242
* AccessMode.READ_ONLY: value will not be written to during a request but may be returned during a response.
243
243
* AccessMode.WRITE_ONLY: value will only be written to during a request but not returned during a response.
@@ -246,7 +246,7 @@
246
246
* @return the accessMode for this schema (property)
247
247
*
248
248
*/
249
-
AccessModeaccessMode() defaultAccessMode.AUTO;
249
+
AccessModeaccessMode() defaultAccessMode.AUTO;
250
250
251
251
/**
252
252
* 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.
@@ -554,6 +554,14 @@ enum RequiredMode {
554
554
NOT_REQUIRED;
555
555
}
556
556
557
+
enumSchemaResolution {
558
+
AUTO,
559
+
DEFAULT,
560
+
INLINE,
561
+
ALL_OF,
562
+
ALL_OF_REF;
563
+
}
564
+
557
565
/**
558
566
* Allows to specify the dependentRequired value
559
567
**
@@ -616,4 +624,17 @@ enum RequiredMode {
616
624
*/
617
625
@OpenAPI31
618
626
String_const() default"";
627
+
628
+
/**
629
+
* Allows to specify the schema resolution mode for object schemas
630
+
*
631
+
* SchemaResolution.DEFAULT: bundled into components/schemas, $ref with no siblings
632
+
* SchemaResolution.INLINE: inline schema, no $ref
633
+
* SchemaResolution.ALL_OF: bundled into components/schemas, $ref and any context annotation resolution into allOf
634
+
* SchemaResolution.ALL_OF_REF: bundled into components/schemas, $ref into allOf, context annotation resolution into root
635
+
*
636
+
* @return the schema resolution mode for this schema
0 commit comments