class SoberSwag::Reporting::Output::Null

Output JSON nulls.

Public Instance Methods

call(input) click to toggle source
# File lib/sober_swag/reporting/output/null.rb, line 7
def call(input)
  input
end
serialize_report(input) click to toggle source
# File lib/sober_swag/reporting/output/null.rb, line 11
def serialize_report(input)
  result = call(input)

  return Report::Value.new(['was not null']) unless result.nil?

  result
end
swagger_schema() click to toggle source
# File lib/sober_swag/reporting/output/null.rb, line 19
def swagger_schema
  [{ type: 'null' }, {}]
end