code: function (bodySchemaModels, defName) {
          for (var i in bodySchemaModels) {
              if (bodySchemaModels[i]["name"] == defName) {
                  return bodySchemaModels[i];
              }
          }
          return null;
      }
docs: Create swagger compatible schema for body parameters
  @param bodySchemaModels
  @param obj
  @param defName
  @returns {{bodySchemaModels: *, attributes: {}}}
  @private