Page MenuHomePhabricator

Use canonicalizer to display JSON
Closed, ResolvedPublic

Description

The front end displays JSON to the end-user in JSON mode and other places.

This JSON should be in the canonical format to make it a bit easier to read.

Event Timeline

DVrandecic renamed this task from Use the canonicalizer to display the JSON to Use canonicalizer to display JSON.May 13 2021, 8:09 PM
DVrandecic updated the task description. (Show Details)

This task is mostly complete, as I have a canonicalize function in the UI that performs this task. It is not reliant on the function-schemata at this time. I'm unsure whether the two canonicalize functions can be combined, as they handle different use cases (the canonicalizer in the frontend also handles undefined keys, for example, and has no additional validation/error reporting).

Based on our meeting yesterday, and Cory's work on implementing the schemata tests in the UI, I think we can safely say that this task is complete once the tests are in place.