public void applyBeanValidatorAnnotations(final MethodParameter methodParameter, final Parameter parameter, final List<Annotation> annotations, final boolean isParameterObject, String openapiVersion) {
		boolean annotatedNotNull = annotations != null && SchemaUtils.annotatedNotNull(annotations);
		if (annotatedNotNull && !isParameterObject) {
			parameter.setRequired(true);
		}
		if (annotations != null) {
			Schema<?> schema = parameter.getSchema();
			SchemaUtils.applyValidationsToSchema(schema, annotations, openapiVersion);
			if (schema instanceof ArraySchema && methodParameter instanceof DelegatingMethodParameter mp) {
				java.lang.reflect.AnnotatedType annotatedType = null;
				if (isParameterObject) {
					Field field = mp.getField();
					if (field != null) {
						annotatedType = field.getAnnotatedType();
					}
				}
				else {
					java.lang.reflect.Parameter param = mp.getParameter();
					annotatedType = param.getAnnotatedType();
				}
				if (annotatedType instanceof AnnotatedParameterizedType paramType) {
					java.lang.reflect.AnnotatedType[] typeArgs = paramType.getAnnotatedActualTypeArguments();
					for (java.lang.reflect.AnnotatedType typeArg : typeArgs) {
						List<Annotation> genericAnnotations = Arrays.stream(typeArg.getAnnotations()).toList();
						SchemaUtils.applyValidationsToSchema(schema.getItems(), genericAnnotations, openapiVersion);
					}
				}
			}
		}
	}
Apply bean validator annotations.

@param methodParameter   the method parameter
@param parameter         the parameter
@param annotations       the annotations
@param isParameterObject the is parameter object
@param openapiVersion    the openapi version
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/service/AbstractRequestService.java