Skip to content

Commit

Permalink
fix: json schema accepts MAXIMUM_DISCHARGE_PRESSURE for single speed …
Browse files Browse the repository at this point in the history
…train

when PRESSURE_CONTROL is DOWNSTREAM_CHOKE
  • Loading branch information
krisolba1 committed Jun 21, 2023
1 parent 6ce07c4 commit e36e49e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
"PRESSURE_CONTROL": {
"$ref": "#/definitions/PRESSURE_CONTROL"
},
"MAXIMUM_DISCHARGE_PRESSURE": {
"type": "number"
},
"COMPRESSOR_TRAIN": {
"title": "COMPRESSOR_TRAIN",
"description": "Specification of variable speed compressor train model with stages.\n\n$ECALC_DOCS_KEYWORDS_URL/MODELS",
Expand Down Expand Up @@ -78,6 +81,19 @@
"type": "number"
}
},
"if": {
"properties": {
"PRESSURE_CONTROL": {
"const": "DOWNSTREAM_CHOKE"
}
}
},
"then": {
"maxProperties": 9
},
"else": {
"not": {"required": ["MAXIMUM_DISCHARGE_PRESSURE"]}
},
"additionalProperties": false,
"required": [
"NAME",
Expand Down

0 comments on commit e36e49e

Please sign in to comment.