Class: Talktome::App

Inherits:
Sinatra::Application
  • Object
show all
Defined in:
lib/talktome/app.rb

Constant Summary collapse

VALIDATION_SCHEMA =
::Finitio.system(<<~FIO)
  @import finitio/data
  Attachment = {
    mime_type :  String
    content   :  .Object
    encoding  :? String
  }
  Email = String(s | s =~ /^[^@]+@[^@]+$/ )
  {
    to          :? Email
    reply_to    :? Email
    in_reply_to :? String
    attachments :? {
      ...       : Attachment
    }
    ...         :  .Object
  }
FIO