Skip to content

Commit 0701d5b

Browse files
committed
use ModelUtils in SpringPageableScanUtils
1 parent e133715 commit 0701d5b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/SpringPageableScanUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public static Map<String, List<String>> scanSortValidationEnums(
162162
}
163163
// If the top-level schema is an array, the enum lives on its items
164164
Schema<?> enumSchema = schema;
165-
if (schema.getItems() != null) {
165+
if (ModelUtils.isArraySchema(schema)) {
166166
enumSchema = schema.getItems();
167167
if (enumSchema.get$ref() != null) {
168168
enumSchema = ModelUtils.getReferencedSchema(openAPI, enumSchema);

0 commit comments

Comments
 (0)