in swagger/swagger-invocation/invocation-core/src/main/java/org/apache/servicecomb/swagger/invocation/arguments/AbstractArgumentsMapperCreator.java [135:153]
private Map<String, Schema> readSwaggerBodyProperties() {
if (bodyParameter == null || bodyParameter.getContent() == null
|| bodyParameter.getContent().size() == 0) {
return null;
}
// For pojo wrapped bodies only
if (bodyParameter.getContent().get(SwaggerConst.FILE_MEDIA_TYPE) != null ||
bodyParameter.getContent().get(SwaggerConst.FORM_MEDIA_TYPE) != null) {
return null;
}
Schema schema = bodyParameter.getContent().entrySet().iterator().next().getValue().getSchema();
if (schema != null && schema.get$ref() != null) {
schema = SwaggerUtils.getSchema(swaggerOperation.getSwagger(), schema.get$ref());
}
if (schema != null && schema.getProperties() != null) {
return schema.getProperties();
}
return null;
}