Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): Correct model serializer ordering of body params (#57884)
Took me a bit but I finally found out that for model serializers, body params are specified by the order in which the fields are listed in the model serializer's `class Meta` section. The ordering is changing when I change the order of the TypedDict b/c the fields are defined by that TypedDict (see below) https://github.com/getsentry/sentry/blob/cae2b6113536e44d5fe99a64ed642a7073fe05c9/src/sentry/api/serializers/rest_framework/notification_action.py#L348-L350 ### New Body Params for Spike Protection (shared by Create + Updated) <img width="484" alt="Screenshot 2023-10-10 at 6 45 46 PM" src="https://github.com/getsentry/sentry/assets/67301797/37cba172-3216-41e8-b0f8-85b2ad523126">
- Loading branch information