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

Generate Client using OpenAPI spec, Update Setup Guide and Quickstart #2

Merged
merged 66 commits into from
Jan 10, 2025

Conversation

lckariyawasam
Copy link
Contributor

@lckariyawasam lckariyawasam commented Dec 20, 2024

Purpose

Initial setup of the connector

Examples

Checklist

  • Linked to an issue
  • Updated the changelog
  • Added tests
  • Updated the spec
  • Checked native-image compatibility

@CLAassistant
Copy link

CLAassistant commented Dec 20, 2024

CLA assistant check
All committers have signed the CLA.

ballerina/Package.md Outdated Show resolved Hide resolved
lckariyawasam and others added 3 commits January 2, 2025 14:45
    The backgroundColor property of 'PublicButtonStyleSettings' schema
    has an incorrect type of 'object' which generates an error during
    payload binding. Changing it to 'string' fixes the issue. The
    sanitation details has been documented.
Co-authored-by: MohamedSabthar <[email protected]>
…tion

The sendOnPublish property of 'PublicEmails' schema is set as required.
However the API response contains emails without this property, leading
to an error. Removing it from the required list fixes the error.
The sanitation details have been documented.
Previously the test case checked whether the length of response
results array was equal to the time span given. However the API returns
results of length 1 if no email is sent during that time, regardless
of the duration of the timespan between starting and ending
timestamps. As a result the test case would fail sometimes and this
fix would prevent it from failing in the above mentioned valid case.
Added testcase for clone endpoint and modified the retrieve endpoint
to check retrieving newly cloned email too.
Previously the last element of the result array returned from the
/emails endpoint was checked to have the id of the email cloned in
the test case above and the second last element was checked to be
the email created in the first testcase. However on certain runs
they are returned out of order, causing the test to fail unnecessarily.
The prefix of /marketing/v3/emails common to all API paths
is added to the base URL path for ease of use. API paths have been
updated accordingly by removing the common prefix. Sanitaiton
documented in docs/spec/sanitations.md
Change property of PublicVersionEmail schema. Sanitation explained
in detail in the sanitation.md.
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
examples/BulkChangeReplyEmail/Ballerina.toml Outdated Show resolved Hide resolved
examples/BulkChangeReplyEmail/main.bal Outdated Show resolved Hide resolved
examples/BulkChangeReplyEmail/main.bal Outdated Show resolved Hide resolved
examples/BulkChangeReplyEmail/main.bal Outdated Show resolved Hide resolved
examples/BulkChangeReplyEmail/main.bal Outdated Show resolved Hide resolved
Copy link
Member

@ThisaruGuruge ThisaruGuruge left a comment

Choose a reason for hiding this comment

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

You need to include a Module.md file as well. Update the Package.md file with the changes suggested, and copy the content to Module.md file.

README.md Outdated Show resolved Hide resolved
ballerina/Package.md Outdated Show resolved Hide resolved
ballerina/Package.md Outdated Show resolved Hide resolved
ballerina/Package.md Outdated Show resolved Hide resolved
ballerina/Package.md Outdated Show resolved Hide resolved
ballerina/tests/test.bal Outdated Show resolved Hide resolved
docs/spec/sanitations.md Outdated Show resolved Hide resolved
examples/bulk_change_reply_email/main.bal Outdated Show resolved Hide resolved
examples/email_stat_logger/main.bal Outdated Show resolved Hide resolved
examples/email_stat_logger/main.bal Show resolved Hide resolved
lckariyawasam and others added 6 commits January 9, 2025 14:36
to correct two missed relative links that hadn't been changed earlier.
Added slight change to the description of step 3 of the quickstart
guide as previously it was not as clear. Copied over the same change
to all three files mentioned.
Add mock tests to test the client without connecting to the Hubspot
server. ballerina/test/mock_service.bal simulates responses for
three endpoints. To run the mock tests `useMockServer` environment
variable must be set to "true" and test must be run with
`bal test --groups mock_tests`
README.md Outdated Show resolved Hide resolved
ballerina/Module.md Outdated Show resolved Hide resolved
ballerina/Module.md Outdated Show resolved Hide resolved
ballerina/Module.md Show resolved Hide resolved
ballerina/Module.md Outdated Show resolved Hide resolved
ballerina/tests/test.bal Outdated Show resolved Hide resolved
ballerina/tests/test.bal Outdated Show resolved Hide resolved
docs/spec/sanitations.md Outdated Show resolved Hide resolved
examples/email_stat_logger/main.bal Outdated Show resolved Hide resolved
examples/email_stat_logger/main.bal Outdated Show resolved Hide resolved
Change the useMockServer to isLiveServer and set the enable to
isLiveServer on test cases that can only run on the live server.
This ensures that by default only the mock tests are executed.
@ThisaruGuruge ThisaruGuruge merged commit 8a11716 into ballerina-platform:main Jan 10, 2025
2 checks passed
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.

4 participants