private void resolveArraySchema(AnnotatedType annotatedType, ArraySchema schema, io.swagger.v3.oas.annotations.media.ArraySchema resolvedArrayAnnotation) { Integer minItems = resolveMinItems(annotatedType, resolvedArrayAnnotation); if (minItems != null) { schema.minItems(minItems); } Integer maxItems = resolveMaxItems(annotatedType, resolvedArrayAnnotation); if (maxItems != null) { schema.maxItems(maxItems); } Boolean uniqueItems = resolveUniqueItems(annotatedType, resolvedArrayAnnotation); if (uniqueItems != null) { schema.uniqueItems(uniqueItems); } Map<String, Object> extensions = resolveExtensions(annotatedType, resolvedArrayAnnotation); if (extensions != null) { schema.extensions(extensions); } if (resolvedArrayAnnotation != null) { if (AnnotationsUtils.hasSchemaAnnotation(resolvedArrayAnnotation.arraySchema())) { resolveSchemaMembers(schema, null, null, resolvedArrayAnnotation.arraySchema()); } } } }
private void resolveArraySchema(AnnotatedType annotatedType, ArraySchema schema, io.swagger.v3.oas.annotations.media.ArraySchema resolvedArrayAnnotation) { Integer minItems = resolveMinItems(annotatedType, resolvedArrayAnnotation); if (minItems != null) { schema.minItems(minItems); } Integer maxItems = resolveMaxItems(annotatedType, resolvedArrayAnnotation); if (maxItems != null) { schema.maxItems(maxItems); } Boolean uniqueItems = resolveUniqueItems(annotatedType, resolvedArrayAnnotation); if (uniqueItems != null) { schema.uniqueItems(uniqueItems); } Map<String, Object> extensions = resolveExtensions(annotatedType, resolvedArrayAnnotation); if (extensions != null) { schema.extensions(extensions); } if (resolvedArrayAnnotation != null) { if (AnnotationsUtils.hasSchemaAnnotation(resolvedArrayAnnotation.arraySchema())) { resolveSchemaMembers(schema, null, null, resolvedArrayAnnotation.arraySchema()); } } } }