Skip to content

Commit

Permalink
Merge pull request #7 from mint-metrics/master
Browse files Browse the repository at this point in the history
Sync
  • Loading branch information
allmywant authored Mar 17, 2021
2 parents 8e14774 + 68893c7 commit 875bf9b
Showing 1 changed file with 28 additions and 2 deletions.
30 changes: 28 additions & 2 deletions wave.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
"maximum": 1
}
},
"additionalProperties": false
"additionalProperties": false,
"required": ["name"]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -110,5 +111,30 @@
}
},
"required": ["id", "name", "recipes", "state", "sampleRate", "trigger"],
"additionalProperties": true
"additionalProperties": true,
"oneOf": [{
"properties": {
"recipes": {
"patternProperties": {
"^[a-zA-Z0-9]+$": {
"required": ["sampleRate"]
}
}
}
}
},
{
"properties": {
"recipes": {
"patternProperties": {
"^[a-zA-Z0-9]+$": {
"not": {
"required": ["sampleRate"]
}
}
}
}
}
}
]
}

0 comments on commit 875bf9b

Please sign in to comment.