From e997e1ab65980a6afde12049d51bebc4ea026c8b Mon Sep 17 00:00:00 2001 From: DakaD <3106338+Dakad@users.noreply.github.com> Date: Sat, 27 Jul 2024 04:41:28 +0200 Subject: [PATCH] Undo change on the attributes doc --- lib/grape/validations/attributes_doc.rb | 1 - spec/grape/validations/attributes_doc_spec.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/grape/validations/attributes_doc.rb b/lib/grape/validations/attributes_doc.rb index 9381a6c58a..c0d5ed9549 100644 --- a/lib/grape/validations/attributes_doc.rb +++ b/lib/grape/validations/attributes_doc.rb @@ -29,7 +29,6 @@ def extract_details(validations) details[:default] = validations[:default] if validations.key?(:default) - details[:exact_length] = validations[:length][:exact] if validations.key?(:length) && validations[:length].key?(:exact) details[:min_length] = validations[:length][:min] if validations.key?(:length) && validations[:length].key?(:min) details[:max_length] = validations[:length][:max] if validations.key?(:length) && validations[:length].key?(:max) end diff --git a/spec/grape/validations/attributes_doc_spec.rb b/spec/grape/validations/attributes_doc_spec.rb index eef8349f41..d5ae81d2ff 100644 --- a/spec/grape/validations/attributes_doc_spec.rb +++ b/spec/grape/validations/attributes_doc_spec.rb @@ -79,7 +79,6 @@ default: validations[:default], type: 'Integer', values: valid_values, - # exact_length: validations[:length][:exact], min_length: validations[:length][:min], max_length: validations[:length][:max] }