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