```ruby
require "delegate"
require "validators/date_validator"
require "validators/safe_html_validator"

class CmaCaseValidator < SimpleDelegator
  include ActiveModel::Validations

  validates :title, presence: true
  validates :summary, presence: true
  validates :body, presence: true, safe_html: true

  validates :opened_date, presence: true, date: true
  validates :market_sector, presence: true
  validates :case_type, presence: true
  validates :case_state, presence: true
  validates :closed_date, allow_blank: true, date: true
end
```

Allow blank opened dates for CMA cases
user
```ruby
require "delegate"
require "validators/date_validator"
require "validators/safe_html_validator"

class CmaCaseValidator < SimpleDelegator
  include ActiveModel::Validations

  validates :title, presence: true
  validates :summary, presence: true
  validates :body, presence: true, safe_html: true

  validates :opened_date, allow_blank: true, date: true
  validates :market_sector, presence: true
  validates :case_type, presence: true
  validates :case_state, presence: true
  validates :closed_date, allow_blank: true, date: true
end
```
assistant