prakhar_srivastava
10/11/2023, 8:07 AMel
process the schema message omits this default property, while the default property is there when I just access stream object locally. can someone point me to the direction where this could happen?prakhar_srivastava
10/11/2023, 9:26 AM{
"type": "SCHEMA",
"stream": "users",
"schema": {
"properties": {
"self": {
"type": [
"string",
"null"
]
},
"accountId": {
"type": [
"string",
"null"
]
},
"accountType": {
"type": [
"string",
"null"
]
},
"emailAddress": {
"type": [
"string",
"null"
]
},
"avatarUrls": {
"properties": {
"48x48": {
"type": [
"string",
"null"
]
},
"24x24": {
"type": [
"string",
"null"
]
},
"16x16": {
"type": [
"string",
"null"
]
},
"32x32": {
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"displayName": {
"type": [
"string",
"null"
]
},
"active": {
"type": [
"boolean",
"null"
]
},
"timeZone": {
"type": [
"string",
"null"
]
},
"locale": {
"type": [
"string",
"null"
]
}
},
"type": "object",
"required": [
"avatarUrls"
]
},
"key_properties": [
"accountId"
],
"bookmark_properties": [
"accountId"
]
}
prakhar_srivastava
10/11/2023, 9:27 AMschema = PropertiesList(
Property("self", StringType),
Property("accountId", StringType),
Property("accountType", StringType),
Property("emailAddress", StringType),
Property(
"avatarUrls",
ObjectType(
Property("48x48", StringType),
Property("24x24", StringType),
Property("16x16", StringType),
Property("32x32", StringType),
),
default={},
required=True
),
Property("displayName", StringType),
Property("active", BooleanType),
Property("timeZone", StringType),
Property("locale", StringType),
).to_dict()
prakhar_srivastava
10/11/2023, 9:27 AMprakhar_srivastava
10/11/2023, 9:28 AMprakhar_srivastava
10/11/2023, 9:28 AMprakhar_srivastava
10/11/2023, 9:29 AMvisch
10/11/2023, 10:47 AMprakhar_srivastava
10/11/2023, 10:48 AMprakhar_srivastava
10/11/2023, 10:49 AMprakhar_srivastava
10/11/2023, 10:49 AMprakhar_srivastava
10/11/2023, 10:50 AMvisch
10/11/2023, 10:51 AMvisch
10/11/2023, 10:52 AMprakhar_srivastava
10/11/2023, 10:52 AMprakhar_srivastava
10/11/2023, 10:53 AMvisch
10/11/2023, 10:53 AMvisch
10/11/2023, 10:54 AMprakhar_srivastava
10/11/2023, 10:58 AMprakhar_srivastava
10/11/2023, 10:59 AMprakhar_srivastava
10/11/2023, 11:00 AMprakhar_srivastava
10/11/2023, 11:00 AMprakhar_srivastava
10/11/2023, 11:03 AMedgar_ramirez_mondragon
10/11/2023, 1:14 PMdefault
to the props list and dataclass here https://github.com/meltano/sdk/blob/8ecbfb695c72a1375061e919f0d3d24147f11dd2/singer_sdk/_singerlib/schema.py#L12prakhar_srivastava
10/11/2023, 1:18 PMprakhar_srivastava
10/11/2023, 1:19 PMprakhar_srivastava
10/11/2023, 1:19 PMprakhar_srivastava
10/11/2023, 1:22 PMprakhar_srivastava
10/11/2023, 1:25 PMprakhar_srivastava
10/11/2023, 1:28 PMprakhar_srivastava
10/11/2023, 1:34 PMedgar_ramirez_mondragon
10/11/2023, 8:51 PM