Sha256: 9f6d097ee37c25cc963619703d0a4ef388a663b60bbb3de8044b854bd60f0f8e

Contents?: true

Size: 524 Bytes

Versions: 6

Compression:

Stored size: 524 Bytes

Contents

module Dry
  module Swagger
    module Errors
      class MissingTypeError < StandardError
        def message
          "Could not generate documentation for field %{field_name}. The field is missing a type.
          If the field you have defined is an array, you must specify the type of the elements in that array.
          Valid types are: %{valid_types}.
          The parser has generated the following definition for the field: %{field_name}: %{attributes_hash}.
          "
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dry-swagger-0.5.2 lib/dry/swagger/errors/missing_type_error.rb
dry-swagger-0.5.1 lib/dry/swagger/errors/missing_type_error.rb
dry-swagger-0.5.0 lib/dry/swagger/errors/missing_type_error.rb
dry-swagger-0.4.2 lib/dry/swagger/errors/missing_type_error.rb
dry-swagger-0.4.1 lib/dry/swagger/errors/missing_type_error.rb
dry-swagger-0.4.0 lib/dry/swagger/errors/missing_type_error.rb