msoe-dise-project / ringling

A service to track model training parameters, trained models, and model tests
Apache License 2.0
0 stars 0 forks source link

Convert return types to objects #19

Closed rnowling closed 1 year ago

rnowling commented 1 year ago

Currently, JSON responses are constructed as plain Python data structures. As a result, field names are hard-coded for every response. This can lead to differences in keys between responses and between responses and requests.

Instead, the application should create instances of the classes defined in schemas and rely on marshmallow's dump capability to generate the JSON.