Skip to content

Commit

Permalink
Closes netbox-community#11578: Fix swagger decoration to not return many
Browse files Browse the repository at this point in the history
  • Loading branch information
Aivars Sterns committed Jan 25, 2023
1 parent d5ccda3 commit c457abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/ipam/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def get(self, request, pk):

@swagger_auto_schema(
request_body=serializers.AvailableIPSerializer,
responses={201: serializers.IPAddressSerializer(many=True)}
responses={201: serializers.IPAddressSerializer(many=False)}
)
@advisory_lock(ADVISORY_LOCK_KEYS['available-ips'])
def post(self, request, pk):
Expand Down

0 comments on commit c457abc

Please sign in to comment.