Skip to content

Validate record id at API level

Yannick requested to merge record_id_regex_crud_v3 into master
  • All CRUD v3 {record_id} parameter validated using RegEx from its associated schema (was only 'str' before), check by FastAPI/Pyndatic.
  • Returns 422 error code if the record id doesn't match the regex.
  • Regex unified API spec & models
  • Unit tests update to test all changed API in both success case and invalid record id case. (replacing some obsolete ones)
Edited by Yannick

Merge request reports