github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1839/fixture-1839-mini.yaml (about)

     1  ---
     2  swagger: "2.0"
     3  info:
     4    description: "discriminator fixture #1839"
     5    version: "3.1"
     6    title: "ClickSend v3 API"
     7    termsOfService: "https://www.clicksend.com/au/legal/terms-of-service/"
     8    contact:
     9      email: "support@clicksend.com"
    10  host: "rest.clicksend.com"
    11  basePath: "/v3"
    12  schemes:
    13  - "https"
    14  consumes:
    15  - "application/json"
    16  produces:
    17  - "application/json"
    18  paths:
    19    /sms/email-sms:
    20      get:
    21        tags:
    22        - "Email To Sms"
    23        summary: "Get list of email to sms allowed addresses"
    24        description: "Get list of email to sms allowed addresses"
    25        operationId: "SmsEmailSmsGet"
    26        produces:
    27        - "application/json"
    28        parameters:
    29        - name: "page"
    30          in: "query"
    31          description: "Page number"
    32          required: false
    33          type: "integer"
    34          default: 1
    35          exclusiveMaximum: false
    36          minimum: 1
    37          exclusiveMinimum: false
    38          format: "int32"
    39        responses:
    40          default:
    41            description: "INTERNAL_SERVER_ERROR"
    42            schema:
    43              type: "string"
    44  definitions:
    45    Email:
    46      type: "object"
    47      required:
    48      - "body"
    49      - "from"
    50      - "to"
    51      discriminator: "classType"
    52      properties:
    53        to:
    54          type: "array"
    55          description: "Array of To Recipient items."
    56          items:
    57            $ref: "#/definitions/EmailRecipient"
    58        cc:
    59          type: "array"
    60          description: "Array of Cc Recipient items."
    61          items:
    62            $ref: "#/definitions/EmailRecipient"
    63        bcc:
    64          type: "array"
    65          description: "Array of Bcc Recipient items."
    66          items:
    67            $ref: "#/definitions/EmailRecipient"
    68        from:
    69          $ref: "#/definitions/Email_from"
    70        subject:
    71          type: "string"
    72          description: "Subject of the email."
    73        body:
    74          type: "string"
    75          description: "Body of the email."
    76        attachments:
    77          type: "array"
    78          description: "Array of Attachment items."
    79          items:
    80            $ref: "#/definitions/Attachment"
    81        schedule:
    82          type: "number"
    83          description: "Schedule."
    84      description: "Send Email"
    85      example:
    86        cc:
    87        - name: "name"
    88          email: "email"
    89        - name: "name"
    90          email: "email"
    91        schedule: 0.80082819046101150206595775671303272247314453125
    92        bcc:
    93        - name: "name"
    94          email: "email"
    95        - name: "name"
    96          email: "email"
    97        attachments:
    98        - disposition: "disposition"
    99          filename: "filename"
   100          content_id: "content_id"
   101          type: "type"
   102          content: "content"
   103        - disposition: "disposition"
   104          filename: "filename"
   105          content_id: "content_id"
   106          type: "type"
   107          content: "content"
   108        subject: "subject"
   109        from:
   110          email_address_id: "email_address_id"
   111          name: "name"
   112        to:
   113        - name: "name"
   114          email: "email"
   115        - name: "name"
   116          email: "email"
   117        body: "body"
   118    EmailRecipient:
   119      type: "object"
   120      required:
   121      - "email"
   122      discriminator: "classType"
   123      properties:
   124        email:
   125          type: "string"
   126          description: "Email of the recipient."
   127        name:
   128          type: "string"
   129          description: "Name of the recipient."
   130      description: "Recipient of an email, either To, Cc, or Bcc."
   131      example:
   132        name: "name"
   133        email: "email"
   134    Url:
   135      type: "object"
   136      required:
   137      - "url"
   138      discriminator: "classType"
   139      properties:
   140        url:
   141          type: "string"
   142          description: "Your url."
   143      description: "Your url."
   144      example:
   145        url: "url"
   146    DateBefore:
   147      type: "object"
   148      discriminator: "classType"
   149      properties:
   150        date_before:
   151          type: "number"
   152          description: "An optional timestamp - mark all as read before this timestamp.\
   153            \ If not given, all messages will be marked as read."
   154      description: "All dates before specified timestam."
   155      example:
   156        date_before: 0.80082819046101150206595775671303272247314453125
   157    UploadFile:
   158      type: "object"
   159      required:
   160      - "content"
   161      discriminator: "classType"
   162      properties:
   163        content:
   164          type: "string"
   165          description: "Your base64 encoded file string."
   166      description: "Your file to be uploaded."
   167      example:
   168        content: "content"
   169    ContactList:
   170      type: "object"
   171      required:
   172      - "list_name"
   173      discriminator: "classType"
   174      properties:
   175        list_name:
   176          type: "string"
   177          description: "Your list name."
   178      description: "Your contact list."
   179      example:
   180        list_name: "list_name"
   181    StrippedString:
   182      type: "object"
   183      required:
   184      - "strip_string"
   185      discriminator: "classType"
   186      properties:
   187        strip_string:
   188          type: "string"
   189          description: "String to be."
   190      description: "String to be stripped."
   191      example:
   192        strip_string: "strip_string"
   193    Attachment:
   194      type: "object"
   195      required:
   196      - "content"
   197      - "content_id"
   198      - "disposition"
   199      - "filename"
   200      - "type"
   201      discriminator: "classType"
   202      properties:
   203        content:
   204          type: "string"
   205          description: "The base64-encoded contents of the file."
   206        type:
   207          type: "string"
   208          description: "The type of file being attached."
   209        filename:
   210          type: "string"
   211          description: "The name of the file being attached."
   212        disposition:
   213          type: "string"
   214          description: "Inline for content that can be displayed within the email, or\
   215            \ attachment for any other files."
   216        content_id:
   217          type: "string"
   218          description: "An ID for the content."
   219      description: "Email attachment"
   220      example:
   221        disposition: "disposition"
   222        filename: "filename"
   223        content_id: "content_id"
   224        type: "type"
   225        content: "content"
   226    EmailCampaign:
   227      type: "object"
   228      required:
   229      - "body"
   230      - "from_email_address_id"
   231      - "from_name"
   232      - "list_id"
   233      - "name"
   234      - "subject"
   235      discriminator: "classType"
   236      properties:
   237        name:
   238          type: "string"
   239          description: "Your campaign name."
   240        subject:
   241          type: "string"
   242          description: "Your campaign subject."
   243        body:
   244          type: "string"
   245          description: "Your campaign message."
   246        from_email_address_id:
   247          type: "number"
   248          description: "The allowed email address id."
   249        from_name:
   250          type: "string"
   251          description: "Your name or business name."
   252        template_id:
   253          type: "number"
   254          description: "Your template id."
   255        list_id:
   256          type: "number"
   257          description: "Your contact list id."
   258        schedule:
   259          type: "integer"
   260          format: "int32"
   261          example: 0
   262          description: "Your schedule timestamp."
   263          default: 0
   264      description: "Campaign Model for Email"
   265      example:
   266        schedule: 0
   267        list_id: 1.46581298050294517310021547018550336360931396484375
   268        subject: "subject"
   269        from_email_address_id: 0.80082819046101150206595775671303272247314453125
   270        name: "name"
   271        template_id: 6.02745618307040320615897144307382404804229736328125
   272        body: "body"
   273        from_name: "from_name"
   274    EmailTemplateNew:
   275      type: "object"
   276      required:
   277      - "template_id_master"
   278      - "template_name"
   279      discriminator: "classType"
   280      properties:
   281        template_name:
   282          type: "string"
   283          description: "The intended name for the new template."
   284        template_id_master:
   285          type: "number"
   286          description: "The ID of the master template you want to base on."
   287      description: "Model for Email Templates"
   288      example:
   289        template_name: "template_name"
   290        template_id_master: 0.80082819046101150206595775671303272247314453125
   291    EmailTemplateUpdate:
   292      type: "object"
   293      required:
   294      - "body"
   295      discriminator: "classType"
   296      properties:
   297        template_name:
   298          type: "string"
   299          description: "The intended name for the template."
   300        body:
   301          type: "string"
   302          description: "Your template body."
   303      description: "Model for Email Templates"
   304      example:
   305        template_name: "template_name"
   306        body: "body"
   307    InboundSMSRule:
   308      type: "object"
   309      required:
   310      - "action"
   311      - "action_address"
   312      - "dedicated_number"
   313      - "enabled"
   314      - "message_search_term"
   315      - "message_search_type"
   316      - "rule_name"
   317      discriminator: "classType"
   318      properties:
   319        dedicated_number:
   320          type: "string"
   321          description: "Dedicated Number. Can be '*' to apply to all numbers."
   322        rule_name:
   323          type: "string"
   324          description: "Rule Name."
   325        message_search_type:
   326          type: "number"
   327          description: "Message Search Type: 0=Any message, 1=starts with, 2=contains,\
   328            \ 3=does not contain."
   329        message_search_term:
   330          type: "string"
   331          description: "Message search term."
   332        action:
   333          type: "string"
   334          description: "Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL,\
   335            \ SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,\
   336            \ CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE)."
   337        action_address:
   338          type: "string"
   339          description: "Action address."
   340        enabled:
   341          type: "number"
   342          description: "Enabled: Disabled=0 or Enabled=1."
   343      description: "Model for Inbound SMS Rules"
   344    InboundFaxRule:
   345      type: "object"
   346      required:
   347      - "action"
   348      - "action_address"
   349      - "dedicated_number"
   350      - "enabled"
   351      - "rule_name"
   352      discriminator: "classType"
   353      properties:
   354        dedicated_number:
   355          type: "string"
   356          description: "Dedicated Number. Can be '*' to apply to all numbers."
   357        rule_name:
   358          type: "string"
   359          description: "Rule Name."
   360        action:
   361          type: "string"
   362          description: "Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL,\
   363            \ SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,\
   364            \ CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE)."
   365        action_address:
   366          type: "string"
   367          description: "Action address."
   368        enabled:
   369          type: "number"
   370          description: "Enabled: Disabled=0 or Enabled=1."
   371      description: "Model for Inbound FAX Rules"
   372      example:
   373        action_address: "action_address"
   374        dedicated_number: "dedicated_number"
   375        rule_name: "rule_name"
   376        action: "action"
   377        enabled: 0.80082819046101150206595775671303272247314453125
   378    DeliveryReceiptRule:
   379      type: "object"
   380      required:
   381      - "action"
   382      - "action_address"
   383      - "enabled"
   384      - "match_type"
   385      - "rule_name"
   386      discriminator: "classType"
   387      properties:
   388        rule_name:
   389          type: "string"
   390          description: "Rule Name."
   391        match_type:
   392          type: "number"
   393          description: "Match Type. 0=All reports."
   394        action:
   395          type: "string"
   396          description: "Action to be taken (AUTO_REPLY, EMAIL_USER, EMAIL_FIXED, URL,\
   397            \ SMS, POLL, GROUP_SMS, MOVE_CONTACT, CREATE_CONTACT, CREATE_CONTACT_PLUS_EMAIL,\
   398            \ CREATE_CONTACT_PLUS_NAME_EMAIL CREATE_CONTACT_PLUS_NAME, SMPP, NONE)."
   399        action_address:
   400          type: "string"
   401          description: "Action address."
   402        enabled:
   403          type: "number"
   404          description: "Enabled: Disabled=0 or Enabled=1."
   405      description: "Model for a Delivery Receipt"
   406      example:
   407        action_address: "action_address"
   408        rule_name: "rule_name"
   409        match_type: 0.80082819046101150206595775671303272247314453125
   410        action: "action"
   411        enabled: 6.02745618307040320615897144307382404804229736328125
   412    forgotUsername:
   413      type: "object"
   414      properties:
   415        email:
   416          type: "string"
   417          description: "Email belonging to account."
   418        phone_number:
   419          type: "string"
   420          description: "Phone number belonging to account."
   421    forgotPassword:
   422      type: "object"
   423      required:
   424      - "username"
   425      properties:
   426        username:
   427          type: "string"
   428          description: "Username belonging to account."
   429    emailAddress:
   430      type: "object"
   431      required:
   432      - "email_address"
   433      properties:
   434        email_address:
   435          type: "string"
   436          description: "Email to be allowed."
   437    Fields_fields:
   438      properties:
   439        phone_number:
   440          type: "string"
   441          description: "Your phone number in E.164 format. Must be provided if no fax\
   442            \ number or email."
   443        custom_1:
   444          type: "string"
   445          description: ""
   446        email:
   447          type: "string"
   448          description: "Your email. Must be provided if no phone number or fax number."
   449        fax_number:
   450          type: "string"
   451          description: "Your fax number. Must be provided if no phone number or email."
   452        first_name:
   453          type: "string"
   454          description: "Your first name."
   455        address_line_1:
   456          type: "string"
   457          description: "Your street address"
   458        address_line_2:
   459          type: "string"
   460          description: ""
   461        address_city:
   462          type: "string"
   463          description: "Your nearest city"
   464        address_state:
   465          type: "string"
   466          description: "Your current state"
   467        address_postal_code:
   468          type: "string"
   469          description: "Your current postcode"
   470        address_country:
   471          type: "string"
   472          description: "Your current country"
   473        organization_name:
   474          type: "string"
   475          description: "Your organisation name"
   476        custom_2:
   477          type: "string"
   478          description: ""
   479        custom_3:
   480          type: "string"
   481          description: ""
   482        custom_4:
   483          type: "string"
   484          description: ""
   485        last_name:
   486          type: "string"
   487          description: "Your last name"
   488      description: "From Email object."
   489      example:
   490        custom_1: "custom_1"
   491        custom_3: "custom_3"
   492        address_postal_code: "address_postal_code"
   493        custom_2: "custom_2"
   494        address_country: "address_country"
   495        custom_4: "custom_4"
   496        address_state: "address_state"
   497        last_name: "last_name"
   498        organization_name: "organization_name"
   499        fax_number: "fax_number"
   500        address_city: "address_city"
   501        address_line_1: "address_line_1"
   502        phone_number: "phone_number"
   503        address_line_2: "address_line_2"
   504        first_name: "first_name"
   505        email: "email"
   506    Email_from:
   507      required:
   508      - "email_address_id"
   509      properties:
   510        email_address_id:
   511          type: "string"
   512          description: "Email address id of the recipient."
   513        name:
   514          type: "string"
   515          description: "Name of the recipient."
   516      description: "From Email object."
   517      example:
   518        email_address_id: "email_address_id"
   519        name: "name"
   520