entity
entity copied to clipboard
Schema: Update to Enforce Non-empty Required String Fields
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.
Proposal: 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"] }
Note: Need to check with data migration to see if there is any impact (ex. delivery/mailing address required fields)