nasa / fprime-gds

F´ Python Ground Data System (GDS).
https://github.com/nasa/fprime
Apache License 2.0
18 stars 37 forks source link

Update Flask JSON interfaces #145

Closed thomas-bc closed 1 year ago

thomas-bc commented 1 year ago
Originating Project/Creator
Affected Component
Affected Architectures(s) Flask JSON
Related Issue(s) https://github.com/nasa/fprime/issues/2077
Has Unit Tests (y/n)
Builds Without Errors (y/n)
Unit Tests Pass (y/n)
Documentation Included (y/n)

Change Description

Updates Flask JSON interfaces to the newer pattern.

Rationale

Flask deprecated and removed the older way of doing things. See https://github.com/nasa/fprime/issues/2077

From Flask release notes:

Setting custom json_encoder and json_decoder classes on the app or a blueprint, and the corresponding json.JSONEncoder and JSONDecoder classes, are deprecated. JSON behavior can now be overridden using the app.json provider interface. https://github.com/pallets/flask/pull/4692

thomas-bc commented 1 year ago

Would allow to resolve the Dependabot alert on a Flask vulnerability: https://github.com/nasa/fprime/security/dependabot/11