HomeSoftware Heritage

Make content_add validate its input using swh-model.

Description

Make content_add validate its input using swh-model.

The initial goal of this commit was to make the in-mem content_add raise
errors on input that would make postgresql error.

As a side-effect, the pgsql content_add now validate its input as well,
so clients get a nice/meaningful error instead of postgresql's error.

Details

Provenance
vlorentzAuthored on Aug 19 2019, 2:43 PM
vlorentzPushed on Oct 30 2019, 5:21 PM
Differential Revision
D1865: Make content_add validate its input using swh-model.
Parents
rDSTOC70f63c3a86ae: Remove 'next_branch' from test input data.
Branches
Unknown
Tags
Unknown