How about:


```ruby
def validators
  @validators ||= (descriptor_document['validators'] || {}).map { |v| v.is_a?(String) ? { v => nil } : v }.inject({}, :update)
end
```