Method: MediaTypes::Scheme#validate
- Defined in:
- lib/media_types/scheme.rb
#validate(output, options = nil, **opts) ⇒ TrueClass
Validates the output and raises on certain validation errors
146 147 148 149 150 151 152 153 |
# File 'lib/media_types/scheme.rb', line 146 def validate(output, = nil, **opts) ||= ValidationOptions.new(**opts) .context = output catch(:end) do validate!(output, , context: nil) end end |