swh.web.api.serializers module#
- class swh.web.api.serializers.SoftLimitsIntegerField(*args, **kwargs)[source]#
Bases:
IntegerField
An IntegerField that soft-enforce min/max values.
When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.
- class swh.web.api.serializers.SWHIDField(*args, **kwargs)[source]#
Bases:
CharField
A SWHID field.
When a field is instantiated, we store the arguments that were used, so that we can present a helpful representation of the object.