Sha256: fe83f28a96393696b1c668ee61584b05eec19af609498e1ea46709a9c9f45e58
Contents?: true
Size: 832 Bytes
Versions: 1
Compression:
Stored size: 832 Bytes
Contents
require 'spec_helper' RSpec.describe Examples::EntityLiterals, type: :integration do it_behaves_like 'a builder' do let(:expected_json) do { type: :object, required: [:one], properties: { one: { enum: [:string, :null] }, two: { allOf: [ { type: :integer, minimum: 1 }, { type: :string } ] }, three: { anyOf: [ { type: :integer, minimum: 1 }, { type: :null } ] }, four: { not: { type: :null } }, five: { oneOf: [ { type: :string }, { type: :number } ] } } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json-schema_builder-0.0.1 | spec/integration/entity_literals_spec.rb |