changedInput schema / properties / method / description
Previous value: -"Split method; default by_size when every room has a size, else equal"New value: +"'equal' (same rent per room) or 'by_size' (proportional to size). Default: by_size when every room has a size, else equal"
changedInput schema / properties / rooms / description
Previous value: -"Rooms in the house"New value: +"Every room that pays rent (room names must be unique), e.g. [{\"name\":\"Master\",\"size\":20,\"occupants\":[\"Asha\",\"Dev\"]}]"
addedInput schema / properties / rooms / items / properties / name / description
Added value: +"Unique room label, e.g. 'Master bedroom'"
addedInput schema / properties / rooms / items / properties / occupants / description
Added value: +"Names of the people in this room; when given, the room's rent is split equally between them"
addedInput schema / properties / rooms / items / properties / size / description
Added value: +"Room area (m2 or ft2, any consistent unit), positive; needed on every room for by_size"
addedInput schema / properties / rooms / minItems
Added value: +1
changedInput schema / properties / total_rent / description
Previous value: -"Monthly rent for the whole house"New value: +"Monthly rent for the whole home, positive number in any currency, e.g. 2400"
addedOutput schema / properties / method
Added value: +{
+ "description": "Split method actually applied",
+ "enum": [
+ "equal",
+ "by_size"
+ ],
+ "type": "string"
+}
addedOutput schema / properties / note
Added value: +{
+ "description": "Plain-language explanation of how the rent was split",
+ "type": "string"
+}
changedOutput schema / properties / rooms / description
Previous value: -"The rooms in the house and their respective shares."New value: +"Per-room rent shares, in input order; they sum to total_rent"
changedOutput schema / properties / rooms / items / properties / name / description
Previous value: -"The name of the room."New value: +"Room label"
removedOutput schema / properties / rooms / items / properties / occupants
Removed value: -{
- "description": "The occupants of the room and their respective shares.",
- "items": {
- "properties": {
- "name": {
- "description": "The name of the occupant.",
- "type": "string"
- },
- "share": {
- "description": "The amount of rent this occupant owes.",
- "type": "number"
- }
- },
- "required": [
- "name",
- "share"
- ],
- "type": "object"
- },
- "type": "array"
-}
addedOutput schema / properties / rooms / items / properties / per_occupant
Added value: +{
+ "description": "Equal split of this room's rent between its occupants (only when occupants were given)",
+ "items": {
+ "properties": {
+ "amount": {
+ "description": "Amount, rounded to cents",
+ "type": "number"
+ },
+ "name": {
+ "description": "Person's name",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name",
+ "amount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+}
addedOutput schema / properties / rooms / items / properties / rent
Added value: +{
+ "description": "Monthly rent for this room",
+ "type": "number"
+}
removedOutput schema / properties / rooms / items / properties / share
Removed value: -{
- "description": "The amount of rent this room owes.",
- "type": "number"
-}
removedOutput schema / properties / rooms / items / properties / size
Removed value: -{
- "description": "The size of the room.",
- "type": "number"
-}
addedOutput schema / properties / rooms / items / properties / weight
Added value: +{
+ "description": "Weight used: room size for by_size, 1 for equal",
+ "type": "number"
+}
changedOutput schema / properties / rooms / items / required
Previous value: -[
- "name",
- "share"
-]New value: +[
+ "name",
+ "weight",
+ "rent"
+]
changedOutput schema / properties / total_rent / description
Previous value: -"The total monthly rent for the whole house."New value: +"Total monthly rent that was split, rounded to cents"
changedOutput schema / required
Previous value: -[
- "total_rent",
- "rooms"
-]New value: +[
+ "method",
+ "total_rent",
+ "rooms",
+ "note"
+]