Skip to content

Commit

Permalink
fix: Update delta file schema.
Browse files Browse the repository at this point in the history
- 'data_blob' is no longer a required field on 'delete' operations.
  • Loading branch information
jftuduri committed Jul 28, 2023
1 parent b184c9e commit e8ce3c0
Showing 1 changed file with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,22 @@
"enum": ["insert", "update", "delete"]
}
},
"required": [ "cve_id", "data_blob", "data_hash", "operation"]
"anyOf": [
{
"properties": {
"operation": {
"enum": ["insert", "update"]
}
},
"required": ["cve_id", "data_hash", "operation", "data_blob"]
},
{
"properties": {
"operation": {
"const": "delete"
}
},
"required": ["cve_id", "data_hash", "operation"]
}
]
}

0 comments on commit e8ce3c0

Please sign in to comment.