Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Unstable spec with email metadata schemas #155

Merged

Conversation

steve-henry
Copy link
Contributor

@steve-henry steve-henry commented Jun 11, 2024

Towards https://github.com/intercom/intercom/issues/340037
Adding schemas to Unstable

  • email message metadata
  • email address header

Updated conversation part schema to include email message metadata

    email_address_header:
      title: Email Address Header
      type: object
      description: Contains data for an email address header for a conversation part
        that was sent as an email.
      properties:
        type:
          type: string
          description: The type of email address header
          example: from
        email_address:
          type: string
          description: The email address
          example: [email protected]
        name:
          type: string
          nullable: true
          description: The name associated with the email address
          example: Hoban Washburne
    email_message_metadata:
      title: Email Message Metadata
      type: object
      description: Contains metadata if the message was sent as an email
      properties:
        subject:
          type: string
          description: The subject of the email
          example: Question about my order
        email_address_headers:
          title: Email Address Headers
          type: array
          description: A list of an email address headers.
          items:
            "$ref": "#/components/schemas/email_address_header"

Copy link

@johnnynader johnnynader left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice one 🚢

@steve-henry steve-henry merged commit af10ae4 into main Jun 11, 2024
1 check passed
@steve-henry steve-henry deleted the sch/add-email-message-metadata-to-conv-part-unstable branch June 11, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants