Open tonyxiao opened 7 months ago
Apparently it is located here https://docs.airbyte.com./assets/files/declarative_component_schema-f15b8aaab5a96fa0ceef85db5cab8b74.yaml
But we should add it to the docs and make it WAY more accessible. The default YAML export should contain a $schema: https://docs.airbyte.com./assets/files/declarative_component_schema-f15b8aaab5a96fa0ceef85db5cab8b74.yaml
as well.
This is a link to the most recent version (note that new features might be added over time): https://github.com/airbytehq/airbyte/blob/master/airbyte-cdk/python/airbyte_cdk/sources/declarative/declarative_component_schema.yaml
Still agree with what has been said - we should add the reference to the generated YAML file and also link it in the documentation.
Pinging @airbytehq/connector-extensibility
We already reference the schema and link it in the docs here: https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/reference
@tonyxiao is this what you are looking for?
Ah I see. I missed it. Maybe it should be more visible / available in the overview section?
I'm on board with both suggestions. As a quick fix, we can add a link from the overview to the schema
fyi for yaml i think this is the syntax that works best for vscode.
# yaml-language-server: $schema=https://raw.githubusercontent.com/airbytehq/airbyte/master/airbyte-cdk/python/airbyte_cdk/sources/declarative/declarative_component_schema.json # i think needs to be json as vscode doesn't seem to work with this as `yaml` somehow.
... rest of the yaml
Page URL
https://docs.airbyte.com/connector-development/config-based/understanding-the-yaml-file/yaml-overview
Description
Custom config files implemented in JSON would benefit a lot from having proper JSONSchema. This makes auto-complete and "type checking" work automatically in things like VSCode. Projects such as turbo & openAPI all have them. But Airbyte's low code spec seems to be missing
Examples of other schemas https://turbo.build/schema.json https://json-schema.org/draft/2020-12/schema https://spec.openapis.org/oas/3.1/dialect/base
How they can be used
turbo.json