Skip to content

Commit

Permalink
Undo change on the attributes doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dakad committed Jul 27, 2024
1 parent 6bcd4d8 commit e997e1a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/grape/validations/attributes_doc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion spec/grape/validations/attributes_doc_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
Expand Down

0 comments on commit e997e1a

Please sign in to comment.