Sha256: b456466f78587d86a6ecc0dfc100a0b657458ec87a3a20f143a2f9a8d9563602

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

type address = { address: String, country: Symbol? }
type email = { email: String }

class AddressSchema < StrongJSON
  def address: -> StrongJSON::_Schema<address>
  def email: -> StrongJSON::_Schema<email>
  def contact: -> StrongJSON::_Schema<email | address>
  def person: -> StrongJSON::_Schema<{ name: String, contacts: Array<email | address> }>
end

Schema: AddressSchema

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
strong_json-0.8.0 example/example.rbi