for (int i = 0; i < annotations.length; i++) {
Annotation[] pAnnotations = annotations[i];
for (Annotation annotation : pAnnotations) {
if (annotation instanceof RequestBody) {
ResolvedMethodParameter pType = parameterTypes.get(i);
if (!settings.getIgnorableParameterTypes()
.contains(pType.getResolvedParameterType().getErasedType())) {
ResolvedType modelType = settings.getAlternateTypeProvider().alternateFor(pType
.getResolvedParameterType());
ModelContext modelContext = ModelContext.inputParam(modelType);
markIgnorablesAsHasSeen(settings.getTypeResolver(), settings.getIgnorableParameterTypes(),
modelContext);
Optional<Model> pModel = modelProvider.modelFor(modelContext);
if (pModel.isPresent()) {
log.debug("Swagger generated parameter model id: {}, name: {}, schema: {} models",
pModel.get().id(),
pModel.get().name());
modelMap.put(pModel.get().id(), pModel.get());
} else {
log.debug("Swagger core did not find any parameter models for {}",
pType.getResolvedParameterType());
}
populateDependencies(modelContext, modelMap);
}
}
}