Sha256: 77afa11eb56da6a3f62d7bac101892c626083718f7278b3dfe924fe1b00bc1a8

Contents?: true

Size: 485 Bytes

Versions: 9

Compression:

Stored size: 485 Bytes

Contents

module SoberSwag
  module Nodes
    ##
    # A "Sum" type represents either one type or the other.
    #
    # It is called "Sum" because, if a type can be either type `A` or type `B`,
    # the number of possible values for the type of `number_of_values(A) + number_of_values(B)`.
    #
    # Internally, this is primarily used when an object can be either one type or another.
    # It will latter be flattened into {SoberSwag::Nodes::OneOf}
    class Sum < Binary
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sober_swag-0.25.2 lib/sober_swag/nodes/sum.rb
sober_swag-0.25.1 lib/sober_swag/nodes/sum.rb
sober_swag-0.25.0 lib/sober_swag/nodes/sum.rb
sober_swag-0.24.1 lib/sober_swag/nodes/sum.rb
sober_swag-0.24.0 lib/sober_swag/nodes/sum.rb
sober_swag-0.23.0 lib/sober_swag/nodes/sum.rb
sober_swag-0.22.0 lib/sober_swag/nodes/sum.rb
sober_swag-0.21.0 lib/sober_swag/nodes/sum.rb
sober_swag-0.20.0 lib/sober_swag/nodes/sum.rb