Sha256: 58838b4bd3caa00e49be50ffbc96b549a9b0abe067cacfb748119c134fe6db44
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module Examples class EntityLiterals include JSON::SchemaBuilder def example object do entity 'one', required: true do enum [:string, :null] end entity 'two' do all_of positive_int, string end entity 'three' do any_of [positive_int, null] end entity 'four' do not_a null end entity 'five' do one_of string, number end end end def positive_int integer minimum: 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
json-schema_builder-0.0.1 | spec/support/examples/entity_literals.rb |