-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[low-code connectors]: Assert there are no custom top-level fields #15489
Changes from 5 commits
849886c
49fc1f2
4bd1745
ae359be
971eada
b6efb0e
526d4ed
9bcfaef
bb9fcb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,44 @@ | ||
schema_loader: | ||
type: JsonSchema | ||
file_path: "./source_{{snakeCase name}}/schemas/\{{ options['name'] }}.json" | ||
selector: | ||
type: RecordSelector | ||
extractor: | ||
type: JelloExtractor | ||
transform: "_" | ||
requester: | ||
type: HttpRequester | ||
name: "\{{ options['name'] }}" | ||
http_method: "GET" | ||
authenticator: | ||
type: BearerAuthenticator | ||
api_token: "\{{ config['api_key'] }}" | ||
retriever: | ||
type: SimpleRetriever | ||
$options: | ||
url_base: TODO "your_api_base_url" | ||
name: "\{{ options['name'] }}" | ||
primary_key: "\{{ options['primary_key'] }}" | ||
record_selector: | ||
$ref: "*ref(selector)" | ||
paginator: | ||
type: NoPagination | ||
customers_stream: | ||
type: DeclarativeStream | ||
$options: | ||
name: "customers" | ||
primary_key: "id" | ||
definitions: | ||
schema_loader: | ||
$ref: "*ref(schema_loader)" | ||
type: JsonSchema | ||
file_path: "./source_{{snakeCase name}}/schemas/\{{ options['name'] }}.json" | ||
selector: | ||
type: RecordSelector | ||
extractor: | ||
type: JelloExtractor | ||
transform: "_" | ||
requester: | ||
type: HttpRequester | ||
name: "\{{ options['name'] }}" | ||
http_method: "GET" | ||
authenticator: | ||
type: BearerAuthenticator | ||
api_token: "\{{ config['api_key'] }}" | ||
retriever: | ||
$ref: "*ref(retriever)" | ||
requester: | ||
$ref: "*ref(requester)" | ||
path: TODO "your_endpoint_path" | ||
type: SimpleRetriever | ||
$options: | ||
url_base: TODO "your_api_base_url" | ||
name: "\{{ options['name'] }}" | ||
primary_key: "\{{ options['primary_key'] }}" | ||
record_selector: | ||
$ref: "*ref(definitions.selector)" | ||
paginator: | ||
type: NoPagination | ||
|
||
streams: | ||
- "*ref(customers_stream)" | ||
- type: DeclarativeStream | ||
$options: | ||
name: "customers" | ||
primary_key: "id" | ||
schema_loader: | ||
$ref: "*ref(definitions.schema_loader)" | ||
retriever: | ||
$ref: "*ref(definitions.retriever)" | ||
requester: | ||
$ref: "*ref(definitions.requester)" | ||
path: TODO "your_endpoint_path" | ||
check: | ||
type: CheckStream | ||
stream_names: ["customers"] | ||
|
||
version: "0.0.0-alpha" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @sherifnada do you have an opinion on what this should be set to? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 0.1.0 and I would not use alpha. Semver already covers it in the 0.x version There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would put this as the first line in the file since it’s more of a “header” |
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.
renamed the file