type address = { address: String, country: Symbol? } type email = { email: String } class AddressSchema < StrongJSON def address: -> StrongJSON::_Schema