Slackbot
07/25/2025, 8:32 AMkapa.ai
07/25/2025, 8:32 AMInlineSchemaLoader schema to a JsonFileSchemaLoader, you need to: 1. Move the schema definition (the object you provided) into a separate JSON file (e.g., bank_transactions_schema.json) in your connector's schemas/ directory. 2. Reference this file in your YAML using the JsonFileSchemaLoader component. Example Steps: ### 1. Create the JSON Schema File Save the following as schemas/bank_transactions_schema.json (adjust the path as needed): json { "type": "object", "additionalProperties": true, "properties": { "Type": { "type": ["null", "string"] }, "Contact": { "$ref": "#/definitions/contacts_schema" }, "LineItems": { "type": ["null", "array"], "items": { "$ref": "#/definitions/line_items_schema" } }, "BankAccount": { "$ref": "#/definitions/accounts_schema" }, "IsReconciled": { "type": ["null", "boolean"] }, "Date": { "type": ["null", "string"], "format": "date-time" }, "DateString": { "type": ["null", "string"], "format": "date-time" }, "Reference": { "type": ["null", "string"] }, "CurrencyCode": { "type": ["null", "string"] }, "CurrencyRate": { "type": ["null", "number"] }, "Url": { "type": ["null", "string"] }, "Status": { "type": ["null", "string"] }, "LineAmountTypes": { "type": ["null", "string"] }, "SubTotal": { "type": ["null", "number"] }, "TotalTax": { "type": ["null", "number"] }, "Total": { "type": ["null", "number"] }, "BankTransactionID": { "type": ["string"] }, "PrepaymentID": { "type": ["null", "string"] }, "OverpaymentID": { "type": ["null", "string"] }, "UpdatedDateUTC": { "type": ["null", "string"], "format": "date-time" }, "HasAttachments": { "type": ["null", "boolean"] }, "ExternalLinkProviderName": { "type": ["null", "string"] } } } ### 2. Reference the JSON File in Your YAML Replace your InlineSchemaLoader with a JsonFileSchemaLoader in your YAML manifest: yaml schema_loader: type: JsonFileSchemaLoader file_path: "schemas/bank_transactions_schema.json" Note: The file_path is relative to the connector module's root directory. Make sure the path matches where you placed your JSON file. This approach is supported and documented in Airbyte's config-based connector development docs for the JsonFileSchemaLoader component [JsonFileSchemaLoader Reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/JsonFileSchemaLoader). If you have definitions (like contacts_schema, line_items_schema, etc.), ensure they are either included in the same JSON file under a definitions key or referenced appropriately according to your connector's schema structure. --- Summary: - Move the schema to a JSON file. - Reference it using JsonFileSchemaLoader in your YAML. For more details, see the official documentation on [JsonFileSchemaLoader](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/JsonFileSchemaLoader).