[Enhancement]: JSON Request/Response Validation #910

Open
opened 2026-04-24 23:25:48 +02:00 by adam · 0 comments
Owner

Originally created by @k9withabone on GitHub (Jan 23, 2023).

Describe the feature/enhancement

Now that the API is fully documented, I think some sort of type validation is needed for the requests and responses. JSON deserialization in statically typed languages is significantly more difficult and potentially compute intensive when you have to coerce every single value. Currently, many of the create/update endpoints just blindly save whatever the client sends the server, so some type validation is necessary there. Response validation is not necessarily needed if the database can be periodically scanned and typed checked.

Originally created by @k9withabone on GitHub (Jan 23, 2023). ### Describe the feature/enhancement Now that the API is fully documented, I think some sort of type validation is needed for the requests and responses. JSON deserialization in statically typed languages is significantly more difficult and potentially compute intensive when you have to coerce every single value. Currently, many of the create/update endpoints just blindly save whatever the client sends the server, so some type validation is necessary there. Response validation is not necessarily needed if the database can be periodically scanned and typed checked.
adam added the enhancement label 2026-04-24 23:25:48 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#910