Skip to content

Commit

Permalink
Require at least one element in LSI if
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Aug 27, 2024
1 parent c6e80fa commit 3ed407e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/update_schemas_manually.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,12 @@
{
"if": {
"type": "object",
"properties": {
"LocalSecondaryIndexes": {
"type": "array",
"minItems": 1,
}
},
"required": ["LocalSecondaryIndexes"],
},
"then": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
"value": [
{
"if": {
"properties": {
"LocalSecondaryIndexes": {
"minItems": 1,
"type": "array"
}
},
"required": [
"LocalSecondaryIndexes"
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"allOf": [
{
"if": {
"properties": {
"LocalSecondaryIndexes": {
"minItems": 1,
"type": "array"
}
},
"required": [
"LocalSecondaryIndexes"
],
Expand Down

0 comments on commit 3ed407e

Please sign in to comment.