class JsonapiSwaggerHelpers::Errors::TypeNotFound

Public Class Methods

new(payload_name, attribute) click to toggle source
# File lib/jsonapi_swagger_helpers/errors.rb, line 4
def initialize(payload_name, attribute)
  @payload_name = payload_name
  @attribute = attribute
end

Public Instance Methods

message() click to toggle source
# File lib/jsonapi_swagger_helpers/errors.rb, line 9
      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