Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ Binding 0:
"allOf": [
{
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ Binding 0:
"allOf": [
{
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down Expand Up @@ -141,8 +147,14 @@ Binding 1:
"allOf": [
{
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down Expand Up @@ -262,8 +274,14 @@ Binding 2:
"allOf": [
{
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ Binding 0:
"allOf": [
{
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
2 changes: 2 additions & 0 deletions source-dynamodb/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,11 @@ func (driver) Discover(ctx context.Context, req *pc.Request_Discover) (*pc.Respo
},
Required: []string{"_meta"},
If: &jsonschema.Schema{
Required: []string{"_meta"},
Extras: map[string]interface{}{
"properties": map[string]*jsonschema.Schema{
"_meta": {
Required: []string{"op"},
Extras: map[string]interface{}{
"properties": map[string]*jsonschema.Schema{
"op": {
Expand Down
2 changes: 2 additions & 0 deletions source-kafka/src/discover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ fn topic_schema_to_collection_spec(
let doc_schema_json = json!({
"x-infer-schema": true,
"if": {
"required": ["_meta"],
"properties": {
"_meta": {
"required": ["op"],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ expression: snap
{
"type": "object",
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
50 changes: 40 additions & 10 deletions source-kafka/tests/snapshots/test__discover.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ expression: snap
"op": {
"const": "d"
}
}
},
"required": [
"op"
]
}
}
},
"required": [
"_meta"
]
},
"properties": {
"_meta": {
Expand Down Expand Up @@ -97,9 +103,15 @@ expression: snap
"op": {
"const": "d"
}
}
},
"required": [
"op"
]
}
}
},
"required": [
"_meta"
]
},
"properties": {
"_meta": {
Expand Down Expand Up @@ -167,9 +179,15 @@ expression: snap
"op": {
"const": "d"
}
}
},
"required": [
"op"
]
}
}
},
"required": [
"_meta"
]
},
"properties": {
"_meta": {
Expand Down Expand Up @@ -254,9 +272,15 @@ expression: snap
"op": {
"const": "d"
}
}
},
"required": [
"op"
]
}
}
},
"required": [
"_meta"
]
},
"properties": {
"_meta": {
Expand Down Expand Up @@ -327,9 +351,15 @@ expression: snap
"op": {
"const": "d"
}
}
},
"required": [
"op"
]
}
}
},
"required": [
"_meta"
]
},
"properties": {
"_meta": {
Expand Down
12 changes: 12 additions & 0 deletions source-mongodb/.snapshots/TestDiscover
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ Binding 0:
},
"document_schema_json": {
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down Expand Up @@ -95,8 +101,14 @@ Binding 1:
},
"document_schema_json": {
"if": {
"required": [
"_meta"
],
"properties": {
"_meta": {
"required": [
"op"
],
"properties": {
"op": {
"const": "d"
Expand Down
Loading
Loading