You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Tech-debt] Move director mailingAddress validation from legal-api to schema (directors.json) #34022
Tech-debt cleanup. Director mailingAddress presence is currently validated in legal-api Python code and only for corporate entity types. Move this enforcement to the schema level (business-schemas/directors.json) so it applies to all entity types and validation lives in one place.
Background
Schema (business-schemas → src/registry_schemas/schemas/directors.json): the director definition lists mailingAddress as a property but it is not in the required array (only officer, deliveryAddress, appointmentDate, cessationDate are). So the schema accepts a director with no mailing address.
legal-api (lear → legal-api/src/legal_api/services/filings/validations/change_of_directors.py, validate_directors_addresses): a missing mailingAddress object is only rejected when business.legal_type in Business.CORPS.
Net effect: non-corporate entities can omit mailingAddress entirely and pass backend validation, even though the frontend requires it for everyone.
This is a consistency gap, not a live bug — no rush.
Proposed change
Add "mailingAddress" to the required array in directors.json (business-schemas).
Remove the now-redundant CORPS-only mailingAddress object check from change_of_directors.py (lear).
Bump the registry_schemas version + tag, and refresh the legal-api pin to pick up the new schema.
Notes
Keep the mailingAddressfield-level checks (streetAddress/addressCity/addressCountry) consistent — those are already covered by the address schema's required + non-empty pattern.
changed the title [-]Move director mailingAddress validation from legal-api to schema (directors.json)[/-][+][Tech-debt] Move director mailingAddress validation from legal-api to schema (directors.json)[/+]on Jun 30, 2026
Closing — tech-debt cleanup blocked. Can't move mailingAddress to schema (shared director def, no legalType to scope by; would reject existing coop directors). Not worth pursuing for minimal tech debt clean up
Activity
[-]Move director mailingAddress validation from legal-api to schema (directors.json)[/-][+][Tech-debt] Move director mailingAddress validation from legal-api to schema (directors.json)[/+]mruff-aeq commentedon Jul 9, 2026
Closing — tech-debt cleanup blocked. Can't move mailingAddress to schema (shared director def, no legalType to scope by; would reject existing coop directors). Not worth pursuing for minimal tech debt clean up