lib/grape-swagger/endpoint.rb in grape-swagger-1.0.0 vs lib/grape-swagger/endpoint.rb in grape-swagger-1.1.0
- old
+ new
@@ -343,10 +343,9 @@
properties, required = parser.new(model, self).call
unless properties&.any?
raise GrapeSwagger::Errors::SwaggerSpec,
"Empty model #{model_name}, swagger 2.0 doesn't support empty definitions."
end
-
@definitions[model_name] = GrapeSwagger::DocMethods::BuildModelDefinition.build(model, properties, required)
model_name
end