Skip to content
Snippets Groups Projects
Commit a92af53b authored by vlorentz's avatar vlorentz
Browse files

Add a 'metadata' field to releases.

Loaders use it, but it is ignored by the pg storage.
However, as the Cassandra storage uses swh-model to validate
its input, it refuses this input from the loaders (and journal).
parent 68142a78
No related branches found
Tags v0.0.39
No related merge requests found
......@@ -210,6 +210,9 @@ class Release(BaseModel):
date = attr.ib(type=Optional[TimestampWithTimezone],
default=None,
validator=attr.validators.optional([]))
metadata = attr.ib(type=Optional[Dict[str, object]],
default=None,
validator=attr.validators.optional([]))
@author.validator
def check_author(self, attribute, value):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment