Skip to content

consistent snake_case JSON keys across API endpoints#18

Merged
baudsmith merged 3 commits into
mainfrom
fix/api-json-consistency
Jun 4, 2026
Merged

consistent snake_case JSON keys across API endpoints#18
baudsmith merged 3 commits into
mainfrom
fix/api-json-consistency

Conversation

@baudsmith

Copy link
Copy Markdown
Collaborator

summary, devices, devices/{mac}, queries, and lists leaked PascalCase keys (structs lacked json tags). Tagged the 6 structs to snake_case + added a contract test.

Breaking: old keys like TotalQueries/DeviceMAC become total_queries/device_mac.

baudsmith added 3 commits June 3, 2026 19:40
summary, devices, devices/{mac}, queries, and lists now emit snake_case keys like the other endpoints (breaking for consumers using the old PascalCase).
@baudsmith baudsmith changed the title fix!: snake_case JSON keys across API endpoints consistent snake_case JSON keys across API endpoints Jun 4, 2026
@baudsmith baudsmith merged commit d05ac42 into main Jun 4, 2026
3 checks passed
@baudsmith baudsmith deleted the fix/api-json-consistency branch June 4, 2026 03:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant