-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add Dataline types to interface for check connection and discovery workers #79
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
Conversation
@@ -0,0 +1,114 @@ | |||
{ |
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.
yolo. i tried to create a jscon schema configuration for catalog.json to make all the type parsing easier. 🤞 that it's good enough. with the lack of consistency in singer, i'm a big worried, but for now it's helpful.
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.
based off the example on the singer webpage.
|
||
import io.dataline.config.StandardConnectionStatus; | ||
|
||
public interface CheckConnectionWorker extends Worker<StandardConnectionStatus> { |
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.
trying to make it very clear what the contract is for each job type. CheckConnection outputs StandardConnectionStatus
. Discover outputs StandardDiscoveryOutput
. Ideally we'd be able to get the input types (e.g. connection configuration). will look at that subsequently.
} | ||
} | ||
|
||
private static StandardDiscoveryOutput toDiscoveryOutput(SingerCatalog catalog) { |
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.
singer catalog to our schema data model.
What