entity icon indicating copy to clipboard operation
entity copied to clipboard

Schema: Update to Enforce Non-empty Required String Fields

Open meawong opened this issue 1 month ago • 0 comments

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)

meawong avatar Dec 22 '25 23:12 meawong