WIPACrepo / file_catalog

Store file metadata information in a file catalog
MIT License
1 stars 4 forks source link

Schema Validation: Metadata Validation, MongoDB Indexing, & Other Schema Columns #81

Open ric-evans opened 3 years ago

ric-evans commented 3 years ago
  1. Validation:
    • Input Sanitation: defense against the bots
    • Logical Validation (path_finder.py): Ex: "Does this path already exist in the DB?"
    • Type-Validation: Ex: "is this year an integer?"
  2. Dynamic MongoDB Indexing:
    • Use a lookup-dict that will create/assure mongo indexes on specific fields
  3. Implement/record other schema columns
    • Required Key
    • Read-Only
    • Restricted Value
    • Schema

Ideally, we would have only one lookup-dict (perhaps a yaml) that could serve as the single point of reference for all of the above

Edit: add MongoDB built-in validation note