Sha256: 1758c60c4889c578e4cfdb63534d13d54ba6fa79d187a519e78c5bb6ca93e148

Contents?: true

Size: 477 Bytes

Versions: 8

Compression:

Stored size: 477 Bytes

Contents

module Finitio
  module JsonSchema
    describe "TupleType" do

      let(:heading){
        Heading.new([Attribute.new(:a, anyType)])
      }

      let(:tuple_type) {
        TupleType.new(heading)
      }

      it 'works as expected' do
        expect(tuple_type.to_json_schema).to eql({
          type: "object",
          properties: {
            a: {}
          },
          required: [:a],
          additionalProperties: false
        })
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
finitio-0.12.0 spec/json_schema/test_tuple_type.rb
finitio-0.11.4 spec/json_schema/test_tuple_type.rb
finitio-0.11.3 spec/json_schema/test_tuple_type.rb
finitio-0.11.2 spec/json_schema/test_tuple_type.rb
finitio-0.11.1 spec/json_schema/test_tuple_type.rb
finitio-0.10.0 spec/json_schema/test_tuple_type.rb
finitio-0.9.1 spec/json_schema/test_tuple_type.rb
finitio-0.9.0 spec/json_schema/test_tuple_type.rb