Sha256: 605f8414893ca74c07ebe65a22b70dd166d0293e558fe38f96ca5374b54b3f51

Contents?: true

Size: 302 Bytes

Versions: 8

Compression:

Stored size: 302 Bytes

Contents

module Finitio
  module JsonSchema
    describe "StructType" do

      let(:type) {
        StructType.new([anyType,anyType])
      }

      it 'works as expected' do
        expect(type.to_json_schema).to eql({
          type: "array",
          items: [{},{}]
        })
      end

    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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