aleph.serializers.common

aleph.serializers.common.flatten_id(data, field, nested)

BaseSchema

class aleph.serializers.common.BaseSchema

Imports

  • <UNKNOWN>

Category

class aleph.serializers.common.Category

Imports

  • <UNKNOWN>

Summary

A category of collections, e.g. leaks, court cases, sanctions list.

_validate(self, value)

Country

class aleph.serializers.common.Country

Imports

  • <UNKNOWN>

Summary

A valid country code.

_validate(self, value)

Language

class aleph.serializers.common.Language

Imports

  • <UNKNOWN>

Summary

A valid language code.

_validate(self, value)

PartialDate

class aleph.serializers.common.PartialDate

Imports

  • <UNKNOWN>

Summary

Any valid prefix of an ISO 8601 datetime string.

_validate(self, value)

SchemaName

class aleph.serializers.common.SchemaName

Imports

  • <UNKNOWN>
_validate(self, value)