-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5096 from open-formulieren/fix/5089-service-fetch…
…-changing-case-type Return 'service fetch config' api data with original text case
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
from djangorestframework_camel_case.render import CamelCaseJSONRenderer | ||
|
||
|
||
class ServiceFetchConfigurationRenderer(CamelCaseJSONRenderer): | ||
# The field body and query_params needs to be ignored, to prevent accidental snake_case to camelCase changes. | ||
# See github issue https://github.com/open-formulieren/open-forms/issues/5089 | ||
json_underscoreize = { | ||
"ignore_fields": ( | ||
"body", | ||
"query_params", | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters