schema: "<http://json-schema.org/draft-07/schema#>...
# ask-ai
h
schema: "http://json-schema.org/draft-07/schema#" indicator_values: type: object additionalProperties: true {"properties":{ "headers": { "type": "array", "items": "type": "object", "properties": "name": { "type": "string" }, "column": { "type": "string" }, "valueType": { "type": "string" }, "type": { "type": "string" }, "hidden": { "type": "boolean" }, "meta": { "type": "boolean" } }, "additionalProperties": true } }, "metaData": { "type": "object", "properties": { "items": { "type": "object", "additionalProperties": { "type": "object", "properties": { "name": { "type": "string" } }, "additionalProperties": true } }, "dimensions": { "type": "object", "properties": { "dx": { "type": "array", "items": { "type": "string" } }, "pe": { "type": "array", "items": { "type": "string" } }, "ou": { "type": "array", "items": { "type": "string" } } }, "additionalProperties": true } }, "additionalProperties": true }, "rows": { "type": "array", "items": { "type": "array", "items": { "type": "string" } } }, "height": { "type": "integer" }, "headerWidth": { "type": "integer" }, "width": { "type": "integer" } } help me to fix this schema
k
Your provided schema has several issues, including indentation, misplaced brackets, and incorrect YAML/JSON structure. Based on Airbyte's schema requirements, here is a corrected JSON Schema for your
indicator_values
object. This schema follows the conventions described in the Airbyte documentation, such as including
$schema
,
type
, and
additionalProperties
fields, and using proper JSON structure for nested objects and arrays. You can adapt this for use in Airbyte's connector development or declared schema configuration.
Copy code
json {   "$schema": "http://json-schema.org/draft-07/schema#",   "type": "object",   "additionalProperties": true,   "properties": {     "headers": {       "type": "array",       "items": {         "type": "object",         "properties": {           "name": { "type": "string" },           "column": { "type": "string" },           "valueType": { "type": "string" },           "type": { "type": "string" },           "hidden": { "type": "boolean" },           "meta": { "type": "boolean" }         },         "additionalProperties": true       }     },     "metaData": {       "type": "object",       "properties": {         "items": {           "type": "object",           "additionalProperties": {             "type": "object",             "properties": {               "name": { "type": "string" }             },             "additionalProperties": true           }         },         "dimensions": {           "type": "object",           "properties": {             "dx": {               "type": "array",               "items": { "type": "string" }             },             "pe": {               "type": "array",               "items": { "type": "string" }             },             "ou": {               "type": "array",               "items": { "type": "string" }             }           },           "additionalProperties": true         }       },       "additionalProperties": true     },     "rows": {       "type": "array",       "items": {         "type": "array",         "items": { "type": "string" }       }     },     "height": { "type": "integer" },     "headerWidth": { "type": "integer" },     "width": { "type": "integer" }   } }
Key points from Airbyte documentation: - Always include
$schema
,
type
, and
additionalProperties
at the top level. - Use
"type": ["null", ...]
if fields can be null (add as needed). - Nested objects and arrays should be defined as shown above. - This schema is suitable for use in Airbyte's declared schema or static schema for CDK connectors [[Schema Reference]](https://docs.airbyte.com/platform/next/connector-development/schema-reference). If you need this in YAML or want to allow nulls for certain fields, let me know!