Skip to content

CTHUB - casing #445

@tim738745

Description

@tim738745

Describe the task
We installed DRF camel case, but the conversion from backend snake_case to frontend camelCase wasn't exactly what I anticipated, because some keys in the backend weren't snake_cased at all (didn't have underscores in them; please see https://github.com/vbabiy/djangorestframework-camel-case/blob/master/djangorestframework_camel_case/util.py#L37). For example, we have "Expected Type" in the backend, which we should change to "expected_type", which will then become "expectedType" in the frontend.

Purpose
Consistency across this project and with our other projects.

Acceptance Criteria

  • snake_case backend keys
  • camelcase corresponding frontend keys
  • check that everything works as expected

Additional context

  • This is a very low priority issue!

Metadata

Metadata

Assignees

Labels

LowLow priorityTaskAny work that does not directly impact the user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions