bcgov / bcgov/cthub

CTHUB - casing

Open
#445 1 comment 0 reactions 1 assignee Claimed by @JulianForeman View on GitHub
Low Task
Dominant language
Python
Stars
2
Forks
7
PR merge metrics
No merged PRs in 30d

Description

**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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.