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