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 Aug 29 2019, 11:32 AM
Differential Revision
D1865: Make content_add validate its input using swh-model.
Parents
rDSTO70f63c3a86ae: Remove 'next_branch' from test input data.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 7506
Build 10730: test-and-buildJenkins