Page MenuHomePhabricator

Validate main config against JSON Schema
Open, MediumPublic

Description

MediaUploader validates campaign configs, but these are merged with the main config before being sent to the client. Thus, we cannot really guarantee their validity. We should also somehow validate parts of the main config that are described in the campaign JSON Schema.

TODO: check how feasible it is. If it's really hard, move it out of the MVP.

Event Timeline

Ostrzyciel triaged this task as Medium priority.Feb 23 2022, 8:35 PM

It would be a huge headache. Though I agree with my past self that it would be a very good feature, the JSON Schema is currently oriented towards checking campaign configs specifically. It would be different for the main config AND for the merged campaign + main config.

That is something to figure out later.