forked from 0xWheatyz/SPARC
Add stricter input validation for company names #1680
Reference in New Issue
Block a user
Delete Branch "feature/1670-company-name-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
CompanyNamevalidated type (2-100 chars, alphanumeric + spaces/hyphens/ampersands/periods)/analyze/{company_name},/analyze/patent/{patent_id},/analyze/batch,/admin/tracked,/export/{company_name},/export/{company_name}/pdfStringConstraintsand FastAPIPath/Queryconstraints, reflected in OpenAPI schemaCloses #1670
Manager Review: Well-implemented. CompanyName validated type with StringConstraints is a good approach. Applied consistently across all endpoints (analyze, export, tracked, patent). DRY pattern with reusable type for request bodies and inline Path/Query constraints for path/query params. 157-line test file provides solid coverage. Ready to merge.