Sha256: 648af20cba9eb796b3f15bf5472426b3ec41cce776a78cb18df377d17c96df41
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
require 'json' module Pacto module Handlers module JSONHandler class << self def raw(body) JSON.dump(body) end def parse(body) JSON.parse(body) end # TODO: Something like validate(contract, body) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | lib/pacto/handlers/json_handler.rb |
pacto-0.4.0.rc2 | lib/pacto/handlers/json_handler.rb |