Skip to content

Commit 172a500

Browse files
author
GitLab CI
committed
Update schemas from CI pipeline [skip ci]
1 parent 87d98c3 commit 172a500

5 files changed

Lines changed: 68 additions & 20 deletions

File tree

hpxml_schematrons/measured_required.sch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nrel.gov/ira">
1+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nlr.gov/ira">
22
<sch:title>IRA HOMES Rebates 50121 Recommended For Modeled</sch:title>
33
<sch:ns uri="http://hpxmlonline.com/2023/09" prefix="h"/>
44
<!-- Insert contents of hescore.sch here -->
@@ -196,7 +196,7 @@
196196
<sch:pattern>
197197
<sch:title>[HeatingSystemType=Furnace|WallFurnace|FloorFurnace|InUnitBoiler]</sch:title>
198198
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType[h:Furnace|h:WallFurnace|h:FloorFurnace|h:Boiler] and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
199-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'wood', or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
199+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
200200
<sch:assert role="ERROR" test="h:AnnualHeatingEfficiency[h:Units=&quot;AFUE&quot;]/h:Value or h:YearInstalled or h:ModelYear">Expected AnnualHeatingEfficiency[Units="AFUE"]/Value, YearInstalled, or ModelYear when FractionHeatLoadServed is not zero</sch:assert>
201201
</sch:rule>
202202
</sch:pattern>
@@ -219,7 +219,7 @@
219219
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType/h:Stove and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
220220
<sch:assert role="ERROR" test="not(h:DistributionSystem)">DistributionSystem not allowed</sch:assert>
221221
<sch:assert role="ERROR" test="h:HeatingSystemFuel">Expected HeatingSystemFuel when FractionHeatLoadServed is not zero</sch:assert>
222-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'wood' or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
222+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
223223
</sch:rule>
224224
</sch:pattern>
225225
<sch:pattern>
@@ -326,7 +326,7 @@
326326
<sch:title>[WaterHeatingSystemType=Tank|Tankless|HeatPump]</sch:title>
327327
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:WaterHeating/h:WaterHeatingSystem[(h:WaterHeaterType=&quot;storage water heater&quot; or h:WaterHeaterType=&quot;dedicated boiler with storage tank&quot; or h:WaterHeaterType=&quot;instantaneous water heater&quot; or h:WaterHeaterType=&quot;heat pump water heater&quot;) and (not(h:FractionDHWLoadServed) or number(h:FractionDHWLoadServed) &gt; 0)]">
328328
<sch:assert role="ERROR" test="h:UniformEnergyFactor | h:EnergyFactor | h:YearInstalled | h:ModelYear">Expected UniformEnergyFactor, EnergyFactor, YearInstalled, or ModelYear when FractionDHWLoadServed is not zero</sch:assert>
329-
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
329+
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'kerosene', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
330330
</sch:rule>
331331
</sch:pattern>
332332
<sch:pattern>
@@ -391,7 +391,7 @@
391391
<sch:pattern>
392392
<sch:title>[ConsumptionInfo]</sch:title>
393393
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
394-
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
394+
<sch:assert role="ERROR" test="h:BPI2400Inputs">Expected BPI2400Inputs</sch:assert>
395395
</sch:rule>
396396
</sch:pattern>
397397
<sch:pattern>

hpxml_schematrons/modeled_recommended.sch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nrel.gov/ira">
1+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nlr.gov/ira">
22
<sch:title>IRA HOMES Rebates 50121 Recommended For Modeled</sch:title>
33
<sch:ns uri="http://hpxmlonline.com/2023/09" prefix="h"/>
44
<!-- Insert contents of hescore.sch here -->
@@ -255,7 +255,7 @@
255255
<sch:pattern>
256256
<sch:title>[HeatingSystemType=Furnace|WallFurnace|FloorFurnace|InUnitBoiler]</sch:title>
257257
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType[h:Furnace|h:WallFurnace|h:FloorFurnace|h:Boiler] and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
258-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'wood', or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
258+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
259259
<sch:assert role="ERROR" test="h:AnnualHeatingEfficiency[h:Units=&quot;AFUE&quot;]/h:Value or h:YearInstalled or h:ModelYear">Expected AnnualHeatingEfficiency[Units="AFUE"]/Value, YearInstalled, or ModelYear when FractionHeatLoadServed is not zero</sch:assert>
260260
</sch:rule>
261261
</sch:pattern>
@@ -278,7 +278,7 @@
278278
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType/h:Stove and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
279279
<sch:assert role="ERROR" test="not(h:DistributionSystem)">DistributionSystem not allowed</sch:assert>
280280
<sch:assert role="ERROR" test="h:HeatingSystemFuel">Expected HeatingSystemFuel when FractionHeatLoadServed is not zero</sch:assert>
281-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'wood' or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
281+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
282282
</sch:rule>
283283
</sch:pattern>
284284
<sch:pattern>
@@ -387,7 +387,7 @@
387387
<sch:title>[WaterHeatingSystemType=Tank|Tankless|HeatPump]</sch:title>
388388
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:WaterHeating/h:WaterHeatingSystem[(h:WaterHeaterType=&quot;storage water heater&quot; or h:WaterHeaterType=&quot;dedicated boiler with storage tank&quot; or h:WaterHeaterType=&quot;instantaneous water heater&quot; or h:WaterHeaterType=&quot;heat pump water heater&quot;) and (not(h:FractionDHWLoadServed) or number(h:FractionDHWLoadServed) &gt; 0)]">
389389
<sch:assert role="ERROR" test="h:UniformEnergyFactor | h:EnergyFactor | h:YearInstalled | h:ModelYear">Expected UniformEnergyFactor, EnergyFactor, YearInstalled, or ModelYear when FractionDHWLoadServed is not zero</sch:assert>
390-
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
390+
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'kerosene', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
391391
</sch:rule>
392392
</sch:pattern>
393393
<sch:pattern>
@@ -452,7 +452,7 @@
452452
<sch:pattern>
453453
<sch:title>[ConsumptionInfo]</sch:title>
454454
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
455-
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
455+
<sch:assert role="ERROR" test="h:BPI2400Inputs">Expected BPI2400Inputs</sch:assert>
456456
</sch:rule>
457457
</sch:pattern>
458458
<sch:pattern ira:remove-measured="true">

hpxml_schematrons/modeled_required.sch

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nrel.gov/ira">
1+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:ira="https://hpxml.nlr.gov/ira">
22
<sch:title>IRA HOMES Rebates 50121 Recommended For Modeled</sch:title>
33
<sch:ns uri="http://hpxmlonline.com/2023/09" prefix="h"/>
44
<!-- Insert contents of hescore.sch here -->
@@ -206,7 +206,7 @@
206206
<sch:pattern>
207207
<sch:title>[HeatingSystemType=Furnace|WallFurnace|FloorFurnace|InUnitBoiler]</sch:title>
208208
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType[h:Furnace|h:WallFurnace|h:FloorFurnace|h:Boiler] and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
209-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'wood', or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
209+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;electricity&quot; or text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'electricity', 'natural gas', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', 'fuel oil 5/6', 'propane', 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
210210
<sch:assert role="ERROR" test="h:AnnualHeatingEfficiency[h:Units=&quot;AFUE&quot;]/h:Value or h:YearInstalled or h:ModelYear">Expected AnnualHeatingEfficiency[Units="AFUE"]/Value, YearInstalled, or ModelYear when FractionHeatLoadServed is not zero</sch:assert>
211211
</sch:rule>
212212
</sch:pattern>
@@ -229,7 +229,7 @@
229229
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:HVAC/h:HVACPlant/h:HeatingSystem[h:HeatingSystemType/h:Stove and (number(h:FractionHeatLoadServed) &gt; 0 or number(h:FloorAreaServed) &gt; 0)]">
230230
<sch:assert role="ERROR" test="not(h:DistributionSystem)">DistributionSystem not allowed</sch:assert>
231231
<sch:assert role="ERROR" test="h:HeatingSystemFuel">Expected HeatingSystemFuel when FractionHeatLoadServed is not zero</sch:assert>
232-
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;wood&quot; or text()=&quot;wood pellets&quot;]">Expected HeatingSystemFuel to be 'wood' or 'wood pellets' when FractionHeatLoadServed is not zero</sch:assert>
232+
<sch:assert role="ERROR" test="h:HeatingSystemFuel[text()=&quot;kerosene&quot; or text()=&quot;wood&quot; or text()=&quot;wood pellets&quot; or text()=&quot;coal&quot; or text()=&quot;anthracite coal&quot; or text()=&quot;bituminous coal&quot; or text()=&quot;coke&quot;]">Expected HeatingSystemFuel to be 'kerosene', 'wood', 'wood pellets', 'coal', 'anthracite coal', 'bituminous coal', or 'coke' when FractionHeatLoadServed is not zero</sch:assert>
233233
</sch:rule>
234234
</sch:pattern>
235235
<sch:pattern>
@@ -336,7 +336,7 @@
336336
<sch:title>[WaterHeatingSystemType=Tank|Tankless|HeatPump]</sch:title>
337337
<sch:rule context="/h:HPXML/h:Building/h:BuildingDetails/h:Systems/h:WaterHeating/h:WaterHeatingSystem[(h:WaterHeaterType=&quot;storage water heater&quot; or h:WaterHeaterType=&quot;dedicated boiler with storage tank&quot; or h:WaterHeaterType=&quot;instantaneous water heater&quot; or h:WaterHeaterType=&quot;heat pump water heater&quot;) and (not(h:FractionDHWLoadServed) or number(h:FractionDHWLoadServed) &gt; 0)]">
338338
<sch:assert role="ERROR" test="h:UniformEnergyFactor | h:EnergyFactor | h:YearInstalled | h:ModelYear">Expected UniformEnergyFactor, EnergyFactor, YearInstalled, or ModelYear when FractionDHWLoadServed is not zero</sch:assert>
339-
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
339+
<sch:assert role="ERROR" test="h:FuelType[text()=&quot;natural gas&quot; or text()=&quot;fuel oil&quot; or text()=&quot;fuel oil 1&quot; or text()=&quot;fuel oil 2&quot; or text()=&quot;fuel oil 4&quot; or text()=&quot;fuel oil 5/6&quot; or text()=&quot;propane&quot; or text()=&quot;kerosene&quot; or text()=&quot;electricity&quot;]">Expected FuelType to be one of 'natural gas', 'electricity', 'propane', 'kerosene', 'fuel oil', 'fuel oil 1', 'fuel oil 2', 'fuel oil 4', or 'fuel oil 5/6' when FractionDHWLoadServed is not zero</sch:assert>
340340
</sch:rule>
341341
</sch:pattern>
342342
<sch:pattern>
@@ -401,7 +401,7 @@
401401
<sch:pattern>
402402
<sch:title>[ConsumptionInfo]</sch:title>
403403
<sch:rule context="/h:HPXML/h:Consumption/h:ConsumptionDetails/h:ConsumptionInfo">
404-
<sch:assert role="ERROR" test="h:BPI2400Inputs"/>
404+
<sch:assert role="ERROR" test="h:BPI2400Inputs">Expected BPI2400Inputs</sch:assert>
405405
</sch:rule>
406406
</sch:pattern>
407407
<sch:pattern ira:remove-measured="true">

json_schemas/homesBulkReportingPayload.schema.json

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"address_id": {
1111
"$ref": "/schemas/definitions#address_id"
1212
},
13+
"aggregator_company_name": {
14+
"$ref": "/schemas/definitions#aggregator_company_name"
15+
},
16+
"aggregator_id": {
17+
"$ref": "/schemas/definitions#aggregator_id"
18+
},
1319
"applicant_id": {
1420
"$ref": "/schemas/definitions#applicant_id"
1521
},
@@ -191,11 +197,25 @@
191197
},
192198
"else": {
193199
"not": {
194-
"required": [
195-
"portfolio_id"
200+
"anyOf": [
201+
{
202+
"required": [
203+
"portfolio_id"
204+
]
205+
},
206+
{
207+
"required": [
208+
"aggregator_id"
209+
]
210+
},
211+
{
212+
"required": [
213+
"aggregator_company_name"
214+
]
215+
}
196216
]
197217
},
198-
"error_msg": "'portfolio_id' must not be provided when 'claimant_type' is not 'AGGREGATOR'."
218+
"error_msg": "None of 'portfolio_id', 'aggregator_id', and 'aggregator_company_name' are allowed when 'claimant_type' is not 'AGGREGATOR'."
199219
}
200220
},
201221
{

0 commit comments

Comments
 (0)