-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 some connectors to use YAML specs #12230
Conversation
/test connector=connectors/source-stripe
|
/test connector=connectors/source-salesforce
|
/test connector=connectors/source-hubspot
|
/test connector=connectors/source-google-sheets
|
/test connector=connectors/source-exchange-rates
|
/test connector=connectors/source-hubspot
|
@@ -19,7 +19,7 @@ | |||
author_email="[email protected]", | |||
packages=find_packages(), | |||
install_requires=MAIN_REQUIREMENTS, | |||
package_data={"": ["*.json", "schemas/*.json", "schemas/shared/*.json"]}, | |||
package_data={"": ["*.json", "*.yaml", "schemas/*.json", "schemas/shared/*.json"]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: not adding *.yaml here weirdly didn't seem to cause any issues 🤔
@@ -0,0 +1,47 @@ | |||
documentationUrl: https://docs.airbyte.io/integrations/sources/stripe | |||
connectionSpecification: | |||
$schema: http://json-schema.org/draft-07/schema# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels a little odd to be doing this in a yaml file, but I think it's still right?
type: string | ||
title: Credentials Title | ||
description: Name of the credentials set | ||
const: OAuth Credentials |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is slightly different than the spec.json
counterpart: previously default
and enum
were defined, but it looks like that's not necessary anymore and was causing test failures.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup! Thanks for the change
@@ -6,7 +6,7 @@ | |||
from setuptools import find_packages, setup | |||
|
|||
MAIN_REQUIREMENTS = [ | |||
"airbyte-cdk~=0.1.49", | |||
"airbyte-cdk~=0.1.55", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just pointing out that I noticed only hubspot has a patch version in the requirements. Others either don't have a version at all, or are set to ~=0.1
/publish connector=connectors/source-stripe
|
/publish connector=connectors/source-salesforce
|
Codecov Report
@@ Coverage Diff @@
## master #12230 +/- ##
=========================================
Coverage ? 82.93%
=========================================
Files ? 21
Lines ? 1904
Branches ? 0
=========================================
Hits ? 1579
Misses ? 325
Partials ? 0 Continue to review full report at Codecov.
|
/publish connector=connectors/source-hubspot
|
/publish connector=connectors/source-google-sheets auto-bump-version=false
|
/publish connector=connectors/source-exchange-rates auto-bump-version=false
|
* salesforce uses spec.yaml * stripe uses spec.yaml * revert unintended changes * bump stripe version * add yaml files to package_data * hubspot uses a spec.yaml * use double quotes in yaml files * google sheets uses spec.yaml * exhcange-rates uses spec.yaml * remove usage of default and enum in spec * bump hubspot cdk requirement * auto-bump connector version * auto-bump connector version * manually bump versions Co-authored-by: Octavia Squidington III <[email protected]>
What
#11668 introduced yaml spec support, now let's actually use it!
How
Update 5 connectors to use a
spec.yaml
:I basically ran the old
spec.json
files through https://codebeautify.org/json-to-yaml and made minor tweaks (mainly change single quotes to double quotes)Also updated some references to the old files and bumped connector versions.
Doc updates coming soon w/ references to new
spec.yaml
files.