# 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