lib/jdoc/link.rb in jdoc-0.4.0 vs lib/jdoc/link.rb in jdoc-0.4.1

- old
+ new

@@ -160,16 +160,16 @@ JSON.pretty_generate(object) end # @return [Fixnum] Preferred respone status code for this endpoint def response_status - case method - when "POST" + case + when method == "POST" 201 - when "PUT", "DELETE" - 204 - else + when has_response_body? 200 + else + 204 end end # @return [JsonSchema::Schema] Response schema for this link def response_schema