MycroftAI / selene-backend

Microservices and web apps to support Mycroft devices
GNU Affero General Public License v3.0
144 stars 53 forks source link

Simplify request validation in the account API's device endpoint #269

Closed chrisveilleux closed 3 years ago

chrisveilleux commented 3 years ago

Description

Found a feature of the schematics library that allowed simplification of the logic that converts the API request into the schematic for validation. More specifically, the TypeScript names coming from Angular (mixed case) can be easily converted into snake case for Python.

How to test

This is a refactor. The device edit functionality should work the same.

Contributor license agreement signed?

CLA [Y]