Skip to content

Commit 0665001

Browse files
committed
fix: properly generate the airbyte_type (#13998)
1 parent df7d84e commit 0665001

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

airbyte-config/config-models/src/main/kotlin/io/airbyte/config/ConfiguredField.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ enum class FieldType(val type: String, val format: String? = null, val airbyteTy
2525
"type" to type,
2626
)
2727
format?.let { result["format"] = it }
28-
airbyteType?.let { result["airbyteType"] = it }
28+
airbyteType?.let { result["airbyte_type"] = it }
2929

3030
return result
3131
}

airbyte-mappers/src/test/kotlin/io/airbyte/mappers/transformations/DestinationCatalogGeneratorTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,22 +563,22 @@ class DestinationCatalogGeneratorTest {
563563
"fieldTimestampWithoutTimezone": {
564564
"type": "string",
565565
"format": "date-time",
566-
"airbyteType": "timestamp_without_timezone"
566+
"airbyte_type": "timestamp_without_timezone"
567567
},
568568
"fieldTimestampWithTimezone": {
569569
"type": "string",
570570
"format": "date-time",
571-
"airbyteType": "timestamp_with_timezone"
571+
"airbyte_type": "timestamp_with_timezone"
572572
},
573573
"fieldTimeWithoutTimezone": {
574574
"type": "string",
575575
"format": "time",
576-
"airbyteType": "time_without_timezone"
576+
"airbyte_type": "time_without_timezone"
577577
},
578578
"fieldTimeWithTimezone": {
579579
"type": "string",
580580
"format": "time",
581-
"airbyteType": "time_with_timezone"
581+
"airbyte_type": "time_with_timezone"
582582
},
583583
"fieldObject": {
584584
"type": "object"

0 commit comments

Comments
 (0)