lib/grape-swagger/endpoint.rb in grape-swagger-0.34.2 vs lib/grape-swagger/endpoint.rb in grape-swagger-1.0.0

- old
+ new

@@ -299,10 +299,10 @@ required = GrapeSwagger::DocMethods::Headers.parse(route) + required unless route.headers.nil? default_type(required) request_params = unless declared_params.nil? && route.headers.nil? - GrapeSwagger::Endpoint::ParamsParser.parse_request_params(required, settings) + GrapeSwagger::Endpoint::ParamsParser.parse_request_params(required, settings, self) end || {} request_params.empty? ? required : request_params end