Add check of backend model serializers vs. frontend types #1080
Labels
feature
New feature or request
help wanted
Extra attention is needed
question
Further information is requested
Terms
Description
A recent discussion was how to make sure that the frontend and backend are aligned as far as what data is being sent and received. A general idea for this is to write backend model serializers and frontend types in a way that they can be compared. By this I mean that we would link and check
serializers.py
files against frontend/types files such that that each would need to have matching classes with the same included arguments/methods (given snake_case to camelCase conversion). The serializers would then be checked by backend processes and the types would be enforced on the frontend, so we should then have dramatically more consistent data transfers.Included in this would also need to be a check to assure that all serializers are included and matched with a given type file so we know that everything is being checked.
Contribution
Happy to discuss and eventually work on this once things are a bit more stable :)
CC @to-sta
The text was updated successfully, but these errors were encountered: