Skip to content

Commit

Permalink
[low code component schema] validating existing schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
maxi297 committed Dec 12, 2022
1 parent fbadf8f commit 9d39977
Show file tree
Hide file tree
Showing 72 changed files with 135 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,5 @@ streams:
- "*ref(definitions.forms_stream)"

check:
type: CheckStream
stream_names: ["campaigns"]
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ streams:
- "*ref(definitions.goals_stream)"

check:
type: CheckStream
stream_names:
- "features"
- "products"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ streams:
- "*ref(definitions.time_series_monthly_adjusted_stream)"

check:
type: CheckStream
stream_names:
- "time_series_weekly"
- "time_series_weekly_adjusted"
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ streams:
- "*ref(definitions.users_stream)"

check:
type: CheckStream
stream_names:
- "users"
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,6 @@ streams:
- "*ref(definitions.wildfire_locate_stream)"

check:
type: CheckStream
stream_names:
- "pollen_forecast"
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ streams:
- "*ref(definitions.trades_historical_data_stream)"

check:
type: CheckStream
stream_names:
- "ohlcv_historical_data"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "0.1.0"
definitions:
selector:
extractor:
field_pointer: [ ]
field_pointer: []
requester:
url_base: "https://{{ 'api' if not config['api_key'] else 'pro-api' }}.coingecko.com/api/v3/coins/{{ config['coin_id'] }}"
http_method: "GET"
Expand Down Expand Up @@ -57,14 +57,15 @@ definitions:
transformations:
- type: AddFields
fields:
- path: [ "date" ]
- path: ["date"]
value: "{{ stream_slice['start_time'] }}"

streams:
- "*ref(definitions.market_chart_stream)"
- "*ref(definitions.history_stream)"

check:
type: CheckStream
stream_names:
- "market_chart"
- "history"
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,6 @@ streams:
- "*ref(definitions.exchange_stream)"

check:
type: CheckStream
stream_names:
- "categories"
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,6 @@ streams:
- "*ref(definitions.environments_stream)"

check:
type: CheckStream
stream_names:
- "organizations"
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@ streams:
- "*ref(definitions.subscribers_stream)"
- "*ref(definitions.broadcasts_stream)"
check:
type: CheckStream
stream_names: ["forms"]
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,6 @@ streams:
- "*ref(definitions.notifications_stream)"

check:
type: CheckStream
stream_names:
- "locations"
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ streams:
- "*ref(definitions.lists_stream)"

check:
type: CheckStream
stream_names:
- "campaigns"
- "lists"
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ streams:
- "*ref(definitions.subscriptions_stream)"

check:
type: CheckStream
stream_names:
- "billable_metrics"
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ streams:
- "*ref(definitions.top_headlines_stream)"

check:
type: CheckStream
stream_names:
- "search"
- "top_headlines"
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,6 @@ streams:
- "*ref(definitions.answered_scorecards_stream)"

check:
type: CheckStream
stream_names:
- "users"
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,6 @@ streams:
- "*ref(definitions.fonts_stream)"

check:
type: CheckStream
stream_names:
- "fonts"
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@ streams:
- "*ref(definitions.books_stream)"

check:
type: CheckStream
stream_names:
- "books"
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,6 @@ streams:
- "*ref(definitions.targets_stream)"

check:
type: CheckStream
stream_names:
- "issues"
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ definitions:
streams:
- "*ref(definitions.whois_stream)"
check:
type: CheckStream
stream_names:
- "whois"
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ streams:
- "*ref(definitions.tests_stream)"

check:
type: CheckStream
stream_names:
- "organizations"
Original file line number Diff line number Diff line change
Expand Up @@ -110,5 +110,6 @@ streams:
- "*ref(definitions.flags_stream)"

check:
type: CheckStream
stream_names:
- "projects"
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ streams:
- "*ref(definitions.translations_stream)"

check:
type: CheckStream
stream_names:
- "keys"
- "languages"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,5 @@ streams:
- "*ref(definitions.forms_promotion_stream)"

check:
type: CheckStream
stream_names: ["timezones"]
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,6 @@ streams:
- "*ref(definitions.activity_stream)"

check:
type: CheckStream
stream_names:
- "activity"
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,6 @@ streams:
- "*ref(definitions.message_stream)"

check:
type: CheckStream
stream_names:
- "contactslist"
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,6 @@ streams:
- "*ref(definitions.sms_stream)"

check:
type: CheckStream
stream_names:
- "sms"
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ streams:
- "*ref(definitions.executions_stream)"

check:
type: CheckStream
stream_names:
- "executions"
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ streams:
- "*ref(definitions.top_headlines_stream)"

check:
type: CheckStream
stream_names:
- "everything"
- "top_headlines"
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ streams:
- "*ref(definitions.sources_stream)"

check:
type: CheckStream
stream_names:
- "latest"
- "sources"
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ streams:
- "*ref(definitions.most_popular_viewed_stream)"

check:
type: CheckStream
stream_names:
- "archive"
- "most_popular_emailed"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,5 @@ streams:
- "*ref(definitions.products_stream)"

check:
type: CheckStream
stream_names: ["contacts"]
Original file line number Diff line number Diff line change
Expand Up @@ -114,5 +114,6 @@ streams:
- "*ref(definitions.workouts_stream)"

check:
type: CheckStream
stream_names:
- "heart_rate"
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,6 @@ streams:
- "*ref(definitions.transactions_stream)"

check:
type: CheckStream
stream_names:
- "groups"
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@ definitions:
selector:
extractor:
field_pointer: []

requester_stream:
request_parameters:
query: |
{{
config['query']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
orientation: |
{{
config['orientation']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
size: |
{{
config['size']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
locale: |
{{
config['locale']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
color: |
{{
config['color']
if options['name'] == 'photos_search'
else ''
}}
query: |
{{
config['query']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
orientation: |
{{
config['orientation']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
size: |
{{
config['size']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
locale: |
{{
config['locale']
if options['name'] == 'photos_search' or options['name'] == 'videos_search'
else ''
}}
color: |
{{
config['color']
if options['name'] == 'photos_search'
else ''
}}
requester:
url_base: "https://api.pexels.com"
http_method: "GET"
Expand Down Expand Up @@ -131,5 +131,6 @@ streams:
- "*ref(definitions.videos_popular_stream)"

check:
type: CheckStream
stream_names:
- "videos_popular"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "0.1.0"
definitions:
selector:
extractor:
field_pointer: [ "results" ]
field_pointer: ["results"]
record_filter:
condition: "{{ record['bounce_rate'] is not none }}"
requester:
Expand Down Expand Up @@ -44,5 +44,6 @@ streams:
- "*ref(definitions.stats_stream)"

check:
type: CheckStream
stream_names:
- "stats"
- "stats"
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ streams:
- "*ref(definitions.retrieve_stream)"

check:
type: CheckStream
stream_names:
- "retrieve"
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,6 @@ streams:
- "*ref(definitions.stock_api_stream)"

check:
type: CheckStream
stream_names:
- "stock_api"
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,6 @@ streams:
- "*ref(definitions.servers)"

check:
type: CheckStream
stream_names:
- "message-streams"
Original file line number Diff line number Diff line change
Expand Up @@ -537,5 +537,6 @@ streams:
- "*ref(definitions.zones_stream)"

check:
type: CheckStream
stream_names:
- "shops"
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ streams:
- "*ref(definitions.beers_with_id_stream)"

check:
type: CheckStream
stream_names:
- "beers"
- "beers_with_id"
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ streams:
- "*ref(definitions.stats_stream)"

check:
type: CheckStream
stream_names:
- "project"
- "release"
Expand Down
Loading

0 comments on commit 9d39977

Please sign in to comment.