DR
05/23/2024, 1:17 PMError handling request: Validation against json schema defined in declarative_component_schema.yaml schema failed
What is the context of this issue, given that the same request body works as expected in Postman. How can I resolve this?
Request Body
{
"startTime": "2023-04-08",
"endTime": "2023-04-09",
"selector": {
"orderBy": [
{
"field": "campaignId",
"sortOrder": "DESCENDING"
}
]
},
"timeZone": "UTC",
"returnRecordsWithNoMetrics": false,
"returnRowTotals": true,
"returnGrandTotals": true
}kapa.ai
05/23/2024, 1:17 PMJsonSchemaValidator class, which ensures that the JSON data structure matches the expected schema. If the validation fails, it throws an error. This is evident from the error message you provided: Error handling request: Validation against json schema defined in declarative_component_schema.yaml schema failed. The error message suggests that the request body you're trying to pass to the API doesn't match the expected schema defined in the declarative_component_schema.yaml file. You might want to check this file and ensure that your request body matches the expected schema. If you're using the Airbyte CDK (Connector Development Kit), you might find the [Connector Specification Reference](https://docs.airbyte.com/connector-development/connector-specification-reference#using-oneof) and [Advanced Topics](https://docs.airbyte.com/connector-development/config-based/advanced-topics#component-schema-reference) sections of the Airbyte documentation helpful. They provide more information about how to define and use JSON schemas in Airbyte. If the issue persists, you might want to consider opening an issue on the [Airbyte GitHub repository](https://github.com/airbytehq/airbyte/issues). The Airbyte team and community are usually very responsive and might be able to provide more specific guidance.Holger Lange
05/23/2024, 1:18 PM