-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f45921
commit 09d3256
Showing
3 changed files
with
95 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
"""JSON Schema for each filesystem configuration.""" | ||
|
||
from __future__ import annotations | ||
|
||
from singer_sdk import typing as th # JSON schema typing helpers | ||
|
||
FTP = th.Property( | ||
"ftp", | ||
th.ObjectType( | ||
th.Property( | ||
"host", | ||
th.StringType, | ||
required=True, | ||
description="FTP server host", | ||
), | ||
th.Property( | ||
"port", | ||
th.IntegerType, | ||
default=21, | ||
description="FTP server port", | ||
), | ||
th.Property( | ||
"username", | ||
th.StringType, | ||
description="FTP username", | ||
), | ||
th.Property( | ||
"password", | ||
th.StringType, | ||
secret=True, | ||
description="FTP password", | ||
), | ||
th.Property( | ||
"encoding", | ||
th.StringType, | ||
default="utf-8", | ||
description="FTP server encoding", | ||
), | ||
), | ||
description="FTP connection settings", | ||
) | ||
|
||
GITHUB = th.Property( | ||
"github", | ||
th.ObjectType( | ||
th.Property( | ||
"org", | ||
th.StringType, | ||
required=True, | ||
description=("GitHub organization or user where the repository is located"), | ||
), | ||
th.Property( | ||
"repo", | ||
th.StringType, | ||
required=True, | ||
description="GitHub repository", | ||
), | ||
th.Property( | ||
"username", | ||
th.StringType, | ||
required=False, | ||
description="GitHub username", | ||
), | ||
th.Property( | ||
"token", | ||
th.StringType, | ||
required=False, | ||
secret=True, | ||
description="GitHub token", | ||
), | ||
), | ||
description="GitHub connection settings", | ||
) | ||
|
||
DROPBOX = th.Property( | ||
"dropbox", | ||
th.ObjectType( | ||
th.Property( | ||
"token", | ||
th.StringType, | ||
secret=True, | ||
required=True, | ||
description="Dropbox token", | ||
), | ||
), | ||
description="Dropbox connection settings", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters