Repository navigation
Closed
6 / 66 of 6 issues completedClosed
6 / 66 of 6 issues completed
Copy link
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
Description
Background:
Our JSON schemas currently allow empty strings ("") for required string fields. This causes invalid or incomplete data to be submitted without being caught by schema validation.
Add a pattern validation to all required string fields across schemas to ensure each required field contains at least one non-whitespace character.
Ex.
{
"type": "object",
"properties": {
"fieldName": {
"type": "string",
"pattern": "^\S.*$" }
},
"required": ["fieldName"]
}
| Schema | Required / Conditionally Required String Fields | Notes / Observations |
|---|---|---|
| address | streetAddress, addressCity, addressCountry | Top-level address fields |
| agm_extension | agmExtension → year | Single-year field |
| agm_location_change | agmLocationChange → year, reason, agmLocation | All fields required |
| amalgamation_application | amalgamationApplication → amalgamatingBusiness → identifier, legalName | Nested inside amalgamatingBusiness |
| amalgamation_out | amalgamationOut → details, legalName | |
| business_document | entityAct, entityDescription, registrarInfo → name | Nested registrarInfo object |
| comment | comment → comment → comment | Required string inside comment object |
| contact_point | contactPoint → email | Required email field |
| continuation_in | continuationIn → foreignJurisdiction → identifier, legalName; continuationIn → authorization → files → fileKey, filename | Multiple nested arrays/objects |
| continuation_out | continuationOut → legalName | |
| cooperative | rulesFileKey, memorandumFileKey | Top-level fields |
| correction | correction → comment → comment | Required string inside correction object |
| diff | diff → items → path | Nested array items |
| directors | person → firstName, lastName | Nested person object |
| filing | filing_header → certifiedBy | |
| foreignJurisdiction | country | Required string |
| name_translations | name | Already has pattern but whitespace-only not prevented |
| party | parties → officer → lastName, organizationName | Nested arrays/objects |
| registrars_notation | registrarsNotation → orderDetails | minLength=1 currently; needs pattern |
| registrars_order | registrarsOrder → orderDetails | minLength=1 currently; needs pattern |
| share_structure | shareClasses → shareClass → name, series → shareSeries → name | Deeply nested array objects |
| transparency_register | transparencyRegister → ledgerReferenceNumber | Required top-level string |
| unmanaged | unmanaged → displayName | Top-level string |
Summary
- Schemas affected: 22
- Fields affected: 36 required or conditionally required string fields
Please also clean-up the legal-api validation to remove any deprecated code after the schema changes are made.
Sub-issues
Collapse Sub-issuesSub-issues
Loading 6 sub-issues
Metadata
Metadata
Labels
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end features
Activity
mruff-aeq commentedon Jun 30, 2026
@gunanagar @rsagpariya , what you need to do to test the UI wont cause issue
A. Create UI - business-create-ui
B. Edit UI - business-edit-ui
C. Filings UI (staff/maintenance) - business-filings-ui
D. Dashboard / other
gunanagar commentedon Jun 30, 2026
#34030 - registrars_order
#34029 - registrars_notation
#33966 - Continutation In
gunanagar commentedon Jul 3, 2026
Tested looks good.