jaikamat / clubhouse-pos-importer

Monorepo for an LGS's inventory management system
1 stars 0 forks source link

Schema validation roundup #213

Closed jaikamat closed 3 years ago

jaikamat commented 3 years ago

Summary

We finally have full schema validation for our routes' req.query and req.body objects. I've done my best to model these as specifically as possible, especially surrounding the getCardsByFilter controller and interactor, which required some refactoring after we became more confident about the shape and types of data it accepts. There have been major additions to common/types, which may be broken up at a later time.

This also adds a minor refactor to the frontend to align query variables. We should deploy both halves simultaneously after the close of business today to reduce the possibility of conflicts.