Sha256: 0e5f71bde2af2a75bdcb68d5dd909dffbbb3860cdf334c678cf200f49f5cc0af
Contents?: true
Size: 339 Bytes
Versions: 4
Compression:
Stored size: 339 Bytes
Contents
# frozen_string_literal: true module JSONSchemer module ContentEncoding BASE64 = proc do |instance| [true, Base64.strict_decode64(instance)] rescue [false, nil] end end module ContentMediaType JSON = proc do |instance| [true, ::JSON.parse(instance)] rescue [false, nil] end end end
Version data entries
4 entries across 4 versions & 1 rubygems