Skip to content

Commit

Permalink
source-oracle-flashback: make sure _meta/source/row_id is required
Browse files Browse the repository at this point in the history
  • Loading branch information
mdibaiee committed Oct 16, 2024
1 parent 8a28634 commit 36b4db5
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 52 deletions.
4 changes: 2 additions & 2 deletions source-oracle-flashback/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ sops:
azure_kv: []
hc_vault: []
age: []
lastmodified: "2024-08-25T06:31:24Z"
mac: ENC[AES256_GCM,data:b1xGx2t6eZ+xRb7hljIhZKQ8aKQgzdY1DUZjwioBMHO0CF6+7GobXeNgDgJQ/i/nPthU7oDpyUJFYJOGhWzNODP5CgEoMJdlGn8/+qFzprzODxXflkH4k4AiVvrrEFphvMIRxt98Z+vHmhhMY40dLch6kfXClxeiBdpF3Jsq1D0=,iv:pTDoakL/hGXDI/k+KcLrVZK070nu51KoDtiB6XBj924=,tag:+IOi6V5b4jqNzcyikzNQUw==,type:str]
lastmodified: "2024-10-16T11:20:22Z"
mac: ENC[AES256_GCM,data:SGN6RYWnIxGbG+SGVYctEbV1er6Rg271Rnd3nLdOSpIffR5AN2CY7IdCGrb6qAkTwIaG0ks2w3pDjgxtnjYLG3KvCEu2ee0yLJc0nZ2ShVfLyunrLpYXaGzORUYj4BMriDrs1fUIuovSDvFqTI1ApSnf7YJuqvXfjj7L0JdJ9Vw=,iv:PVNe9PfQkQOSJ8kAGLtinb/LPafb2ihYxbivZW+x9R4=,tag:DKgrACz46b5DJTLx4L9H/w==,type:str]
pgp: []
encrypted_suffix: _sops
version: 3.8.1
4 changes: 2 additions & 2 deletions source-oracle-flashback/source_oracle_flashback/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,10 @@ class Source(BaseModel):
description="Database System Change Number, available for incremental events"
)

source: Source | None = Field(alias="source")
source: Source = Field(alias="source")

meta_: Meta = Field(
default=Meta(op="u", source=None), alias="_meta", description="Document metadata"
alias="_meta", description="Document metadata"
)

pass
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,7 @@
"type": "string"
},
"source": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
]
"$ref": "#/$defs/Source"
}
},
"required": [
Expand Down Expand Up @@ -80,10 +73,6 @@
"$ref": "#/$defs/Meta"
}
],
"default": {
"op": "u",
"source": null
},
"description": "Document metadata"
},
"ID": {
Expand Down Expand Up @@ -369,6 +358,7 @@
}
},
"required": [
"_meta",
"ID"
],
"title": "TEST_ALL_TYPES",
Expand Down Expand Up @@ -400,14 +390,7 @@
"type": "string"
},
"source": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
]
"$ref": "#/$defs/Source"
}
},
"required": [
Expand Down Expand Up @@ -459,10 +442,6 @@
"$ref": "#/$defs/Meta"
}
],
"default": {
"op": "u",
"source": null
},
"description": "Document metadata"
},
"ID": {
Expand All @@ -485,6 +464,7 @@
}
},
"required": [
"_meta",
"ID"
],
"title": "TEST_CHANGES",
Expand Down Expand Up @@ -516,14 +496,7 @@
"type": "string"
},
"source": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
]
"$ref": "#/$defs/Source"
}
},
"required": [
Expand Down Expand Up @@ -575,10 +548,6 @@
"$ref": "#/$defs/Meta"
}
],
"default": {
"op": "u",
"source": null
},
"description": "Document metadata"
},
"ID": {
Expand All @@ -595,6 +564,9 @@
"title": "Id"
}
},
"required": [
"_meta"
],
"title": "TEST",
"type": "object"
},
Expand Down Expand Up @@ -624,14 +596,7 @@
"type": "string"
},
"source": {
"anyOf": [
{
"$ref": "#/$defs/Source"
},
{
"type": "null"
}
]
"$ref": "#/$defs/Source"
}
},
"required": [
Expand Down Expand Up @@ -683,10 +648,6 @@
"$ref": "#/$defs/Meta"
}
],
"default": {
"op": "u",
"source": null
},
"description": "Document metadata"
},
"ID": {
Expand All @@ -703,6 +664,9 @@
"title": "Id"
}
},
"required": [
"_meta"
],
"title": "TEST_EMPTY",
"type": "object"
},
Expand Down

0 comments on commit 36b4db5

Please sign in to comment.