Commit 1486af7
authored
Allow org.apache names in Connect JSON schema (#123)
connectjson.Decoder deliberately panics if it encounters a schema
element whose name begins with org.apache. Remove that behavior so
org.apache names are allowed.
(The panic is left over from development of the connectjson package,
when it wasn't clear whether to interpret values according to schema
element names during decoding. For example, a value whose corresponding
schema element has type int64 and name
org.apache.kafka.connect.data.Timestamp could be interpreted either as a
simple int64 or, per the name, as a time in milliseconds since the Unix
epoch. The connectjson package takes the former approach, mostly
because the current decoding process offers no easy way to perform the
necessary scaling.)1 parent ad5baae commit 1486af7
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
229 | 228 | | |
230 | 229 | | |
231 | 230 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | 231 | | |
236 | 232 | | |
237 | 233 | | |
| |||
0 commit comments