You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: airbyte_cdk/sources/declarative/declarative_component_schema.yaml
+22-80
Original file line number
Diff line number
Diff line change
@@ -1549,7 +1549,6 @@ definitions:
1549
1549
anyOf:
1550
1550
- "$ref": "#/definitions/JsonDecoder"
1551
1551
- "$ref": "#/definitions/XmlDecoder"
1552
-
- "$ref": "#/definitions/CompositeRawDecoder"
1553
1552
$parameters:
1554
1553
type: object
1555
1554
additionalProperties: true
@@ -2133,43 +2132,26 @@ definitions:
2133
2132
$parameters:
2134
2133
type: object
2135
2134
additionalProperties: true
2136
-
GzipJsonDecoder:
2137
-
title: GzipJson Decoder
2138
-
description: Use this if the response is Gzip compressed Json.
2139
-
type: object
2140
-
additionalProperties: true
2141
-
required:
2142
-
- type
2143
-
properties:
2144
-
type:
2145
-
type: string
2146
-
enum: [GzipJsonDecoder]
2147
-
encoding:
2148
-
type: string
2149
-
default: utf-8
2150
-
$parameters:
2151
-
type: object
2152
-
additionalProperties: true
2153
2135
ZipfileDecoder:
2154
2136
title: Zipfile Decoder
2155
2137
description: Decoder for response data that is returned as zipfile(s).
2156
2138
type: object
2157
2139
additionalProperties: true
2158
2140
required:
2159
2141
- type
2160
-
- parser
2142
+
- decoder
2161
2143
properties:
2162
2144
type:
2163
2145
type: string
2164
2146
enum: [ZipfileDecoder]
2165
-
parser:
2147
+
decoder:
2166
2148
title: Parser
2167
2149
description: Parser to parse the decompressed data from the zipfile(s).
2168
2150
anyOf:
2169
-
- "$ref": "#/definitions/GzipParser"
2170
-
- "$ref": "#/definitions/JsonParser"
2171
-
- "$ref": "#/definitions/JsonLineParser"
2172
-
- "$ref": "#/definitions/CsvParser"
2151
+
- "$ref": "#/definitions/CsvDecoder"
2152
+
- "$ref": "#/definitions/GzipDecoder"
2153
+
- "$ref": "#/definitions/JsonDecoder"
2154
+
- "$ref": "#/definitions/JsonlDecoder"
2173
2155
ListPartitionRouter:
2174
2156
title: List Partition Router
2175
2157
description: A Partition router that specifies a list of attributes where each attribute describes a portion of the complete data set for a stream. During a sync, each value is iterated over and can be used as input to outbound API requests.
@@ -3002,79 +2984,39 @@ definitions:
3002
2984
description: Component decoding the response so records can be extracted.
3003
2985
anyOf:
3004
2986
- "$ref": "#/definitions/CustomDecoder"
2987
+
- "$ref": "#/definitions/CsvDecoder"
2988
+
- "$ref": "#/definitions/GzipDecoder"
3005
2989
- "$ref": "#/definitions/JsonDecoder"
3006
2990
- "$ref": "#/definitions/JsonlDecoder"
3007
2991
- "$ref": "#/definitions/IterableDecoder"
3008
2992
- "$ref": "#/definitions/XmlDecoder"
3009
-
- "$ref": "#/definitions/GzipJsonDecoder"
3010
-
- "$ref": "#/definitions/CompositeRawDecoder"
3011
2993
- "$ref": "#/definitions/ZipfileDecoder"
3012
2994
$parameters:
3013
2995
type: object
3014
2996
additionalProperties: true
3015
-
CompositeRawDecoder:
3016
-
description: "(This is experimental, use at your own risk)"
3017
-
type: object
3018
-
required:
3019
-
- type
3020
-
- parser
3021
-
properties:
3022
-
type:
3023
-
type: string
3024
-
enum: [CompositeRawDecoder]
3025
-
parser:
3026
-
anyOf:
3027
-
- "$ref": "#/definitions/GzipParser"
3028
-
- "$ref": "#/definitions/JsonParser"
3029
-
- "$ref": "#/definitions/JsonLineParser"
3030
-
- "$ref": "#/definitions/CsvParser"
3031
-
# PARSERS
3032
-
GzipParser:
2997
+
GzipDecoder:
3033
2998
type: object
3034
2999
required:
3035
3000
- type
3036
-
- inner_parser
3001
+
- decoder
3037
3002
properties:
3038
3003
type:
3039
3004
type: string
3040
-
enum: [GzipParser]
3041
-
inner_parser:
3005
+
enum: [GzipDecoder]
3006
+
decoder:
3042
3007
anyOf:
3043
-
- "$ref": "#/definitions/JsonLineParser"
3044
-
- "$ref": "#/definitions/CsvParser"
3045
-
- "$ref": "#/definitions/JsonParser"
3046
-
JsonParser:
3047
-
title: JsonParser
3048
-
description: Parser used for parsing str, bytes, or bytearray data and returning data in a dictionary format.
3049
-
type: object
3050
-
required:
3051
-
- type
3052
-
properties:
3053
-
type:
3054
-
type: string
3055
-
enum: [JsonParser]
3056
-
encoding:
3057
-
type: string
3058
-
default: utf-8
3059
-
JsonLineParser:
3060
-
type: object
3061
-
required:
3062
-
- type
3063
-
properties:
3064
-
type:
3065
-
type: string
3066
-
enum: [JsonLineParser]
3067
-
encoding:
3068
-
type: string
3069
-
default: utf-8
3070
-
CsvParser:
3008
+
- "$ref": "#/definitions/CsvDecoder"
3009
+
- "$ref": "#/definitions/GzipDecoder"
3010
+
- "$ref": "#/definitions/JsonDecoder"
3011
+
- "$ref": "#/definitions/JsonlDecoder"
3012
+
CsvDecoder:
3071
3013
type: object
3072
3014
required:
3073
3015
- type
3074
3016
properties:
3075
3017
type:
3076
3018
type: string
3077
-
enum: [CsvParser]
3019
+
enum: [CsvDecoder]
3078
3020
encoding:
3079
3021
type: string
3080
3022
default: utf-8
@@ -3202,24 +3144,24 @@ definitions:
3202
3144
description: Component decoding the response so records can be extracted.
3203
3145
anyOf:
3204
3146
- "$ref": "#/definitions/CustomDecoder"
3147
+
- "$ref": "#/definitions/CsvDecoder"
3148
+
- "$ref": "#/definitions/GzipDecoder"
3205
3149
- "$ref": "#/definitions/JsonDecoder"
3206
3150
- "$ref": "#/definitions/JsonlDecoder"
3207
3151
- "$ref": "#/definitions/IterableDecoder"
3208
3152
- "$ref": "#/definitions/XmlDecoder"
3209
-
- "$ref": "#/definitions/GzipJsonDecoder"
3210
-
- "$ref": "#/definitions/CompositeRawDecoder"
3211
3153
- "$ref": "#/definitions/ZipfileDecoder"
3212
3154
download_decoder:
3213
3155
title: Download Decoder
3214
3156
description: Component decoding the download response so records can be extracted.
Decoder strategy that returns the json-encoded content of a response, if any.
22
+
23
+
Usually, we would try to instantiate the equivalent `CompositeRawDecoder(parser=JsonParser(), stream_response=False)` but there were specific historical behaviors related to the JsonDecoder that we didn't know if we could remove like the fallback on {} in case of errors.
0 commit comments