Sha256: ce9427a6c801092640ac0bbf9aab5eb4741a4db0db112b8e51cab07f4e1e8317
Contents?: true
Size: 399 Bytes
Versions: 6
Compression:
Stored size: 399 Bytes
Contents
type address = { address: String, country: Symbol? } type email = { email: String } class AddressSchema < StrongJSON def address: -> StrongJSON::Type::Object<address> def email: -> StrongJSON::Type::Object<email> def contact: -> StrongJSON::Type::Object<email | address> def person: -> StrongJSON::Type::Object<{ name: String, contacts: Array<email | address> }> end Schema: AddressSchema
Version data entries
6 entries across 6 versions & 1 rubygems