{"type": "object", "title": "Generated schema for Root", "$schema": "http://json-schema.org/draft-07/schema#", "required": ["buildingType", "calculationAttribute", "connectionType", "minimumCharge", "slabs"], "x-unique": ["buildingType"], "properties": {"slabs": {"type": "array", "items": {"type": "object", "required": ["from", "to", "charge"], "properties": {"to": {"type": "number"}, "from": {"type": "number"}, "charge": {"type": "number"}, "meterCharge": {"type": "number"}}}}, "buildingType": {"enum": ["RESIDENTIAL", "COMMERCIAL", "MIXED", "PUBLICSECTOR"], "type": "string"}, "minimumCharge": {"type": "number"}, "connectionType": {"enum": ["Metered"], "type": "string", "default": "Metered"}, "calculationAttribute": {"enum": ["Water consumption"], "type": "string", "default": "Water consumption"}}}