18487: Improves vocabulary error checking, with tests.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 18 Jan 2022 14:29:49 +0000 (11:29 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 18 Jan 2022 20:23:39 +0000 (17:23 -0300)
commitaf44b96bc1f843c1b7878049e161602fef839d1d
tree6754797941958d7f54696d3935c4c41ce89173c6
parentadee1c1a7902de81df8cfd5064c3fa9f377faa47
18487: Improves vocabulary error checking, with tests.

* Adds JSON duplicated keys checking (json.Unmarshall silently accepts them).
* Adds line & column numbers to JSON syntax errors.
* Reports all detected non-syntax errors at once instead of returning on the
first one. (so that the site admin doesn't have to do multiple edit+check
cycles)

Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
lib/controller/localdb/conn.go
sdk/go/arvados/vocabulary.go
sdk/go/arvados/vocabulary_test.go