private Type getParameterType(String pName, Method method, ResourceDescription description) {
		Type type = null;
		java.lang.reflect.Parameter[] parameters = method.getParameters();
		for (int i = 0; i < parameters.length; i++) {
			java.lang.reflect.Parameter parameter = parameters[i];
			if (pName.equals(parameter.getName()) || (parameter.getAnnotation(Param.class) != null && pName.equals(parameter.getAnnotation(Param.class).value()))) {
				ResolvableType resolvableType = ResolvableType.forMethodParameter(method, i);
				type = resolvableType.getType();
				break;
			}
		}
		if (type == null) {
			TypedResourceDescription typedResourceDescription = (TypedResourceDescription) description;
			Field fieldType = FieldUtils.getField(TypedResourceDescription.class, "type", true);
			try {
				type = (Type) fieldType.get(typedResourceDescription);
			}
			catch (IllegalAccessException e) {
				LOGGER.warn(e.getMessage());
				type = String.class;
			}
		}
		return type;
	}
Gets parameter type.

@param pName       the p name
@param method      the method
@param description the description
@return the parameter type
springdoc-openapi-starter-common/src/main/java/org/springdoc/core/data/DataRestOperationService.java