Sha256: 17fa51d7f57e6673f308d8dfc39c7e465c57d25bffb66add391c7f00742c7df3

Contents?: true

Size: 423 Bytes

Versions: 4

Compression:

Stored size: 423 Bytes

Contents

# Abstract base class for input types, i.e. types without response rendering.
class Taro::Types::InputType < Taro::Types::BaseType
  require_relative "shared"
  extend Taro::Types::Shared::Fields
  include Taro::Types::Shared::CustomFieldResolvers
  include Taro::Types::Shared::ObjectCoercion

  self.openapi_type = :object

  def coerce_response
    response_error 'InputTypes cannot be used as response types'
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
taro-1.3.0 lib/taro/types/input_type.rb
taro-1.2.0 lib/taro/types/input_type.rb
taro-1.1.0 lib/taro/types/input_type.rb
taro-1.0.0 lib/taro/types/input_type.rb