File tree 3 files changed +32
-1
lines changed
springdoc-openapi-starter-common/src/main/java/org/springdoc/core
3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change 60
60
<maven-gpg-plugin .version>1.6</maven-gpg-plugin .version>
61
61
<maven-release-plugin .version>2.5.3</maven-release-plugin .version>
62
62
<nexus-staging-maven-plugin >1.6.8</nexus-staging-maven-plugin >
63
- <swagger-api .version>2.2.24 </swagger-api .version>
63
+ <swagger-api .version>2.2.25 </swagger-api .version>
64
64
<swagger-ui .version>5.17.14</swagger-ui .version>
65
65
<gmavenplus-plugin .version>1.13.1</gmavenplus-plugin .version>
66
66
<jjwt .version>0.9.1</jjwt .version>
Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ public boolean allowReserved() {
189
189
@ Override
190
190
public Schema schema () {
191
191
return new Schema () {
192
+ @ Override
193
+ public SchemaResolution schemaResolution () {
194
+ return parameterSchema .schemaResolution ();
195
+ }
192
196
193
197
private Schema parameterSchema = parameter .schema ();
194
198
@@ -938,6 +942,11 @@ public String[] examples() {
938
942
public String _const () {
939
943
return schema ._const ();
940
944
}
945
+
946
+ @ Override
947
+ public SchemaResolution schemaResolution () {
948
+ return schema .schemaResolution ();
949
+ }
941
950
};
942
951
}
943
952
Original file line number Diff line number Diff line change 35
35
import io .swagger .v3 .oas .annotations .media .Schema .AccessMode ;
36
36
import io .swagger .v3 .oas .annotations .media .Schema .AdditionalPropertiesValue ;
37
37
import io .swagger .v3 .oas .annotations .media .Schema .RequiredMode ;
38
+ import io .swagger .v3 .oas .annotations .media .Schema .SchemaResolution ;
38
39
import org .apache .commons .lang3 .ArrayUtils ;
39
40
40
41
/**
@@ -228,6 +229,11 @@ public class Builder {
228
229
*/
229
230
private Extension [] extensions = {};
230
231
232
+ /**
233
+ * The Schema resolution.
234
+ */
235
+ private SchemaResolution schemaResolution ;
236
+
231
237
/**
232
238
* Allows to specify the additionalProperties value
233
239
* AdditionalPropertiesValue.TRUE: set to TRUE
@@ -818,6 +824,17 @@ public Builder requiredMode(RequiredMode requiredMode) {
818
824
return this ;
819
825
}
820
826
827
+ /**
828
+ * Schema resolution builder.
829
+ *
830
+ * @param schemaResolution the schema resolution
831
+ * @return the builder
832
+ */
833
+ public Builder schemaResolution (SchemaResolution schemaResolution ) {
834
+ this .schemaResolution = schemaResolution ;
835
+ return this ;
836
+ }
837
+
821
838
/**
822
839
* Additional properties builder.
823
840
*
@@ -1195,6 +1212,11 @@ public String[] examples() {
1195
1212
public String _const () {
1196
1213
return _const ;
1197
1214
}
1215
+
1216
+ @ Override
1217
+ public SchemaResolution schemaResolution () {
1218
+ return schemaResolution ;
1219
+ }
1198
1220
};
1199
1221
}
1200
1222
}
You can’t perform that action at this time.
0 commit comments