mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
Some gov-API RdSAP-21.0.1 certs (e.g. 2461-5385-9264-6821-5357, property_id=750232, portfolio 824) omit `built_form` from the response entirely rather than sending a code. `from_dict` hard-fails any dataclass field with no default that's absent from the raw dict, so the whole cert failed to parse. built_form: Optional[int] = None (kw_only, matching the has_fixed_air_conditioning precedent already on this dataclass) — the downstream SAP-cascade consumer (_api_sheltered_sides) already treats a non-int built_form as "no lodging" and falls back to the documented default, so None here is an already-safe degradation, not a new failure mode. Also guards mapper.py's `built_form=str(schema.built_form)` against stringifying None into "None". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| domain | ||
| loaders | ||
| schema | ||
| search | ||
| surveys | ||
| __init__.py | ||
| construction_age_band.py | ||
| efficiency.py | ||
| floor.py | ||
| fuel.py | ||
| heating_controls.py | ||
| hotwater.py | ||
| main_heating.py | ||
| property_type_built_form.py | ||
| roof.py | ||
| walls.py | ||
| windows.py | ||