I am developing a v2 for my API, and I would like to document it properly. Since I use Django Rest Framework (3.1.1), and it is recommended in their docs to use Swagger, I am using it.
In the documentation, I see that one of its features is to show "Field default values, minimum, maximum, read-only and required attributes". However, in my example, I only see "Description", "Parameter Type" and "Data Type", as in the image:
I would like to see more columns, such as minimum, maximum, and default, with the values taken from the models (not having to rewrite them in the serializers. This is my serializer, in case it helps:
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'email', 'first_name', 'last_name', 'password',)
write_only_fields = ('password',)
read_only_fields = ('id',)
def create(self, validated_data):
[...]
Nobody seems to have the same problem so maybe (I hope not) I am missing something trivial. Hope you can help. Thanks!