Sha256: 8ef093b8704256ce4266113ab6d57ad594035caa1f7a6b1832b7601d45707901
Contents?: true
Size: 475 Bytes
Versions: 3
Compression:
Stored size: 475 Bytes
Contents
module JsonapiSwaggerHelpers module Errors class TypeNotFound < StandardError def initialize(payload_name, attribute) @payload_name = payload_name @attribute = attribute end def message <<-STR Could not find type mapping for payload "#{@payload_name}", key "#{@attribute}". To add a custom mapping: JsonapiSwaggerHelpers.configure do |c| c.type_mapping[:string] << MyCustomType end STR end end end end
Version data entries
3 entries across 3 versions & 1 rubygems