type address = { address: String, country: Symbol? } type email = { email: String } class AddressSchema < StrongJSON def address: -> StrongJSON::_Schema
def email: -> StrongJSON::_Schema def contact: -> StrongJSON::_Schema def person: -> StrongJSON::_Schema<{ name: String, contacts: Array }> end Schema: AddressSchema