Commit Graph

6 Commits

Author SHA1 Message Date
Benjamin Dauvergne f2b64b6ebf utils: factorize json schema validation (#86422)
It was already used in two places (views.py and photon connector), and
wrongly (photon connector was ignoring some errors for no reason).

META_SCHEMA manipulation is removed and will be replaced by a
normalization of the schema to remove lazy strings in a later commit.

A new JSONValidationError subclass of APIError is introduced.
2024-02-01 19:00:16 +01:00
Emmanuel Cazenave 9d01872495 unflatten : add an escape character (#70474) 2022-10-19 15:25:19 +02:00
Frédéric Péters d2c0be0396 misc: apply black 22.1.0 2022-03-01 19:43:28 +01:00
Nicolas Roche 06db6d8767 misc: apply isort (#52937) 2021-05-07 13:51:13 +02:00
Frédéric Péters 3d9df1e526 trivial: apply black (#49820) 2021-02-20 16:28:47 +01:00
Benjamin Dauvergne d4d3e59e3d utils: add JSON flattening helpers (#37482)
* flatten/unflatten JSON document
* flatten JSON schema (to help users in producing flattened JSON
  documents, not to validate, validation must be done through
  unflattening then validating using the original JSON schema)
2019-11-19 10:39:53 +01:00