Skip to content

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.

I'm planning on adding similar validation to other *_add methods.

Depends on !236 (closed) (same repo), and swh-model!42 (closed), swh-model!43 (closed), swh-model!44 (closed), swh-model!45 (closed) (swh-model)


Migrated from D1865 (view on Phabricator)

Merge request reports